Class OutputFilter.Entry

  • Enclosing class:
    OutputFilter

    public static class OutputFilter.Entry
    extends java.lang.Object
    This class represents a single filter definition in an OutputFilter object.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Entry​(boolean report, boolean contains, java.lang.String source, java.lang.String filterText)
      Deprecated.
      Use the other constructor in order to create a filter for registered job output.
        Entry​(char type, boolean contains, java.lang.String source, java.lang.String filterText)
      Creates a new filter condition.
      protected Entry​(org.w3c.dom.Element row)
      Internal use only.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFilterText()
      Returns the filter text.
      java.lang.String getSource()
      Returns the source of this filter.
      boolean isContains()
      Returns true if this filter matches when the filter text is found in the source, false if this filter should match when the filter text is not found.
      boolean isFile()
      Returns true if the source is a file.
      boolean isRegisteredJobOutput()
      Returns true if the source is a registered job output.
      boolean isReport()
      Returns true if the source is a report.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entry

        @Deprecated
        public Entry​(boolean report,
                     boolean contains,
                     java.lang.String source,
                     java.lang.String filterText)
        Deprecated.
        Use the other constructor in order to create a filter for registered job output.
        Creates a new filter condition for report or file.
        Parameters:
        report - true if the source of this filter is a report, false if it is an external file.
        contains - true if the filter matches when the filterText is found, false if the filter should match if the filtertext was not found
        source - Name of the report or a file name, depending on the value of the parameter report. For reports the 4 letter abbreviation has to be used (SLOG, SAPL, ...)
        filterText - Search text
      • Entry

        public Entry​(char type,
                     boolean contains,
                     java.lang.String source,
                     java.lang.String filterText)
        Creates a new filter condition.
        Parameters:
        type - Use one of the static constants (TYPE_REPORT, TYPE_FILE, TYPE_REGISTERED) of this class or pass the following value:
        • R ... Report
        • O ... Output
        • F ... File
        contains - true if the filter matches when the filterText is found, false if the filter should match if the filtertext was not found
        source - Name of the report or a file name, depending on the value of the parameter report. For reports the 4 letter abbreviation has to be used (SLOG, SAPL, ...)
        filterText - Search text
      • Entry

        protected Entry​(org.w3c.dom.Element row)
        Internal use only. Creates a filter entry from the specified DOM element.
        Parameters:
        row - Element
    • Method Detail

      • isReport

        public boolean isReport()
        Returns true if the source is a report.
        Returns:
        true if the source of this filter is a report; false if not
      • isFile

        public boolean isFile()
        Returns true if the source is a file.
        Returns:
        true if the source of this filter is a file; false if not
      • isRegisteredJobOutput

        public boolean isRegisteredJobOutput()
        Returns true if the source is a registered job output.
        Returns:
        true if the source of this filter is a registered job output; false if not
      • isContains

        public boolean isContains()
        Returns true if this filter matches when the filter text is found in the source, false if this filter should match when the filter text is not found.
        Returns:
        Contains filter text (true/false)
      • getSource

        public java.lang.String getSource()
        Returns the source of this filter.
        Returns:
        report name or a filter for a file name
      • getFilterText

        public java.lang.String getFilterText()
        Returns the filter text.
        Returns:
        filter text