Class RemoveByName

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

    public class RemoveByName
    extends AbstractReportFilter
    Removes all fields from the report which names match the specified regular expression. Matching can be inverted as well.

    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
     
    -reg-exp <adams.core.base.BaseRegExp> (property: regExp)
        The regular expression that the field names must match to get removed (or 
        being kept, if matching is inverted).
        default: .*
     
    -invert-matching (property: invertMatching)
        If enabled the fields that don't match are retained rather than deleted.
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression to match against the names.
      • m_InvertMatching

        protected boolean m_InvertMatching
        whether to invert the matching, ie keeping the fields that don't match.
    • Constructor Detail

      • RemoveByName

        public RemoveByName()
    • Method Detail

      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression to use.
        Parameters:
        value - the regular expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression in use.
        Returns:
        the regular expression
      • regExpTipText

        public String regExpTipText()
        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