|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.rules.constraint.property.AbstractPropertyConstraint
public abstract class AbstractPropertyConstraint
Convenience superclass for bean property expressions.
| Constructor Summary | |
|---|---|
protected |
AbstractPropertyConstraint()
|
protected |
AbstractPropertyConstraint(String propertyName)
|
| Method Summary | |
|---|---|
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. |
protected void |
setPropertyName(String propertyName)
|
boolean |
test(Object o)
Test the provided argument against this predicate's condition. |
protected abstract boolean |
test(PropertyAccessStrategy domainObjectAccessStrategy)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractPropertyConstraint()
protected AbstractPropertyConstraint(String propertyName)
| Method Detail |
|---|
public String getPropertyName()
PropertyConstraint
getPropertyName in interface PropertyConstraintpublic boolean isDependentOn(String propertyName)
PropertyConstrainttrue 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 PropertyConstraintpublic boolean isCompoundRule()
PropertyConstraint
isCompoundRule in interface PropertyConstraintprotected void setPropertyName(String propertyName)
public boolean test(Object o)
Constraint
test in interface Constrainto - the argument value
true if the condition was satisfied,
false otherwiseprotected abstract boolean test(PropertyAccessStrategy domainObjectAccessStrategy)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||