org.springframework.rules.constraint.property
Class PropertyPresent

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

public class PropertyPresent
extends AbstractPropertyConstraint

Predicate that tests if the specified bean property is "present" - that is, passes the "Required" test.

Author:
Keith Donald
See Also:
Required

Constructor Summary
PropertyPresent(String propertyName)
          Constructs a property present predicate for the specified property.
 
Method Summary
protected  boolean test(PropertyAccessStrategy domainObjectAccessStrategy)
           
 String toString()
           
 
Methods inherited from class org.springframework.rules.constraint.property.AbstractPropertyConstraint
getPropertyName, isCompoundRule, isDependentOn, setPropertyName, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyPresent

public PropertyPresent(String propertyName)
Constructs a property present predicate for the specified property.

Parameters:
propertyName - The bean property name.
Method Detail

test

protected boolean test(PropertyAccessStrategy domainObjectAccessStrategy)
Specified by:
test in class AbstractPropertyConstraint

toString

public String toString()
Overrides:
toString in class AbstractPropertyConstraint


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