Package com._1c.g5.v8.dt.formnative
Class NativeElementXmlWriter
java.lang.Object
com._1c.g5.v8.dt.formnative.NativeElementXmlWriter
- Direct Known Subclasses:
HippoLayUiElementWriter
The XML writer for elements from UI scheme and MainElement (http://v8.1c.ru/8.2/managed-application/logform) scheme.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteColorAsAbsolute(QName qName, Color color, ExportXmlStreamWriter writer) Writes absoluteColorvalue to xmlvoidwriteFontAsAbsolute(QName qName, Font font, ExportXmlStreamWriter writer) Writes absoluteFontvalue to xmlvoidwritePicture(QName qname, Picture picture, org.eclipse.emf.ecore.EObject contextObject, ExportXmlStreamWriter writer) Writes picture content as base64 stringvoidwriteShortCut(QName name, String shortCutString, ExportXmlStreamWriter writer) Writes a short cut element.voidwriteTitle(QName qname, Titled titled, ExportXmlStreamWriter writer) Writes title fromTitledelement by current editing language codevoidwriteToolTip(QName qname, TooltipContainer tooltipContainer, ExportXmlStreamWriter writer) Writes tooltip fromTooltipContainerelement by current editing language code
-
Constructor Details
-
NativeElementXmlWriter
public NativeElementXmlWriter()
-
-
Method Details
-
writePicture
public void writePicture(QName qname, Picture picture, org.eclipse.emf.ecore.EObject contextObject, ExportXmlStreamWriter writer) throws XMLStreamException, IOException, ExportException Writes picture content as base64 string- Parameters:
qname- start xml tag containing picture content as a string, cannot benullpicture- writing picture, cannot benullcontextObject-EObjectfor getting actualIV8Projectand actualIPictureManifest, cannot benullwriter- actualExportXmlStreamWriterfor write xml tags, cannot benull- Throws:
XMLStreamException- if an error occurred of write in streamIOException- if there is a problem to read the picture contentExportException- if an error occurred of write invalid data
-
writeTitle
public void writeTitle(QName qname, Titled titled, ExportXmlStreamWriter writer) throws XMLStreamException Writes title fromTitledelement by current editing language code- Parameters:
qname- start xml tag containing title, cannot benulltitled-Titledfor getting title, cannot benullwriter- actualExportXmlStreamWriterfor write xml tags, cannot benull- Throws:
XMLStreamException- if an error occurred of write in stream
-
writeToolTip
public void writeToolTip(QName qname, TooltipContainer tooltipContainer, ExportXmlStreamWriter writer) throws XMLStreamException Writes tooltip fromTooltipContainerelement by current editing language code- Parameters:
qname- start xml tag containing tooltip, cannot benulltooltipContainer-TooltipContainerfor getting tooltip, cannot benullwriter- actualExportXmlStreamWriterfor write xml tags, cannot benull- Throws:
XMLStreamException- if an error occurred of write in stream
-
writeShortCut
public void writeShortCut(QName name, String shortCutString, ExportXmlStreamWriter writer) throws XMLStreamException, ExportException Writes a short cut element.- Parameters:
name- the element name, cannot benullshortCutString- the short cut, can benullwriter- the writer, cannot benull- Throws:
XMLStreamException- if well-formedness errors occurs as well as unexpected processing conditionsExportException
-
writeColorAsAbsolute
public void writeColorAsAbsolute(QName qName, Color color, ExportXmlStreamWriter writer) throws XMLStreamException Writes absoluteColorvalue to xml- Parameters:
qName- start xml tag containing absolute color, cannot benullcolor- color for writing, cannot benullwriter- actualExportXmlStreamWriterfor write xml tags, cannot benull- Throws:
XMLStreamException- if an error occurred of write in stream
-
writeFontAsAbsolute
public void writeFontAsAbsolute(QName qName, Font font, ExportXmlStreamWriter writer) throws XMLStreamException, ExportException Writes absoluteFontvalue to xml- Parameters:
qName- start xml tag containing absolute font, cannot benullfont- font for writing, cannot benullwriter- actualExportXmlStreamWriterfor write xml tags, cannot benull- Throws:
XMLStreamException- if an error occurred of write in streamExportException- if an error occurred of write invalid data
-