Class XmlReadHelper
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.XmlReadHelper
-
- All Implemented Interfaces:
IXmlReadHelper
public class XmlReadHelper extends Object implements IXmlReadHelper
Default implementation ofIXmlReadHelper
.
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlReadHelper
UNRESOLVED_SCHEME
-
-
Constructor Summary
Constructors Constructor Description XmlReadHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Object>
getCollectionValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Get collection value of the providedfeature
from thencontext
object.protected void
setSimpleValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Set simplevalue
to the providedfeature
of thecontext
object.void
setUnresolvedReference(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature, String ref, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Create a proxy object in "unresolved:/" scheme and set in the providedfeature
of the providedobject
.void
setValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Set value in the providedfeature
of the providedobject
.
-
-
-
Method Detail
-
setValue
public void setValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Description copied from interface:IXmlReadHelper
Set value in the providedfeature
of the providedobject
.- Specified by:
setValue
in interfaceIXmlReadHelper
- Parameters:
context
- theEObject
to set value to, cannot benull
feature
- theEStructuralFeature
to set value to, cannot benull
value
- the value to set, can benull
attributeName
- the attribute name, can benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to report error to, cannot benull
-
setUnresolvedReference
public void setUnresolvedReference(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference feature, String ref, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Description copied from interface:IXmlReadHelper
Create a proxy object in "unresolved:/" scheme and set in the providedfeature
of the providedobject
.- Specified by:
setUnresolvedReference
in interfaceIXmlReadHelper
- Parameters:
context
- theEObject
to set reference to, cannot benull
feature
- theEStructuralFeature
to set reference to, cannot benull
ref
- the reference, cannot benull
attributeName
- the attribute name, can benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to report error to, cannot benull
-
getCollectionValue
protected Collection<Object> getCollectionValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Get collection value of the providedfeature
from thencontext
object.- Parameters:
object
- theEObject
to get collection value, cannot benull
feature
- theEStructuralFeature
to get collection value, cannot benull
attributeName
- the attribute name, can benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to report error to, cannot benull
- Returns:
- the collection value, never
null
-
setSimpleValue
protected void setSimpleValue(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Set simplevalue
to the providedfeature
of thecontext
object.- Parameters:
object
- theEObject
to set value to, cannot benull
feature
- theEStructuralFeature
to set value to, cannot benull
value
- the value to set, can benull
attributeName
- the attribute name, can benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to report error to, cannot benull
-
-