Package com.uc4.api.objects
Class OutputFilter.Entry
java.lang.Object
com.uc4.api.objects.OutputFilter.Entry
- Enclosing class:
- OutputFilter
This class represents a single filter definition in an
OutputFilter
object.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
File.static final char
Registered.static final char
Report. -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.Use the other constructor in order to create a filter for registered job output.Creates a new filter condition.protected
Internal use only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the filter text.Returns the source of this filter.boolean
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
Returnstrue
if the source is a registered job output.boolean
isReport()
Returnstrue
if the source is a report.
-
Field Details
-
TYPE_REPORT
public static final char TYPE_REPORTReport.- See Also:
-
TYPE_FILE
public static final char TYPE_FILEFile.- See Also:
-
TYPE_REGISTERED
public static final char TYPE_REGISTEREDRegistered.- See Also:
-
-
Constructor Details
-
Entry
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
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
Internal use only. Creates a filter entry from the specified DOM element.- Parameters:
row
- Element
-
-
Method Details
-
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
Returns the source of this filter.- Returns:
- report name or a filter for a file name
-
getFilterText
Returns the filter text.- Returns:
- filter text
-