org.springframework.rules.constraint.property
Class NegatedPropertyConstraint

java.lang.Object
  extended by org.springframework.rules.constraint.Not
      extended by org.springframework.rules.constraint.property.NegatedPropertyConstraint
All Implemented Interfaces:
Constraint, PropertyConstraint

public class NegatedPropertyConstraint
extends Not
implements PropertyConstraint

Author:
Keith Donald

Constructor Summary
NegatedPropertyConstraint(PropertyConstraint e)
           
 
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 class org.springframework.rules.constraint.Not
getConstraint, setConstraint, test, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.core.closure.Constraint
test
 

Constructor Detail

NegatedPropertyConstraint

public NegatedPropertyConstraint(PropertyConstraint e)
Method Detail

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.