Class AbstractMdXmlPartReader
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
-
- com._1c.g5.v8.dt.md.import_.xml.reader.part.AbstractMdXmlPartReader
-
- All Implemented Interfaces:
IXmlPartReader
- Direct Known Subclasses:
AbstractBasicFeatureXmlPartReader
,BasicCommandXmlPartReader
,BasicTabularSectionXmlPartReader
,CharacteristicsDescriptionXmlPartReader
,ChartOfAccountsPredefinedItemXmlPartReader
,ChartOfCalculationTypesPredefinedItemXmlPartReader
,ChartOfCharacteristicTypesPredefinedItemXmlPartReader
,ColumnXmlPartReader
,ContainedObjectXmlPartReader
,DataProcessorAttributeXmlPartReader
,EnumValueXmlPartReader
,ExtDimensionTypeXmlPartReader
,FieldXmlPartReader
,FunctionXmlPartReader
,IntegrationServiceChannelXmlPartReader
,MethodXmlPartReader
,OperationXmlPartReader
,ParameterXmlPartReader
,QNameXmlPartReader
,RecalculationDimensionXmlPartReader
,SequenceDimensionXmlPartReader
,StandardAttributeXmlPartReader
,StandardTabularSectionDescriptionXmlPartReader
,TabularSectionAttributeXmlPartReader
,URLTemplateXmlPartReader
public abstract class AbstractMdXmlPartReader extends AbstractXmlPartReader
AbstractMdObject
XML reader
-
-
Field Summary
Fields Modifier and Type Field Description protected IModelObjectFactory
modelFactory
-
Fields inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
xmlReadHelper
-
Fields inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlPartReader
XML_PART_READERS
-
-
Constructor Summary
Constructors Constructor Description AbstractMdXmlPartReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.protected void
readBasicDbObject(IXmlNode node, BasicDbObject dbObject, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic db objectprotected void
readBasicFeature(IXmlNode node, BasicFeature basicFeature, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic feature objectprotected void
readBasicForm(IXmlNode node, BasicForm form, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic form objectprotected abstract void
readContains(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.protected void
readMdObject(IXmlNode node, MdObject mdObject, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata objectprotected void
readReference(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
getWrongAttributeValueMessage, getXmlElementRequiredMessage, read, setRefers, setValue
-
-
-
-
Field Detail
-
modelFactory
@Inject protected IModelObjectFactory modelFactory
-
-
Method Detail
-
read
public void read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Description copied from interface:IXmlPartReader
Read and convert node named attribute content to value in context-feature.- Parameters:
context
- the contextEObject
, cannot benull
feature
- theEStructuralFeature
, cannot benull
node
- the sourceIXmlNode
, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeversion
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors
-
readContains
protected abstract void readContains(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.- Parameters:
context
- the contextEObject
, cannot benull
feature
- the containmentEStructuralFeature
, cannot benull
node
- the sourceIXmlNode
, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeversion
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors
-
readReference
protected void readReference(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.- Parameters:
context
- the contextEObject
, cannot benull
feature
- the referenceEStructuralFeature
, cannot benull
node
- the sourceIXmlNode
, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeversion
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors
-
readMdObject
protected void readMdObject(IXmlNode node, MdObject mdObject, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata object- Parameters:
node
- the sourceIXmlNode
, cannot benull
mdObject
- target object to fill from xml, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors, cannot benull
-
readBasicDbObject
protected void readBasicDbObject(IXmlNode node, BasicDbObject dbObject, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic db object- Parameters:
node
- the sourceIXmlNode
, cannot benull
dbObject
- target object to fill from xml, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors, cannot benull
-
readBasicFeature
protected void readBasicFeature(IXmlNode node, BasicFeature basicFeature, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic feature object- Parameters:
node
- the sourceIXmlNode
, cannot benull
basicFeature
- target object to fill from xml, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors, cannot benull
-
readBasicForm
protected void readBasicForm(IXmlNode node, BasicForm form, Version version, IXmlReadErrorCollector errorCollector)
Read node to target metadata basic form object- Parameters:
node
- the sourceIXmlNode
, cannot benull
form
- target object to fill from xml, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors, cannot benull
-
-