Class PictureWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.writer.PictureWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
- Direct Known Subclasses:
MetadataPictureDefWriter
public class PictureWriter extends Object implements ISpecifiedElementWriter
Specified writer forPicture
-
-
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 PictureWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
writePictureDefContent(ExportXmlStreamWriter writer, String pictureName, Point transparentPixel)
WritePictureDef
attributes in xmlprotected void
writePictureRefContent(ExportXmlStreamWriter writer, String reference, boolean loadTransparent)
WritePictureRef
attributes in xml
-
-
-
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
-
writePictureRefContent
protected final void writePictureRefContent(ExportXmlStreamWriter writer, String reference, boolean loadTransparent) throws XMLStreamException
WritePictureRef
attributes in xml- Parameters:
writer
- the target xml writer, cannot bynull
reference
- the reference string value to write in xml, cannot bynull
loadTransparent
- the load transparent value to write in xml- Throws:
XMLStreamException
- if unexpected processing errors
-
writePictureDefContent
protected final void writePictureDefContent(ExportXmlStreamWriter writer, String pictureName, Point transparentPixel) throws XMLStreamException, ExportException
WritePictureDef
attributes in xml- Parameters:
writer
- the target xml writer, cannot bynull
pictureName
- the picture name to write in xml, cannot bynull
transparentPixel
- thePoint
object to write in xml, can benull
if absent- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
-