Class ELCollectionFilter
java.lang.Object
org.kuali.rice.krad.uif.container.ELCollectionFilter
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,CollectionFilter
Collection filter that evaluates a configured el expression against each line
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()OverrideObject.clone()to assign the public modifier.filter(View view, Object model, CollectionGroup collectionGroup) Iterates through the collection and evaluates the el expression in context of the line.Expression that will be evaluated for each line to determine whether the line should be filteredvoidsetExpression(String expression) Setter for the expression to use for filtering
-
Constructor Details
-
ELCollectionFilter
public ELCollectionFilter()
-
-
Method Details
-
filter
Iterates through the collection and evaluates the el expression in context of the line. If the expression evaluates to true, the line will remain, else be filtered out- Specified by:
filterin interfaceCollectionFilter- Parameters:
view- - view instance for the collection groupmodel- - object containing the view data and from which the collection should be pulled/updatedcollectionGroup- - collection group instance containing configuration for the collection- Returns:
- the list that contains valid row indexes
- See Also:
-
getExpression
Expression that will be evaluated for each line to determine whether the line should be filteredIf expression passes, the line will remain in the collection, otherwise be filtered out. The expression given should evaluate to a boolean
- Returns:
- valid el expression that evaluates to a boolean
-
setExpression
Setter for the expression to use for filtering- Parameters:
expression-
-
clone
Description copied from interface:CopyableOverrideObject.clone()to assign the public modifier.- Specified by:
clonein interfaceCopyable- Overrides:
clonein classObject- Returns:
Object.clone()- Throws:
CloneNotSupportedException- IfCloneableis not implemented. This should not be possible when using this interface.- See Also:
-