Class TransformationConfigReaderImpl

  • All Implemented Interfaces:
    IO, Reader

    public class TransformationConfigReaderImpl
    extends XMLReaderImpl
    CAKE-Reader for transformation-config-XMLFiles, which instantiates the SAXParser
    Author:
    Alexander Stromer
    • Field Detail

    • Constructor Detail

      • TransformationConfigReaderImpl

        public TransformationConfigReaderImpl()
    • Method Detail

      • getDescription

        public String getDescription()
        A description of the io component. The description should contain the file format and the classes that can be managed.
        Specified by:
        getDescription in interface IO
        Overrides:
        getDescription in class IOImpl
        Returns:
        a description of the io component
      • 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()).
        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;
         }
         
        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
        Returns: