|
|||||||||
| Home >> All >> org >> apache >> commons >> [ beanutils overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.commons.beanutils
Class BeanPredicate

java.lang.Objectorg.apache.commons.beanutils.BeanPredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
- public class BeanPredicate
- extends java.lang.Object
- implements org.apache.commons.collections.Predicate
- extends java.lang.Object
Predicate implementation that applies the given Predicate
to the result of calling the given property getter.
| Field Summary | |
private org.apache.commons.logging.Log |
log
|
private org.apache.commons.collections.Predicate |
predicate
Predicate to be applied to the property value |
private java.lang.String |
propertyName
Name of the property whose value will be predicated |
| Constructor Summary | |
BeanPredicate(java.lang.String propertyName,
org.apache.commons.collections.Predicate predicate)
Constructs a BeanPredicate that applies the given
Predicate to the named property value. |
|
| Method Summary | |
boolean |
evaluate(java.lang.Object object)
Evaluates the given object by applying the getPredicate() 55
to a property value named by getPropertyName() 55 . |
org.apache.commons.collections.Predicate |
getPredicate()
Gets the Predicate to be applied to the value of the named property
during evaluate(java.lang.Object) 55 . |
java.lang.String |
getPropertyName()
Gets the name of the property whose value is to be predicated. |
void |
setPredicate(org.apache.commons.collections.Predicate predicate)
Sets the Predicate to be applied to the value of the named property
during evaluate. |
void |
setPropertyName(java.lang.String propertyName)
Sets the name of the property whose value is to be predicated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private final org.apache.commons.logging.Log log
propertyName
private java.lang.String propertyName
- Name of the property whose value will be predicated
predicate
private org.apache.commons.collections.Predicate predicate
Predicateto be applied to the property value
| Constructor Detail |
BeanPredicate
public BeanPredicate(java.lang.String propertyName, org.apache.commons.collections.Predicate predicate)
- Constructs a
BeanPredicatethat applies the givenPredicateto the named property value.
| Method Detail |
evaluate
public boolean evaluate(java.lang.Object object)
- Evaluates the given object by applying the
getPredicate()55 to a property value named bygetPropertyName()55 .- Specified by:
evaluatein interfaceorg.apache.commons.collections.Predicate
getPropertyName
public java.lang.String getPropertyName()
- Gets the name of the property whose value is to be predicated.
in the evaluation.
setPropertyName
public void setPropertyName(java.lang.String propertyName)
- Sets the name of the property whose value is to be predicated.
getPredicate
public org.apache.commons.collections.Predicate getPredicate()
- Gets the
Predicateto be applied to the value of the named property duringevaluate(java.lang.Object)55 .
setPredicate
public void setPredicate(org.apache.commons.collections.Predicate predicate)
- Sets the
Predicateto be applied to the value of the named property duringevaluate.
|
|||||||||
| Home >> All >> org >> apache >> commons >> [ beanutils overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.commons.beanutils.BeanPredicate