Class MetadataPictureDefWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.writer.PictureWriter
-
- com._1c.g5.v8.dt.md.export.xml.writer.MetadataPictureDefWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public final class MetadataPictureDefWriter extends PictureWriter
Specified writer forMdPicture
andCommonPicture
contentsNote this only for writing XML content of
MdPicture
andCommonPicture
classes by methodwriteMdPicture(ExportXmlStreamWriter, PictureDef, String)
- Restriction:
- This class is not intended to be sub-classed by clients.
-
-
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 MetadataPictureDefWriter()
-
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 rulesvoid
writeMdPicture(ExportXmlStreamWriter writer, PictureDef picture, String pictureFileExtension)
Write specified picture attributes in XML writer-
Methods inherited from class com._1c.g5.v8.dt.export.xml.writer.PictureWriter
writePictureDefContent, writePictureRefContent
-
-
-
-
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
- Overrides:
write
in classPictureWriter
- 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
-
writeMdPicture
public void writeMdPicture(ExportXmlStreamWriter writer, PictureDef picture, String pictureFileExtension) throws XMLStreamException, ExportException
Write specified picture attributes in XML writer- Parameters:
writer
- the xmlExportXmlStreamWriter
, cannot benull
picture
- the metadata picture to write, cannot benull
pictureFileExtension
- the string value of picture file extension, can benull
if given picture file has no extension- Throws:
XMLStreamException
- if unexpected processing errorsExportException
- if export processing errors
-
-