org.eclipse.emf.ecore.xmi.impl
Class SAXXMLHandler
java.lang.Object
|
+--org.eclipse.emf.ecore.xmi.impl.XMLHandler
|
+--org.eclipse.emf.ecore.xmi.impl.SAXXMLHandler
- public class SAXXMLHandler
- extends XMLHandler
This class implements the XML deserializer which creates
EObjects from XML files.
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 |
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, isTextFeatureValue, processElement, 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
SAXXMLHandler
public SAXXMLHandler(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:nil 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 XML attributes for the newly created object.
- Overrides:
handleObjectAttribs
in class XMLHandler
processObject
protected void processObject(EObject object)
- Description copied from class:
XMLHandler
- Add object to appropriate stacks.
- Overrides:
processObject
in class XMLHandler
getContentFeature
protected EStructuralFeature getContentFeature(EObject object)