Class SaxXmiHandler

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.xmi.XMLDefaultHandler, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler

    public class SaxXmiHandler
    extends org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler
    SAX хэндлер для xmi документов. Добавляет к стандартным функциям SAXXMIHandler резолвинг символических ссылок и элементов без указания конкретного типа через xsi:type
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler

        org.eclipse.emf.ecore.xmi.impl.XMLHandler.ManyReference, org.eclipse.emf.ecore.xmi.impl.XMLHandler.MyEObjectStack, org.eclipse.emf.ecore.xmi.impl.XMLHandler.MyStack<E extends Object>, org.eclipse.emf.ecore.xmi.impl.XMLHandler.SingleReference
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean useSymlink  
      • Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMIHandler

        ID_ATTRIB, UUID_ATTRIB, VERSION_ATTRIB, XMI_ELEMENT_NAME, XMI_ELEMENT_TYPE, XMI_EXTENSION, XMI_TYPE_ATTRIB, XMI_UUID
      • 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, 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 Summary

      Constructors 
      Constructor Description
      SaxXmiHandler​(org.eclipse.emf.ecore.xmi.XMLResource xmiResource, org.eclipse.emf.ecore.xmi.XMLHelper helper, Map<?,​?> options)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createObject​(org.eclipse.emf.ecore.EObject peekObject, org.eclipse.emf.ecore.EStructuralFeature feature, String xsiType)  
      protected String findAppropriateQName​(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference eReference)  
      protected org.eclipse.emf.ecore.EClass findInstantiableCompatible​(org.eclipse.emf.ecore.EClass eType)  
      protected org.eclipse.emf.ecore.EClass findSubTypeInEPackage​(org.eclipse.emf.ecore.EPackage ePackage, org.eclipse.emf.ecore.EClass superType)  
      org.eclipse.emf.ecore.EPackage.Registry getRegistry()  
      protected org.eclipse.emf.ecore.EClass globalFindInstantiableCompatible​(org.eclipse.emf.ecore.EClass eType)  
      protected void handleFeature​(String prefix, String name)  
      protected void handleProxy​(org.eclipse.emf.ecore.InternalEObject proxy, String uriLiteral)  
      protected void handleUnknownFeature​(String prefix, String name, boolean isElement, org.eclipse.emf.ecore.EObject peekObject, String value)  
      protected void processFeature​(org.eclipse.emf.ecore.EObject peekObject, org.eclipse.emf.ecore.EStructuralFeature feature, String xsiType)  
      void reset()  
      protected boolean resolveObjectWithoutXsiType​(String name, org.eclipse.emf.ecore.EObject peekObject)  
      protected void setValueFromId​(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference eReference, String ids)  
      • Methods inherited from class org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler

        getXSIType, handleObjectAttribs
      • Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMIHandler

        createDocumentRoot, createObject, isTextFeatureValue, processElement, startElement
      • Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLHandler

        characters, comment, createEcoreBuilder, createObject, 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, growArrays, handleCDATA, handleComment, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleNamespaceAttribs, handleProcessingInstruction, handleSchemaLocation, handleTopLocations, handleXMLNSAttribute, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, ignorableWhitespace, isError, isNull, notationDecl, prepare, processingInstruction, processObject, processSchemaLocations, processTopObject, recordHeaderInformation, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, resolveEntity, setAttributes, setAttribValue, setDocumentLocator, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, toXMIException, unparsedEntityDecl, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning, warning
    • Field Detail

      • useSymlink

        protected boolean useSymlink
    • Constructor Detail

      • SaxXmiHandler

        public SaxXmiHandler​(org.eclipse.emf.ecore.xmi.XMLResource xmiResource,
                             org.eclipse.emf.ecore.xmi.XMLHelper helper,
                             Map<?,​?> options)
    • Method Detail

      • getRegistry

        public org.eclipse.emf.ecore.EPackage.Registry getRegistry()
      • reset

        public void reset()
        Specified by:
        reset in interface org.eclipse.emf.ecore.xmi.XMLDefaultHandler
        Overrides:
        reset in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
      • handleUnknownFeature

        protected void handleUnknownFeature​(String prefix,
                                            String name,
                                            boolean isElement,
                                            org.eclipse.emf.ecore.EObject peekObject,
                                            String value)
        Overrides:
        handleUnknownFeature in class org.eclipse.emf.ecore.xmi.impl.XMIHandler
      • findInstantiableCompatible

        protected org.eclipse.emf.ecore.EClass findInstantiableCompatible​(org.eclipse.emf.ecore.EClass eType)
      • findSubTypeInEPackage

        protected org.eclipse.emf.ecore.EClass findSubTypeInEPackage​(org.eclipse.emf.ecore.EPackage ePackage,
                                                                     org.eclipse.emf.ecore.EClass superType)
      • globalFindInstantiableCompatible

        protected org.eclipse.emf.ecore.EClass globalFindInstantiableCompatible​(org.eclipse.emf.ecore.EClass eType)
      • findAppropriateQName

        protected String findAppropriateQName​(org.eclipse.emf.ecore.EObject object,
                                              org.eclipse.emf.ecore.EReference eReference)
      • handleProxy

        protected void handleProxy​(org.eclipse.emf.ecore.InternalEObject proxy,
                                   String uriLiteral)
        Overrides:
        handleProxy in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
      • setValueFromId

        protected void setValueFromId​(org.eclipse.emf.ecore.EObject object,
                                      org.eclipse.emf.ecore.EReference eReference,
                                      String ids)
        Overrides:
        setValueFromId in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
      • processFeature

        protected void processFeature​(org.eclipse.emf.ecore.EObject peekObject,
                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                      String xsiType)
      • createObject

        protected void createObject​(org.eclipse.emf.ecore.EObject peekObject,
                                    org.eclipse.emf.ecore.EStructuralFeature feature,
                                    String xsiType)
      • handleFeature

        protected void handleFeature​(String prefix,
                                     String name)
        Overrides:
        handleFeature in class org.eclipse.emf.ecore.xmi.impl.XMLHandler
      • resolveObjectWithoutXsiType

        protected boolean resolveObjectWithoutXsiType​(String name,
                                                      org.eclipse.emf.ecore.EObject peekObject)