Class CommandHandlerWriter
- java.lang.Object
-
- com._1c.g5.v8.dt.form.export.xml.writer.CommandHandlerWriter
-
- All Implemented Interfaces:
ISpecifiedElementWriter
public class CommandHandlerWriter extends Object implements ISpecifiedElementWriter
Specified writer forCommandHandlerContainer
.
-
-
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 CommandHandlerWriter()
-
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
writeCommandHandler(ExportXmlStreamWriter writer, FormCommand command, org.eclipse.emf.ecore.EStructuralFeature feature, CommandHandler handler)
Writes a form command handler to the provided export XML stream writer.protected void
writeCommandHandlerAdditionalProperties(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, CommandHandler handler)
Writes a form command 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
-
writeCommandHandler
protected void writeCommandHandler(ExportXmlStreamWriter writer, FormCommand command, org.eclipse.emf.ecore.EStructuralFeature feature, CommandHandler handler) throws XMLStreamException, ExportException
Writes a form command handler to the provided export XML stream writer.- Parameters:
writer
- the XML stream writer to write event to, cannot benull
command
- the form command, 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
-
writeCommandHandlerAdditionalProperties
protected void writeCommandHandlerAdditionalProperties(ExportXmlStreamWriter writer, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature, CommandHandler handler) throws XMLStreamException, ExportException
Writes a form command 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
command
- the form command, 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
-
-