Class ColorWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.writer.ColorWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
- Direct Known Subclasses:
FormGraphicalSchemeColorWriter
,PlannerColorWriter
public class ColorWriter extends Object implements ISpecifiedElementWriter
Specified writer forColor
-
-
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 ColorWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColorRepresentation(Color color)
Color value XML representationvoid
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 rulesvoid
writeColor(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EStructuralFeature feature, Color color, boolean writeEmpty, QName elementQName)
Writes color.
-
-
-
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
-
writeColor
public void writeColor(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EStructuralFeature feature, Color color, boolean writeEmpty, QName elementQName) throws XMLStreamException, ExportException
Writes color.- Parameters:
writer
- the writerfeature
- the featurecolor
- the color, cannot benull
writeEmpty
-elementQName
- the element qualified name, cannot benull
- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
-