Documentation of 'org.joone.util.AbstractConverterPlugIn' Java class
AbstractConverterPlugIn
org.joone.util

Class AbstractConverterPlugIn

    • Constructor Detail

      • AbstractConverterPlugIn

        public AbstractConverterPlugIn()
        Creates a new instance of AbstractConverterPlugIn
      • AbstractConverterPlugIn

        public AbstractConverterPlugIn(java.lang.String anAdvancedSerieSelector)
        Creates a new instance of AbstractConverterPlugIn
        Parameters:
        anAdvancedSerieSelector - the advanced serie selector to use.
        See Also:
        setAdvancedSerieSelector()
    • Method Detail

      • convertPatterns

        public void convertPatterns()
        Converts all the patterns contained by InputVector and on the serie specifed by the call to setAdvancedSerieSelector#setAdvancedSerieSelector. It cascades also the conversion to the next-plugin connected in the chain.
      • getName

        public java.lang.String getName()
        Gets the name of this plug-in object.
        Returns:
        The name of this plug-in.
      • setName

        public void setName(java.lang.String aName)
        Sets the name of this plug-in object.
        Parameters:
        aName - New name for this object.
      • isConnected

        public boolean isConnected()
        Getter for property connected. This property is true when this plugin has been attached either to a StreamInputSynapse or to another plugin.
        Returns:
        Value of property connected.
      • setConnected

        public void setConnected(boolean aConnected)
        Setter for property connected. This property is true when this plugin has been attached either to a StreamInputSynapse or to another plugin.
        Parameters:
        aConnected - New value of property connected.
      • addPlugInListener

        public void addPlugInListener(PlugInListener aListener)
        Adds an PlugInListener to this plug-in. Usually this will be the previous plug-in in the series of cascading plug-ins or the stream input/output synapse.
        Parameters:
        aListener - The listener that requires notification of events from this plug-in whenever data changes.
      • removePlugInListener

        public void removePlugInListener(PlugInListener aListener)
        Removes a PlugInListener that was previously registered to receive plugin (data changed) events.
        Parameters:
        aListener - The listener that does not want to receive any events anymore from this plug-in.
      • dataChanged

        public void dataChanged(PlugInEvent anEvent)
        Description copied from interface: PlugInListener
        This method is called by plug-ins whenever data is changed.
        Specified by:
        dataChanged in interface PlugInListener
        Parameters:
        anEvent - the event that is send, i.e. the event indicating that the data is changed.
      • getAdvancedSerieSelector

        public java.lang.String getAdvancedSerieSelector()
        Gets the AdvancedSerieSelector.
        Returns:
        Value of property AdvancedSerieSelector.
      • setAdvancedSerieSelector

        public void setAdvancedSerieSelector(java.lang.String aNewSerieSelector)
        Sets the AdvancedSerieSelector for this plugin.

        The AdvancedSerieSelector instructs this plug-in what serie/columns it should process. The format of this specification is a common seperated list of values and ranges. E.g '1,2,5,7' will instruct the converter to convert serie 1 and 2 and 5 and 7. A range can also be used e.g '2,4,5-8,9' will instruct the converter to process serie 2 and 4 and 5 and 6 and 7 and 8 and 9. A range is specifed using a '-' character with the number of the serie on either side.

        Note NO negative numbers can be used in the AdvancedSerieSelector.

        Parameters:
        aNewSerieSelector - New value for the AdvancedSerieSelector.
      • addPlugIn

        public boolean addPlugIn(AbstractConverterPlugIn aNewPlugIn)
        Adds a plug-in at the end of the list of plug-ins.
        Parameters:
        aNewPlugIn - the new plug in to add at the end of plug ins.
        Returns:
        true when the plug in is added succesfully, false when the plug in is not added, e.g. in case the plug in is already added / connected to another synapse / plug-in.
      • removeAllPlugIns

        public void removeAllPlugIns()
        Removes (and disconnects) all (cascading) plug ins.
      • setNextPlugin

        public boolean setNextPlugin(AbstractConverterPlugIn aNewNextPlugIn)
        Sets the next plug-in in a cascading series of plugins.
        Parameters:
        aNewNextPlugIn - The next plug-in in the series.
        Returns:
        true when the plug-in is successfully added, false otherwise.
      • getNextPlugIn

        public AbstractConverterPlugIn getNextPlugIn()
        Gets the next converter plug-in within this cascading series of plug-ins.
        Returns:
        the next plug-in within this cascading series of plug-ins.
      • setInputVector

        public void setInputVector(java.util.Vector newInputVector)
        Sets the input vector of Patterns that this converter plugin should process.
        Parameters:
        newInputVector - The vector of Pattern objects to process.
      • check

        public java.util.TreeSet check(java.util.TreeSet checks)
        This method is called to perform a check on this converter's properties to ensure there are no errors or problems. If there is an error or problem with one of the properties then the issues are returned in a TreeSet object.
        Parameters:
        checks - A TreeSet of issues that should be added to by this plug-in.
        Returns:
        A TreeSet of errors or problems relating to the setup of this converter plug-in object.
        See Also:
        Synapse

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.