Package com.uc4.api.objects
Class OutputFilter.Entry
- java.lang.Object
-
- com.uc4.api.objects.OutputFilter.Entry
-
- Enclosing class:
- OutputFilter
public static class OutputFilter.Entry extends java.lang.Object
This class represents a single filter definition in anOutputFilter
object.
-
-
Field Summary
Fields Modifier and Type Field Description static char
TYPE_FILE
File.static char
TYPE_REGISTERED
Registered.static char
TYPE_REPORT
Report.
-
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()
Returnstrue
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()
Returnstrue
if the source is a file.boolean
isRegisteredJobOutput()
Returnstrue
if the source is a registered job output.boolean
isReport()
Returnstrue
if the source is a report.
-
-
-
Field Detail
-
TYPE_REPORT
public static final char TYPE_REPORT
Report.- See Also:
- Constant Field Values
-
TYPE_FILE
public static final char TYPE_FILE
File.- See Also:
- Constant Field Values
-
TYPE_REGISTERED
public static final char TYPE_REGISTERED
Registered.- See Also:
- Constant Field Values
-
-
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 foundsource
- Name of the report or a file name, depending on the value of the parameterreport
. 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 foundsource
- Name of the report or a file name, depending on the value of the parameterreport
. 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()
Returnstrue
if the source is a report.- Returns:
- true if the source of this filter is a report; false if not
-
isFile
public boolean isFile()
Returnstrue
if the source is a file.- Returns:
- true if the source of this filter is a file; false if not
-
isRegisteredJobOutput
public boolean isRegisteredJobOutput()
Returnstrue
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()
Returnstrue
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
-
-