Package com._1c.g5.modeling.xml.parser
Class StaxXmlParser
- java.lang.Object
-
- com._1c.g5.modeling.xml.parser.XmlParserAdapter
-
- com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
-
- com._1c.g5.modeling.xml.parser.StaxXmlParser
-
- All Implemented Interfaces:
IXmlParser
,org.eclipse.emf.ecore.xmi.XMLLoad
public class StaxXmlParser extends AbstractStaxXmlParser
XML парсер с сохранением форматирования и позиций для элементов модели. Так же поддерживает резолвинг символических ссылок и абстрактных ссылок без указания xsi:type
-
-
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 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, ID_ATTRIB, 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, UUID_ATTRIB, VERSION_ATTRIB, XMI_ELEMENT_NAME, XMI_ELEMENT_TYPE, XMI_EXTENSION, XMI_TYPE_ATTRIB, XMI_UUID, xmlMap, xmlResource, xmlSchemaTypePackage
-
Fields inherited from interface com._1c.g5.modeling.xml.parser.IXmlParser
OPTION_USE_SYMLINK
-
-
Constructor Summary
Constructors Constructor Description StaxXmlParser()
StaxXmlParser(org.eclipse.emf.ecore.xmi.XMLHelper xmlHelper, Map<?,?> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getXsiType()
Returns the xsi type attribute's value.protected void
processObject(org.eclipse.emf.ecore.EObject object)
Add object to appropriate stacks.-
Methods inherited from class com._1c.g5.modeling.xml.parser.AbstractStaxXmlParser
characters, comment, createAttributeNodeForProxy, createDocumentRoot, createEcoreBuilder, createObject, 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, globalFindInstantiableCompatible, growArrays, handleComment, handleFeature, handleForwardReferences, handleForwardReferences, handleMissingPackage, handleMixedText, handleObjectAttribs, handleProxy, handleSchemaLocation, handleTopLocations, handleUnknownFeature, handleXSINoNamespaceSchemaLocation, handleXSISchemaLocation, init, initReader, isError, isNull, isTextFeatureValue, parse, process, processElement, processFeature, processSchemaLocations, processTopObject, recordHeaderInformation, recordNamespacesSchemaLocations, recordUnknownFeature, reportUnknownFeature, resolveObjectWithoutXsiType, setAttributes, setAttribValue, setExtendedMetaDataOption, setFeatureValue, setFeatureValue, setFeatureValues, setNamespaces, setNamespaceValue, setNodeEndLocation, setValueFromId, setValueFromId, setXMIAttribValue, startDocument, startElement, storeAttributeNodeLocationInfo, storeWhitespacesInformation, validateCreateObjectFromFactory, validateCreateObjectFromFactory, validateCreateObjectFromFactory, warning
-
Methods inherited from class com._1c.g5.modeling.xml.parser.XmlParserAdapter
createDefaultHandler, load, load, load
-
-
-
-
Constructor Detail
-
StaxXmlParser
public StaxXmlParser()
-
StaxXmlParser
public StaxXmlParser(org.eclipse.emf.ecore.xmi.XMLHelper xmlHelper, Map<?,?> options)
-
-
Method Detail
-
getXsiType
protected String getXsiType()
Description copied from class:AbstractStaxXmlParser
Returns the xsi type attribute's value.- Specified by:
getXsiType
in classAbstractStaxXmlParser
-
processObject
protected void processObject(org.eclipse.emf.ecore.EObject object)
Description copied from class:AbstractStaxXmlParser
Add object to appropriate stacks.- Overrides:
processObject
in classAbstractStaxXmlParser
-
-