org.eclipse.emf.ecore.xmi.impl
Class SAXXMIHandler
java.lang.Object
|
+--org.eclipse.emf.ecore.xmi.impl.XMLHandler
|
+--org.eclipse.emf.ecore.xmi.impl.XMIHandler
|
+--org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler
- public class SAXXMIHandler
- extends XMIHandler
This class is a SAX handler for creating MOF2 objects from an XMI 2.0 file.
Field Summary |
protected org.xml.sax.Attributes |
attribs
|
protected org.xml.sax.Locator |
locator
|
Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler |
ARRAY_SIZE, capacity, disableNotify, elements, ERROR_TYPE, extent, forwardManyReferences, forwardSingleReferences, helper, idAttribute, identifiers, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, notFeatures, OBJECT_TYPE, objects, oldStyleProxyURIs, positions, prefixesToFactories, REFERENCE_THRESHOLD, resolve, resourceSet, resourceURI, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, text, TYPE_ATTRIB, types, urisToLocations, xmlMap, xmlResource |
Method Summary |
protected int |
getColumnNumber()
|
protected int |
getLineNumber()
|
protected java.lang.String |
getXSIType()
Returns the xsi type attribute's value. |
protected void |
handleNamespaceAttribs()
Handle the XML namespace attributes. |
protected void |
handleObjectAttribs(EObject obj)
Process the XMI attributes for the newly created object. |
protected boolean |
isNull()
Returns true if the xsi:null attribute is in the list of attributes. |
protected java.lang.Object |
setAttributes(java.lang.Object attributes)
Sets the current attributes and returns the old ones. |
void |
setLocator(java.lang.Object locator)
Sets the object that might be used for determining the line and
column number. |
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler |
characters, createObject, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, createTopObject, endDocument, endElement, endPrefixMapping, error, fatalError, getFactoryForPrefix, getFeature, getLocation, getPackageForURI, getXMLEncoding, growArrays, handleFeature, handleProxy, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, isError, processObject, processTopObject, setAttribValue, setFeatureValue, setFeatureValue, setFeatureValues, setValueFromId, startDocument, startElement, startPrefixMapping, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
protected org.xml.sax.Locator locator
attribs
protected org.xml.sax.Attributes attribs
SAXXMIHandler
public SAXXMIHandler(XMLResource xmiResource,
XMLHelper helper,
java.util.Map options)
- Constructor.
setAttributes
protected java.lang.Object setAttributes(java.lang.Object attributes)
- Description copied from class:
XMLHandler
- Sets the current attributes and returns the old ones.
- Overrides:
setAttributes
in class XMLHandler
setLocator
public void setLocator(java.lang.Object locator)
- Description copied from class:
XMLHandler
- Sets the object that might be used for determining the line and
column number.
- Overrides:
setLocator
in class XMLHandler
getLineNumber
protected int getLineNumber()
- Overrides:
getLineNumber
in class XMLHandler
getColumnNumber
protected int getColumnNumber()
- Overrides:
getColumnNumber
in class XMLHandler
isNull
protected boolean isNull()
- Returns true if the xsi:null attribute is in the list of attributes.
- Overrides:
isNull
in class XMLHandler
handleNamespaceAttribs
protected void handleNamespaceAttribs()
- Handle the XML namespace attributes.
- Overrides:
handleNamespaceAttribs
in class XMLHandler
getXSIType
protected java.lang.String getXSIType()
- Description copied from class:
XMLHandler
- Returns the xsi type attribute's value.
- Overrides:
getXSIType
in class XMLHandler
handleObjectAttribs
protected void handleObjectAttribs(EObject obj)
- Process the XMI attributes for the newly created object.
- Overrides:
handleObjectAttribs
in class XMLHandler