Class RemoveByDataType

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter, SizeOfHandler, Serializable, Comparable

    public class RemoveByDataType
    extends AbstractReportFilter
    Removes all fields from the report that match the defined data types. If matching is inverted, the filter keeps all defined data types instead and removes all others.

    Valid options are:

    -D <int> (property: debugLevel)
        The greater the number the more additional info the scheme may output to 
        the console (0 = off).
        default: 0
        minimum: 0
     
    -data-type <S|N|B|U> [-data-type ...] (property: dataTypes)
        The data types to remove (or keep, if matching is inverted).
        default: 
     
    -invert-matching (property: invertMatching)
        If enabled the data types are retained rather than deleted, all that aren't 
        listed are then removed instead.
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_DataTypes

        protected DataType[] m_DataTypes
        the data types to remove.
      • m_InvertMatching

        protected boolean m_InvertMatching
        whether to invert the matching, ie keeping the types and remove all others.
    • Constructor Detail

      • RemoveByDataType

        public RemoveByDataType()
    • Method Detail

      • setDataTypes

        public void setDataTypes​(DataType[] value)
        Sets the data types to remove.
        Parameters:
        value - the data types
      • getDataTypes

        public DataType[] getDataTypes()
        Returns the data types to remove.
        Returns:
        the data types
      • dataTypesTipText

        public String dataTypesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setInvertMatching

        public void setInvertMatching​(boolean value)
        Sets whether to invert the matching sense.
        Parameters:
        value - true if to invert
      • getInvertMatching

        public boolean getInvertMatching()
        Returns whether to invert the matching sense.
        Returns:
        true if inverted
      • invertMatchingTipText

        public String invertMatchingTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui