Class EventHandlerWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.form.export.xml.writer.EventHandlerWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class EventHandlerWriter extends Object implements ISpecifiedElementWriter
Specified writer for list ofEventHandler
.
-
-
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 EventHandlerWriter()
-
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
writeEvent(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, EventHandler handler)
Writes a form event handler to the provided export XML stream writer.protected void
writeEventAdditionalProperties(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, EventHandler handler)
Writes a form event handler additional properties to the provided export XML stream writer.
-
-
-
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
-
writeEvent
protected void writeEvent(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, EventHandler handler) throws XMLStreamException, ExportException
Writes a form event handler to the provided export XML stream writer.- Parameters:
writer
- the XML stream writer to write event to, cannot benull
eObject
- the context model object, cannot benull
feature
- the context model feature, cannot benull
handler
- the form event handler, cannot benull
- Throws:
XMLStreamException
- if XML write error occurredExportException
- if export processing errors
-
writeEventAdditionalProperties
protected void writeEventAdditionalProperties(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, EventHandler handler) throws XMLStreamException, ExportException
Writes a form event handler additional properties to the provided export XML stream writer. Default implementation writes nothing.- Parameters:
writer
- the XML stream writer to write event to, cannot benull
eObject
- the context model object, cannot benull
feature
- the context model feature, cannot benull
handler
- the form event handler, cannot benull
- Throws:
XMLStreamException
- if XML write error occurredExportException
- if export processing errors
-
-