org.eclipse.emf.ecore.xmi.impl
Class XMIHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.eclipse.emf.ecore.xmi.impl.XMLHandler
org.eclipse.emf.ecore.xmi.impl.XMIHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLDefaultHandler
- Direct Known Subclasses:
- SAXXMIHandler
- public abstract class XMIHandler
- extends XMLHandler
This class is a SAX handler for creating MOF2 objects from an XMI 2.0 file.
Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler |
anySimpleType, anyType, ARRAY_SIZE, attribs, capacity, contextFeature, DEBUG_DEMANDED_PACKAGES, deferIDREFResolution, deferredExtent, disableNotify, DOCUMENT_ROOT_TYPE, ecoreBuilder, elements, eObjectToExtensionMap, ERROR_TYPE, extendedMetaData, extent, externalURIToLocations, featuresToKinds, forwardManyReferences, forwardSingleReferences, helper, hrefAttribute, idAttribute, identifiers, isIDREF, isRoot, isSimpleFeature, locator, mixedTargets, needsPushContext, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, notFeatures, OBJECT_TYPE, objects, oldStyleProxyURIs, packageRegistry, positions, prefixesToFactories, processAnyXML, processSchemaLocations, recordAnyTypeNSDecls, recordUnknownFeature, REFERENCE_THRESHOLD, resolve, resourceSet, resourceURI, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, text, TYPE_ATTRIB, types, UNKNOWN_FEATURE_TYPE, urisToLocations, useConfigurationCache, useNewMethods, xmlMap, xmlResource, xmlSchemaTypePackage |
Method Summary |
protected EObject |
createDocumentRoot(String prefix,
String uri,
String name,
EFactory eFactory,
boolean top)
|
protected void |
createObject(EObject peekObject,
EStructuralFeature feature)
Create an object based on the given feature and attributes. |
protected void |
handleUnknownFeature(String prefix,
String name,
boolean isElement,
EObject peekObject,
String value)
|
protected boolean |
isTextFeatureValue(Object type)
|
protected void |
processElement(String name,
String prefix,
String localName)
|
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler |
characters, comment, createEcoreBuilder, createObjectByType, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, createTopObject, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, error, fatalError, fatalError, getColumnNumber, getExtension, getFactoryForPrefix, getFeature, getFeature, getLineNumber, getLocation, getPackageForURI, getURIConverter, getXMLEncoding, getXSIType, growArrays, handleCDATA, handleComment, handleFeature, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleNamespaceAttribs, handleObjectAttribs, handleProxy, handleSchemaLocation, handleTopLocations, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, ignorableWhitespace, isError, isNull, notationDecl, prepare, processingInstruction, processObject, processSchemaLocations, processTopObject, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, reset, resolveEntity, setAttributes, setAttribValue, setDocumentLocator, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setLocator, setValueFromId, skippedEntity, startCDATA, startDocument, startDTD, startElement, startElement, startEntity, startPrefixMapping, toXMIException, unparsedEntityDecl, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMI_ELEMENT_TYPE
protected static final String XMI_ELEMENT_TYPE
- See Also:
- Constant Field Values
XMI_UUID
protected static final String XMI_UUID
- See Also:
- Constant Field Values
XMI_EXTENSION
protected static final String XMI_EXTENSION
- See Also:
- Constant Field Values
XMI_TYPE_ATTRIB
protected static final String XMI_TYPE_ATTRIB
- See Also:
- Constant Field Values
ID_ATTRIB
protected static final String ID_ATTRIB
- See Also:
- Constant Field Values
VERSION_ATTRIB
protected static final String VERSION_ATTRIB
- See Also:
- Constant Field Values
UUID_ATTRIB
protected static final String UUID_ATTRIB
- See Also:
- Constant Field Values
XMI_ELEMENT_NAME
protected static final String XMI_ELEMENT_NAME
- See Also:
- Constant Field Values
XMIHandler
public XMIHandler(XMLResource xmiResource,
XMLHelper helper,
Map options)
- Constructor.
processElement
protected void processElement(String name,
String prefix,
String localName)
- Overrides:
processElement
in class XMLHandler
isTextFeatureValue
protected boolean isTextFeatureValue(Object type)
- Overrides:
isTextFeatureValue
in class XMLHandler
createDocumentRoot
protected EObject createDocumentRoot(String prefix,
String uri,
String name,
EFactory eFactory,
boolean top)
- Overrides:
createDocumentRoot
in class XMLHandler
createObject
protected void createObject(EObject peekObject,
EStructuralFeature feature)
- Description copied from class:
XMLHandler
- Create an object based on the given feature and attributes.
- Overrides:
createObject
in class XMLHandler
handleUnknownFeature
protected void handleUnknownFeature(String prefix,
String name,
boolean isElement,
EObject peekObject,
String value)
- Overrides:
handleUnknownFeature
in class XMLHandler