Class CommandHandlerWriter

    • Constructor Detail

      • CommandHandlerWriter

        public CommandHandlerWriter()
    • Method Detail

      • 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 be null
        command - the form command, cannot be null
        feature - the context model feature, cannot be null
        handler - the form event handler, cannot be null
        Throws:
        XMLStreamException - if XML write error occurred
        ExportException - 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 be null
        command - the form command, cannot be null
        feature - the context model feature, cannot be null
        handler - the form event handler, cannot be null
        Throws:
        XMLStreamException - if XML write error occurred
        ExportException - if export processing errors