org.springframework.rules.constraint.property
Interface PropertyConstraint

All Superinterfaces:
Constraint
All Known Implementing Classes:
AbstractPropertyConstraint, CompoundPropertyConstraint, ConditionalPropertyConstraint, NegatedPropertyConstraint, ParameterizedPropertyConstraint, PropertiesConstraint, PropertyInGroupConstraint, PropertyPresent, PropertyValueConstraint, RequiredIfOthersPresent, RequiredIfTrue, UniquePropertyValueConstraint

public interface PropertyConstraint
extends Constraint

A predicate that constrains a bean property in some way.

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
 

Method Detail

getPropertyName

String getPropertyName()
Returns the constrained property name.

Returns:
The property name

isDependentOn

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.

Parameters:
propertyName -
Returns:
true or false

isCompoundRule

boolean isCompoundRule()
Does this property constraint effect more than one property?

Returns:
true if yes, false otherwise


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.