Class NESTSequentialWorkflowWriter

All Implemented Interfaces:
NESTGraphTags, ObjectTags, IO, ProCAKEWriter
Direct Known Subclasses:
NESTWorkflowWriter

public class NESTSequentialWorkflowWriter extends NESTGraphWriter implements NESTGraphTags
This class serializes a NESTSequentialWorkflow to XML.
Author:
Alexander Schultheis
  • Field Details

    • WRITER_NAME

      public static final String WRITER_NAME
      Constant value is "XercesSaxNESTSequentialWorkflowWriter".
      See Also:
  • Constructor Details

    • NESTSequentialWorkflowWriter

      public NESTSequentialWorkflowWriter()
  • Method Details

    • getName

      public String getName()
      Each io component must have a name that is used in IOFactory.newIO(String). The name must be unique thus it is usefull to use a short description or to the class name ( this.getClass().getName()).
      Specified by:
      getName in interface IO
      Overrides:
      getName in class NESTGraphWriter
      Returns:
      Returns the name of the io component.
    • isHandlerFor

      public boolean isHandlerFor(Class value)
      Checks if the io component is capable to perform the operation for objects of this class.

      A typical implementation looks like:

       public boolean isHandlerFor(Class value) {
              if (DataObject.class.isAssignableFrom(value))
                      return true;
              return false;
       }
       
      Specified by:
      isHandlerFor in interface IO
      Overrides:
      isHandlerFor in class NESTGraphWriter
      Parameters:
      value - The class that has to be checked.
      Returns:
      Results true if the class can oeprate with the given class.
    • copy

      public IO copy()
      overwritten copy-method from Object; use it to copy a complete operator
      Specified by:
      copy in interface IO
      Overrides:
      copy in class NESTGraphWriter
      Returns:
    • store

      public void store(Object value, GenericXMLSchemaBasedWriter writer) throws CAKEIOException
      Description copied from class: NESTGraphWriter
      To embed xml writers into another one it must be possible to specify the parent GenericXMLSchemaBasedWriter as well as a prefix that should be probably used. If a parent writer is specified, no header will be written.

      If the writer does not support XML writing, the writer should throw an UnsupportedOperationException.

       public void store(Object value, String prefix, XMLWriter writer) throws CakeIOException {
              throw new UnsupportedOperationException();
       }
       
      Overrides:
      store in class NESTGraphWriter
      Parameters:
      value - a Object object
      writer - A parent writer that is used.
      Throws:
      CAKEIOException - if any.