public class EMOFHandler extends SAXXMIHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
EMOFHandler.Helper |
XMLHandler.ManyReference, XMLHandler.MyEObjectStack, XMLHandler.MyStack<E>, XMLHandler.SingleReference| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ECORE_EXTENSION_TYPE |
protected EMOFHandler.Helper |
emofHelper |
ID_ATTRIB, UUID_ATTRIB, VERSION_ATTRIB, XMI_ELEMENT_NAME, XMI_ELEMENT_TYPE, XMI_EXTENSION, XMI_TYPE_ATTRIB, XMI_UUIDanySimpleType, anyType, ARRAY_SIZE, attribs, capacity, contextFeature, DEBUG_DEMANDED_PACKAGES, deferIDREFResolution, deferredExtent, disableNotify, DOCUMENT_ROOT_TYPE, documentRoot, ecoreBuilder, elements, eObjectToExtensionMap, ERROR_TYPE, extendedMetaData, extent, externalURIToLocations, featuresToKinds, forwardManyReferences, forwardSingleReferences, helper, hrefAttribute, idAttribute, identifiers, isIDREF, isNamespaceAware, isRoot, isSimpleFeature, laxWildcardProcessing, locator, missingPackageHandler, mixedTargets, needsPushContext, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, notFeatures, OBJECT_TYPE, objects, oldStyleProxyURIs, packageRegistry, positions, prefixesToFactories, processAnyXML, processSchemaLocations, recordAnyTypeNSDecls, recordUnknownFeature, REFERENCE_THRESHOLD, resolve, resourceEntityHandler, resourceSet, resourceURI, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, suppressDocumentRoot, text, TYPE_ATTRIB, types, UNKNOWN_FEATURE_TYPE, uriHandler, urisToLocations, useConfigurationCache, usedNullNamespacePackage, useNewMethods, usePackageNsURIAsLocation, xmlMap, xmlResource, xmlSchemaTypePackage| Constructor and Description |
|---|
EMOFHandler(XMLResource xmiResource,
EMOFHandler.Helper helper,
java.util.Map<?,?> options) |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
Pop the appropriate stacks and set features whose values are in
the content of XML elements.
|
protected void |
handleFeature(java.lang.String prefix,
java.lang.String name)
The XML element represents a feature.
|
protected void |
handleForwardReferences(boolean isEndDocument)
Check if the values of the forward references have been set (they may
have been set due to a bidirectional reference being set).
|
protected void |
handleProxy(InternalEObject proxy,
java.lang.String uriLiteral) |
protected void |
processElement(java.lang.String name,
java.lang.String prefix,
java.lang.String localName) |
protected void |
setAttribValue(EObject object,
java.lang.String name,
java.lang.String value)
Create a feature with the given name for the given object with the
given values.
|
getXSIType, handleObjectAttribscreateDocumentRoot, createObject, handleUnknownFeature, isTextFeatureValue, startElementcharacters, comment, createEcoreBuilder, createObject, createObjectByType, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, createTopObject, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, error, error, fatalError, fatalError, getColumnNumber, getExtension, getFactoryForPrefix, getFeature, getFeature, getLineNumber, getLocation, getPackageForURI, getURIConverter, getXMLEncoding, growArrays, handleCDATA, handleComment, handleForwardReferences, handleMissingPackage, handleMixedText, handleNamespaceAttribs, handleProcessingInstruction, handleSchemaLocation, handleTopLocations, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, ignorableWhitespace, isError, isNull, notationDecl, prepare, processingInstruction, processObject, processSchemaLocations, processTopObject, recordHeaderInformation, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, reset, resolveEntity, setAttributes, setDocumentLocator, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setLocator, setValueFromId, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, toXMIException, unparsedEntityDecl, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning, warningprotected EMOFHandler.Helper emofHelper
protected static final java.lang.String ECORE_EXTENSION_TYPE
public EMOFHandler(XMLResource xmiResource, EMOFHandler.Helper helper, java.util.Map<?,?> options)
protected void handleProxy(InternalEObject proxy,
java.lang.String uriLiteral)
handleProxy in class XMLHandlerprotected void handleForwardReferences(boolean isEndDocument)
XMLHandlerhandleForwardReferences in class XMLHandlerprotected void processElement(java.lang.String name,
java.lang.String prefix,
java.lang.String localName)
processElement in class XMIHandlerpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
XMLHandlerendElement in interface org.xml.sax.ContentHandlerendElement in class XMLHandlerprotected void setAttribValue(EObject object,
java.lang.String name,
java.lang.String value)
XMLHandlersetAttribValue in class XMLHandlerprotected void handleFeature(java.lang.String prefix,
java.lang.String name)
XMLHandlerhandleFeature in class XMLHandlerCopyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature