Package com.uc4.api.objects
Class OutputFilter
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- com.uc4.api.objects.OutputFilter
-
- All Implemented Interfaces:
java.lang.Iterable<OutputFilter.Entry>
public class OutputFilter extends UC4Object implements java.lang.Iterable<OutputFilter.Entry>
Output Filter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOutputFilter.EntryThis class represents a single filter definition in anOutputFilterobject.static classOutputFilter.OperatorOperator.
-
Constructor Summary
Constructors Constructor Description OutputFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(OutputFilter.Entry filterEntry)Adds a new filter definition.OutputFilter.OperatorgetOperator()Returns the operator which is used to combine the filter in this object.Headerheader()Returns the header data of this object.booleanisExecutable()Returnstrueif this Object can be executed.java.util.Iterator<OutputFilter.Entry>iterator()Iterator which can be used to read the filter or remove them using Iterator.remove().protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)voidremoveAllFilters()Removes all existing filters.voidsetOperator(OutputFilter.Operator operator)Sets the operator which is used to combine the filter in this object.intsize()protected voidstoreContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
-
-
-
Method Detail
-
loadContent
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
header
public Header header()
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
getOperator
public OutputFilter.Operator getOperator()
Returns the operator which is used to combine the filter in this object. Possible values are: AND, OR.- Returns:
- Enum "AND" or "OR"
-
size
public int size()
- Returns:
- Number of filter entries
-
iterator
public java.util.Iterator<OutputFilter.Entry> iterator()
Iterator which can be used to read the filter or remove them using Iterator.remove().- Specified by:
iteratorin interfacejava.lang.Iterable<OutputFilter.Entry>- Returns:
- Iteraotr over
OutputFilter.Entry.
-
add
public void add(OutputFilter.Entry filterEntry)
Adds a new filter definition.- Parameters:
filterEntry- Filter
-
removeAllFilters
public void removeAllFilters()
Removes all existing filters.
-
setOperator
public void setOperator(OutputFilter.Operator operator)
Sets the operator which is used to combine the filter in this object. Possible values are: AND, OR.- Parameters:
operator- Enum "AND" or "OR"
-
isExecutable
public boolean isExecutable()
Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-
-