Class RealDataItemWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.chart.export.xml.writer.SimpleFeatureElementWriter<RealDataItem>
-
- com._1c.g5.v8.dt.chart.export.xml.writer.RealDataItemWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class RealDataItemWriter extends SimpleFeatureElementWriter<RealDataItem>
XML writer forRealDataItem
-
-
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 class com._1c.g5.v8.dt.chart.export.xml.writer.SimpleFeatureElementWriter
featureWriter, nameProvider
-
Fields inherited from interface com._1c.g5.v8.dt.export.xml.writer.ISpecifiedElementWriter
SMART_ELEMENT_WRITER
-
-
Constructor Summary
Constructors Constructor Description RealDataItemWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accessibleFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Returns that specified feature can be written by this writerprotected List<org.eclipse.emf.ecore.EStructuralFeature>
getPropertyFeatureOrderList(Version version)
Ordered list of features to writeprotected void
writeMultiElement(ExportXmlStreamWriter writer, boolean writeEmpty, Version version, QName elementName, Collection<org.eclipse.emf.ecore.EObject> values)
Write many value elements-
Methods inherited from class com._1c.g5.v8.dt.chart.export.xml.writer.SimpleFeatureElementWriter
isForceWriteEmptyFeature, write, writeSingleElement
-
-
-
-
Method Detail
-
writeMultiElement
protected void writeMultiElement(ExportXmlStreamWriter writer, boolean writeEmpty, Version version, QName elementName, Collection<org.eclipse.emf.ecore.EObject> values) throws XMLStreamException, ExportException
Description copied from class:SimpleFeatureElementWriter
Write many value elementsThis method can be overridden for specify custom rules writing. As default used
SimpleFeatureElementWriter.writeSingleElement(ExportXmlStreamWriter, boolean, Version, QName, EObject)
for each value from given collection- Overrides:
writeMultiElement
in classSimpleFeatureElementWriter<RealDataItem>
- Parameters:
writer
- the xmlExportXmlStreamWriter
, cannot benull
writeEmpty
- write empty element iftrue
or nothing iffalse
version
- the exporting projectVersion
, cannot benull
elementName
- the element name, cannot benull
values
- the collection of objects to write, cannot benull
- Throws:
XMLStreamException
ExportException
- See Also:
SimpleFeatureElementWriter.writeSingleElement(ExportXmlStreamWriter, boolean, Version, QName, EObject)
-
accessibleFeature
protected boolean accessibleFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Description copied from class:SimpleFeatureElementWriter
Returns that specified feature can be written by this writer- Specified by:
accessibleFeature
in classSimpleFeatureElementWriter<RealDataItem>
- Parameters:
feature
- the key feature, cannot benull
- Returns:
true
if this writer accessible for given feature,false
in otherwise
-
getPropertyFeatureOrderList
protected List<org.eclipse.emf.ecore.EStructuralFeature> getPropertyFeatureOrderList(Version version)
Description copied from class:SimpleFeatureElementWriter
Ordered list of features to write- Specified by:
getPropertyFeatureOrderList
in classSimpleFeatureElementWriter<RealDataItem>
- Parameters:
version
- the runtime version, cannot benull
- Returns:
- Ordered list of
EStructuralFeature
, nevernull
-
-