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 String
ID_ATTRIB
protected static String
UUID_ATTRIB
protected static String
VERSION_ATTRIB
protected static String
XMI_ELEMENT_NAME
protected static String
XMI_ELEMENT_TYPE
protected static String
XMI_EXTENSION
protected static String
XMI_TYPE_ATTRIB
protected static String
XMI_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.EObject
createDocumentRoot(String prefix, String uri, String name, org.eclipse.emf.ecore.EFactory eFactory, boolean top)
protected void
createObject(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 void
handleUnknownFeature(String prefix, String name, boolean isElement, org.eclipse.emf.ecore.EObject peekObject, String value)
void
init(org.eclipse.emf.ecore.xmi.XMLHelper helper, Map<?,?> options)
protected boolean
isTextFeatureValue(Object type)
protected void
processElement(String name, String prefix, String localName)
void
startElement()
Обработка начала элемента-
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:
init
in classAbstractStaxXmlParser
-
startElement
public void startElement()
Description copied from class:AbstractStaxXmlParser
Обработка начала элемента- Overrides:
startElement
in classAbstractStaxXmlParser
-
createDocumentRoot
protected org.eclipse.emf.ecore.EObject createDocumentRoot(String prefix, String uri, String name, org.eclipse.emf.ecore.EFactory eFactory, boolean top)
- Overrides:
createDocumentRoot
in classAbstractStaxXmlParser
-
createObject
protected void createObject(org.eclipse.emf.ecore.EObject peekObject, org.eclipse.emf.ecore.EStructuralFeature feature, String xsiType)
Description copied from class:AbstractStaxXmlParser
Create an object based on the given feature and attributes.- Overrides:
createObject
in classAbstractStaxXmlParser
-
handleUnknownFeature
protected void handleUnknownFeature(String prefix, String name, boolean isElement, org.eclipse.emf.ecore.EObject peekObject, String value)
- Overrides:
handleUnknownFeature
in classAbstractStaxXmlParser
-
isTextFeatureValue
protected boolean isTextFeatureValue(Object type)
- Overrides:
isTextFeatureValue
in classAbstractStaxXmlParser
-
processElement
protected void processElement(String name, String prefix, String localName)
- Overrides:
processElement
in classAbstractStaxXmlParser
-
-