|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openfaces.component.filter.FilterCriterion
org.openfaces.component.filter.ExpressionFilterCriterion
public class ExpressionFilterCriterion
An expression-based filter criterion that compares a particular property (or expression) of a filtered object with
the specified parameters based on the specified condition. It consists of an expression (see the
getPropertyLocator()
method, or a quick expression accessor getExpressionStr()
), a condition
(see the getCondition()
method), and a list of parameters (see the getParameters()
method,
or convenience parameter access methods getArg1()
, getArg2()
, and isCaseSensitive
).
There's an additional inverse
property that works in conjunction with property expression and inverts
the result of comparison if set to true
.
Constructor Summary | |
---|---|
ExpressionFilterCriterion()
|
|
ExpressionFilterCriterion(ExpressionFilterCriterion criterion)
|
|
ExpressionFilterCriterion(FilterCondition condition,
boolean inverse)
|
|
ExpressionFilterCriterion(java.lang.Object arg1)
|
|
ExpressionFilterCriterion(PropertyLocator propertyLocator,
FilterCondition condition,
java.lang.Object arg1)
|
Method Summary | |
---|---|
boolean |
acceptsAll()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getArg1()
Returns the first argument of this criterion. |
java.lang.Object |
getArg2()
Returns the second argument of this criterion. |
FilterCondition |
getCondition()
Returns the filtering condition for this criterion. |
java.lang.String |
getExpressionStr()
Returns the expression string for this criterion. |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
|
PropertyLocator |
getPropertyLocator()
|
int |
hashCode()
|
boolean |
isCaseSensitive()
Identifies whether text comparison should be performed in a case-sensitive way. |
boolean |
isInverse()
Specifies whether the condition specified with the "condition" property should be treated in the opposite way. |
java.lang.Object |
process(FilterCriterionProcessor processor)
|
void |
setArg1(java.lang.Object arg1)
|
void |
setArg2(java.lang.Object arg2)
|
void |
setCaseSensitive(boolean caseSensitive)
|
void |
setCondition(FilterCondition condition)
|
void |
setInverse(boolean inverse)
|
void |
setPropertyLocator(PropertyLocator propertyLocator)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionFilterCriterion()
public ExpressionFilterCriterion(java.lang.Object arg1)
public ExpressionFilterCriterion(PropertyLocator propertyLocator, FilterCondition condition, java.lang.Object arg1)
public ExpressionFilterCriterion(FilterCondition condition, boolean inverse)
public ExpressionFilterCriterion(ExpressionFilterCriterion criterion)
Method Detail |
---|
public java.lang.Object process(FilterCriterionProcessor processor)
process
in class FilterCriterion
public boolean acceptsAll()
acceptsAll
in class FilterCriterion
public PropertyLocator getPropertyLocator()
public void setPropertyLocator(PropertyLocator propertyLocator)
public java.lang.String getExpressionStr()
public FilterCondition getCondition()
public void setCondition(FilterCondition condition)
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
public void setArg1(java.lang.Object arg1)
public java.lang.Object getArg1()
public void setArg2(java.lang.Object arg2)
public java.lang.Object getArg2()
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public boolean isInverse()
public void setInverse(boolean inverse)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |