Interface IO

All Known Subinterfaces:
ProCAKEReader, ProCAKEWriter
All Known Implementing Classes:
AbstractXMLHandler, AbstractXMLReader, AbstractXMLWriter, AdaptationConfigHandler, AdaptationConfigReader, DependencyHandler, DependencyReader, DependencyWriter, IOImpl, ModelHandler, ModelReader, ModelWriter, NESTAbstractWorkflowHandler, NESTGraphHandler, NESTGraphReader, NESTGraphWriter, NESTSequentialWorkflowHandler, NESTSequentialWorkflowReader, NESTSequentialWorkflowWriter, NESTWorkflowHandler, NESTWorkflowReader, NESTWorkflowWriter, ObjectHandler, ObjectPoolHandler, ObjectPoolReader, ObjectPoolWriter, ObjectReader, ObjectWriter, PrologGraphReader, SimilarityModelHandler, SimilarityModelReader, SimilarityModelWriter, TrainingObjectPoolHandler, TrainingObjectPoolReader, TrainingPoolWriter, TransformationConfigHandler, TransformationConfigReaderImpl, WorkflowGraphMLYWriter, WorkflowHandler, WorkflowWriter

public interface IO
The IO interace summarises constants and methods for all io components.

All io components can be created using the IOFactory.newIO(String). The name of the io component must be either known or requested with one of the methods IOFactory.getContentHandlerNamesFor(Class), IOFactory.getReaderNamesFor(Class), or IOFactory.getWriterNamesFor(Class).

Rainer Maximini
See Also:
  • Field Details

  • Method Details

    • getName

      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()).
      Returns the name of the io component.
    • isHandlerFor

      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;
      value - The class that has to be checked.
      Results true if the class can oeprate with the given class.
    • getFamily

      String getFamily()
      Returns the IO-family of this operator
    • setFamily

      void setFamily(String familyName)
      Sets the IO-family of this operator
      familyName -
    • copy

      IO copy()
      overwritten copy-method from Object; use it to copy a complete operator