Class ReportFieldRegExp

    • Field Detail

      • m_Find

        protected BaseRegExp m_Find
        the string to find.
      • m_Replace

        protected String m_Replace
        the replacement string.
      • m_RemoveFileExt

        protected boolean m_RemoveFileExt
        whether to remove any file extension before applying the regexp.
      • m_FindPattern

        protected transient Pattern m_FindPattern
        the pattern to find.
    • Constructor Detail

      • ReportFieldRegExp

        public ReportFieldRegExp()
    • Method Detail

      • setFind

        public void setFind​(BaseRegExp value)
        Sets the string to find (regular expression).
        Parameters:
        value - the string
      • getFind

        public BaseRegExp getFind()
        Returns the string to find (regular expression).
        Returns:
        the string
      • findTipText

        public String findTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setReplace

        public void setReplace​(String value)
        Sets the string to replace the occurrences with.
        Parameters:
        value - the string
      • getReplace

        public String getReplace()
        Returns the string to replace the occurences with.
        Returns:
        the string
      • replaceTipText

        public String replaceTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRemoveFileExt

        public void setRemoveFileExt​(boolean value)
        Sets whether to remove any file extension before applying the regular expression.
        Parameters:
        value - true if to remove
      • getRemoveFileExt

        public boolean getRemoveFileExt()
        Returns whether to remove any file extension before applying the regular expression.
        Returns:
        true if to remove
      • removeFileExtTipText

        public String removeFileExtTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • handles

        public boolean handles​(Object obj)
        Checks whether the data type is handled.
        Specified by:
        handles in interface IDExtractor
        Overrides:
        handles in class ReportField
        Parameters:
        obj - the object to check
        Returns:
        true if handled
      • doExtractID

        protected String doExtractID​(Object obj)
        Extracts the ID from a object.
        Overrides:
        doExtractID in class ReportField
        Parameters:
        obj - the object to process
        Returns:
        the extracted ID, null if failed to extract or not handled