|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.rules.constraint.property.CompoundPropertyConstraint
public class CompoundPropertyConstraint
Abstract base class for unary predicates which compose other predicates.
Constructor Summary | |
---|---|
CompoundPropertyConstraint(CompoundConstraint compoundConstraint)
Constructs a compound predicate with no initial members. |
Method Summary | |
---|---|
CompoundPropertyConstraint |
add(PropertyConstraint constraint)
Add the specified predicate to the set of predicates aggregated by this compound predicate. |
Constraint |
getPredicate()
|
String |
getPropertyName()
Returns the constrained property name. |
boolean |
isCompoundRule()
Does this property constraint effect more than one property? |
boolean |
isDependentOn(String propertyName)
Returns true if this property constraint is dependent on
the provided propertyName for test evaluation; that is, it should be retested
when propertyName changes. |
Iterator |
iterator()
Return an iterator over the aggregated predicates. |
boolean |
test(Object bean)
Test the provided argument against this predicate's condition. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompoundPropertyConstraint(CompoundConstraint compoundConstraint)
Method Detail |
---|
public String getPropertyName()
PropertyConstraint
getPropertyName
in interface PropertyConstraint
public boolean isDependentOn(String propertyName)
PropertyConstraint
true
if this property constraint is dependent on
the provided propertyName for test evaluation; that is, it should be retested
when propertyName changes.
isDependentOn
in interface PropertyConstraint
public boolean isCompoundRule()
PropertyConstraint
isCompoundRule
in interface PropertyConstraint
public Constraint getPredicate()
public CompoundPropertyConstraint add(PropertyConstraint constraint)
predicate
- the predicate to add
public Iterator iterator()
public boolean test(Object bean)
Constraint
test
in interface Constraint
bean
- the argument value
true
if the condition was satisfied,
false
otherwisepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |