Class PredefinedItemWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.md.export.xml.writer.PredefinedItemWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class PredefinedItemWriter extends Object implements ISpecifiedElementWriter
Specified writer forPredefinedItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
ISpecifiedElementWriter.ZeroWriter
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
SMART_ELEMENT_WRITER
-
-
Constructor Summary
Constructors Constructor Description PredefinedItemWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isFeatureSupportedByVersion(org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Check feature is supported be specific versionvoid
write(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version)
Write value from eObject-feature reference by specified rulesprotected void
writePredefinedItemProperty(ExportXmlStreamWriter writer, PredefinedItem predefinedItem, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version)
Write predefined item property feature to the XML writer.
-
-
-
Method Detail
-
write
public void write(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version) throws XMLStreamException, ExportException
Description copied from interface:ISpecifiedElementWriter
Write value from eObject-feature reference by specified rules- Specified by:
write
in interfaceISpecifiedElementWriter
- Parameters:
writer
- the xmlExportXmlStreamWriter
, cannot benull
eObject
- context object, cannot benull
feature
- theEStructuralFeature
, cannot benull
writeEmpty
- write empty element iftrue
or nothing iffalse
version
- the exporting projectVersion
, cannot benull
- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
writePredefinedItemProperty
protected void writePredefinedItemProperty(ExportXmlStreamWriter writer, PredefinedItem predefinedItem, org.eclipse.emf.ecore.EStructuralFeature feature, boolean writeEmpty, Version version) throws XMLStreamException, ExportException
Write predefined item property feature to the XML writer.- Parameters:
writer
- the xmlExportXmlStreamWriter
, cannot benull
predefinedItem
- the predefined item to write, cannot benull
feature
- the feature to write, cannot benull
writeEmpty
- write empty element iftrue
or nothing iffalse
version
- the exporting projectVersion
, cannot benull
- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
isFeatureSupportedByVersion
protected boolean isFeatureSupportedByVersion(org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Check feature is supported be specific version- Parameters:
feature
- the feature to check, cannot benull
version
- theVersion
, cannot benull
- Returns:
- whether feature is supported be specific version
-
-