Package com._1c.g5.modeling.xml.parser
Class AbstractStaxXmiParser
- java.lang.Object
-
- com._1c.g5.modeling.xml.parser.XmlParserAdapter
-
- com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
-
- com._1c.g5.modeling.xml.parser.AbstractStaxXmiParser
-
- All Implemented Interfaces:
IXmlParser,org.eclipse.emf.ecore.xmi.XMLLoad
- Direct Known Subclasses:
StaxXmiParser
public abstract class AbstractStaxXmiParser extends AbstractStaxXmlParser
Абстрактная реализация парсера xmi документа. РасширяетAbstractStaxXmlParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
AbstractStaxXmlParser.Attributes, AbstractStaxXmlParser.ManyReference, AbstractStaxXmlParser.MyEObjectStack, AbstractStaxXmlParser.MyStack<E>, AbstractStaxXmlParser.SingleReference
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringID_ATTRIBprotected static StringUUID_ATTRIBprotected static StringVERSION_ATTRIBprotected static StringXMI_ELEMENT_NAMEprotected static StringXMI_ELEMENT_TYPEprotected static StringXMI_EXTENSIONprotected static StringXMI_TYPE_ATTRIBprotected static StringXMI_UUID-
Fields inherited from class com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
anySimpleType, anyType, ARRAY_SIZE, attribs, capacity, contextFeature, DEBUG_DEMANDED_PACKAGES, deferIDREFResolution, deferredExtent, disableNotify, DOCUMENT_ROOT_TYPE, documentRoot, documentRootNode, ecoreBuilder, elements, eObjectToExtensionMap, ERROR_TYPE, extendedMetaData, extent, externalURIToLocations, forwardManyReferences, forwardSingleReferences, helper, hrefAttribute, idAttribute, identifiers, isIDREF, isNamespaceAware, isRoot, isSimpleFeature, keepAttributeLocation, laxWildcardProcessing, mixedTargets, namespaces, NAMESPACES_PREFIX_MAP, needsPushContext, NIL_ATTRIB, NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB, nodes, notFeatures, OBJECT_TYPE, objects, oldStyleProxyURIs, packageRegistry, parseResult, positions, prefixesToFactories, processAnyXML, processSchemaLocations, reader, recordAnyTypeNSDecls, recordUnknownFeature, REFERENCE_THRESHOLD, resolve, resourceEntityHandler, resourceSet, resourceURI, rootNode, sameDocumentProxies, SCHEMA_LOCATION_ATTRIB, suppressDocumentRoot, text, TYPE_ATTRIB, types, UNKNOWN_FEATURE_TYPE, uriHandler, urisToLocations, useConfigurationCache, usedNullNamespacePackage, useSymlink, xmlMap, xmlResource, xmlSchemaTypePackage
-
Fields inherited from interface com._1c.g5.modeling.xml.parser.IXmlParser
OPTION_USE_SYMLINK
-
-
Constructor Summary
Constructors Constructor Description AbstractStaxXmiParser()AbstractStaxXmiParser(org.eclipse.emf.ecore.xmi.XMLHelper xmlHelper, Map<?,?> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.ecore.EObjectcreateDocumentRoot(String prefix, String uri, String name, org.eclipse.emf.ecore.EFactory eFactory, boolean top)protected voidcreateObject(org.eclipse.emf.ecore.EObject peekObject, org.eclipse.emf.ecore.EStructuralFeature feature, String xsiType)Create an object based on the given feature and attributes.protected voidhandleUnknownFeature(String prefix, String name, boolean isElement, org.eclipse.emf.ecore.EObject peekObject, String value)voidinit(org.eclipse.emf.ecore.xmi.XMLHelper helper, Map<?,?> options)protected booleanisTextFeatureValue(Object type)protected voidprocessElement(String name, String prefix, String localName)voidstartElement()Обработка начала элемента-
Methods inherited from class com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
characters, comment, createAttributeNodeForProxy, createEcoreBuilder, createObject, createObjectByType, createObjectFromFactory, createObjectFromFeatureType, createObjectFromTypeName, createTopObject, endDocument, endElement, error, fatalError, findAppropriateQName, findInstantiableCompatible, findSubTypeInEPackage, getColumnNumber, getContentFeature, getCurrentLocation, getExtension, getFactoryForPrefix, getFeature, getFeature, getLineNumber, getLocation, getPackageForURI, getParseResult, getRegistry, getStartLocation, getURIConverter, getXsiType, globalFindInstantiableCompatible, growArrays, handleComment, handleFeature, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleObjectAttribs, handleProxy, handleSchemaLocation, handleTopLocations, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, initReader, isError, isNull, parse, process, processFeature, processObject, processSchemaLocations, processTopObject, recordHeaderInformation, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, resolveObjectWithoutXsiType, setAttributes, setAttribValue, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setNamespaces, setNamespaceValue, setNodeEndLocation, setValueFromId, setValueFromId, setXMIAttribValue, startDocument, storeAttributeNodeLocationInfo, storeWhitespacesInformation, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning
-
Methods inherited from class com._1c.g5.modeling.xml.parser.XmlParserAdapter
createDefaultHandler, load, load, load
-
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
AbstractStaxXmiParser
public AbstractStaxXmiParser()
-
AbstractStaxXmiParser
public AbstractStaxXmiParser(org.eclipse.emf.ecore.xmi.XMLHelper xmlHelper, Map<?,?> options)
-
-
Method Detail
-
init
public void init(org.eclipse.emf.ecore.xmi.XMLHelper helper, Map<?,?> options)- Overrides:
initin classAbstractStaxXmlParser
-
startElement
public void startElement()
Description copied from class:AbstractStaxXmlParserОбработка начала элемента- Overrides:
startElementin classAbstractStaxXmlParser
-
createDocumentRoot
protected org.eclipse.emf.ecore.EObject createDocumentRoot(String prefix, String uri, String name, org.eclipse.emf.ecore.EFactory eFactory, boolean top)
- Overrides:
createDocumentRootin classAbstractStaxXmlParser
-
createObject
protected void createObject(org.eclipse.emf.ecore.EObject peekObject, org.eclipse.emf.ecore.EStructuralFeature feature, String xsiType)Description copied from class:AbstractStaxXmlParserCreate an object based on the given feature and attributes.- Overrides:
createObjectin classAbstractStaxXmlParser
-
handleUnknownFeature
protected void handleUnknownFeature(String prefix, String name, boolean isElement, org.eclipse.emf.ecore.EObject peekObject, String value)
- Overrides:
handleUnknownFeaturein classAbstractStaxXmlParser
-
isTextFeatureValue
protected boolean isTextFeatureValue(Object type)
- Overrides:
isTextFeatureValuein classAbstractStaxXmlParser
-
processElement
protected void processElement(String name, String prefix, String localName)
- Overrides:
processElementin classAbstractStaxXmlParser
-
-