? BeanPredicate
java.lang.Object
org.apache.commons.beanutils.BeanPredicate
- ????????:
org.apache.commons.collections.Predicate
Predicate implementation that applies the given Predicate
to the result of calling the given property getter.
- ??:
- $Id$
-
?????
????????BeanPredicate
(String propertyName, org.apache.commons.collections.Predicate predicate) Constructs aBeanPredicate
that applies the givenPredicate
to the named property value. -
????
??????????boolean
Evaluates the given object by applying thegetPredicate()
to a property value named bygetPropertyName()
.org.apache.commons.collections.Predicate
Gets thePredicate
to be applied to the value of the named property duringevaluate(java.lang.Object)
.Gets the name of the property whose value is to be predicated.void
setPredicate
(org.apache.commons.collections.Predicate predicate) Sets thePredicate
to be applied to the value of the named property duringevaluate(Object)
.void
setPropertyName
(String propertyName) Sets the name of the property whose value is to be predicated.
-
???????
-
BeanPredicate
Constructs aBeanPredicate
that applies the givenPredicate
to the named property value.- ??:
propertyName
- the name of the property whose value is to be predicated, not nullpredicate
- thePredicate
to be applied, not null
-
-
??????
-
evaluate
Evaluates the given object by applying thegetPredicate()
to a property value named bygetPropertyName()
.- ???:
evaluate
????org.apache.commons.collections.Predicate
- ??:
object
- The object being evaluated- ??:
- the result of the predicate evaluation
- ??:
IllegalArgumentException
- when the property cannot be evaluated
-
getPropertyName
Gets the name of the property whose value is to be predicated. in the evaluation.- ??:
- the property name, not null
-
setPropertyName
Sets the name of the property whose value is to be predicated.- ??:
propertyName
- the name of the property whose value is to be predicated, not null
-
getPredicate
Gets thePredicate
to be applied to the value of the named property duringevaluate(java.lang.Object)
.- ??:
Predicate
, not null
-
setPredicate
Sets thePredicate
to be applied to the value of the named property duringevaluate(Object)
.- ??:
predicate
-Predicate
, not null
-