Class PointPropertiesWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.chart.export.xml.writer.SimpleFeatureElementWriter<PointProperties>
-
- com._1c.g5.v8.dt.chart.export.xml.writer.PointPropertiesWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class PointPropertiesWriter extends SimpleFeatureElementWriter<PointProperties>
XML writer forPointProperties
-
-
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 PointPropertiesWriter()
-
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 boolean
isForceWriteEmptyFeature(boolean elementWriteEmpty, org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Returns that contained empty or default value in specified feature must be writtenprotected 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
write, writeSingleElement
-
-
-
-
Method Detail
-
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<PointProperties>
- 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<PointProperties>
- Parameters:
version
- the runtime version, cannot benull
- Returns:
- Ordered list of
EStructuralFeature
, nevernull
-
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<PointProperties>
- 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)
-
isForceWriteEmptyFeature
protected boolean isForceWriteEmptyFeature(boolean elementWriteEmpty, org.eclipse.emf.ecore.EStructuralFeature feature, Version version)
Description copied from class:SimpleFeatureElementWriter
Returns that contained empty or default value in specified feature must be written- Overrides:
isForceWriteEmptyFeature
in classSimpleFeatureElementWriter<PointProperties>
- Parameters:
elementWriteEmpty
- the common write empty value for context objectfeature
- the key feature, cannot benull
version
- the exporting projectVersion
, cannot benull
- Returns:
true
to force writing feature with empty or default value,false
otherwise
-
-