org.springframework.rules.constraint.property
Class NegatedPropertyConstraint
java.lang.Object
org.springframework.rules.constraint.Not
org.springframework.rules.constraint.property.NegatedPropertyConstraint
- All Implemented Interfaces:
- Constraint, PropertyConstraint
public class NegatedPropertyConstraint
- extends Not
- implements PropertyConstraint
- Author:
- Keith Donald
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. |
Methods inherited from interface org.springframework.core.closure.Constraint |
test |
NegatedPropertyConstraint
public NegatedPropertyConstraint(PropertyConstraint e)
getPropertyName
public String getPropertyName()
- Description copied from interface:
PropertyConstraint
- Returns the constrained property name.
- Specified by:
getPropertyName
in interface PropertyConstraint
- Returns:
- The property name
isDependentOn
public boolean isDependentOn(String propertyName)
- Description copied from interface:
PropertyConstraint
- Returns
true
if this property constraint is dependent on
the provided propertyName for test evaluation; that is, it should be retested
when propertyName changes.
- Specified by:
isDependentOn
in interface PropertyConstraint
- Returns:
- true or false
isCompoundRule
public boolean isCompoundRule()
- Description copied from interface:
PropertyConstraint
- Does this property constraint effect more than one property?
- Specified by:
isCompoundRule
in interface PropertyConstraint
- Returns:
- true if yes, false otherwise
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.