Class AbstractFormXmlPartReader
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
-
- com._1c.g5.v8.dt.form.import_.xml.reader.part.AbstractFormXmlPartReader
-
- All Implemented Interfaces:
IXmlPartReader
- Direct Known Subclasses:
AbstractFormAttributeXmlPartReader
,AutoCommandBarXmlPartReader
,FormChildItemsXmlPartReader
,FormCommandInterfaceItemXmlPartReader
,FormCommandInterfaceXmlPartReader
,FormCommandXmlPartReader
,FormExtInfoXmlPartReader
,FormParameterXmlPartReader
,FormPictureXmlPartReader
public abstract class AbstractFormXmlPartReader extends AbstractXmlPartReader
AbstractIXmlPartReader
implementation for Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IModelObjectFactory
formFactory
-
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 AbstractFormXmlPartReader()
-
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 abstract void
readContainment(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
readNamedElement(IXmlNode node, NamedElement formNamedElement, Version version, IXmlReadErrorCollector errorCollector)
Read name of form named element and handleAdditionContainer
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.-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
getWrongAttributeValueMessage, getXmlElementRequiredMessage, read, setRefers, setValue
-
-
-
-
Field Detail
-
formFactory
@Inject protected IModelObjectFactory formFactory
-
-
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
-
readContainment
protected abstract void readContainment(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
-
readNamedElement
protected void readNamedElement(IXmlNode node, NamedElement formNamedElement, Version version, IXmlReadErrorCollector errorCollector)
Read name of form named element and handleAdditionContainer
- Parameters:
node
- the sourceIXmlNode
, cannot benull
formNamedElement
- the contextNamedElement
, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
-IXmlReadErrorCollector
in which will be added error if it occur, cannot benull
-
-