org.springframework.rules.constraint.property
Class PropertyPresent
java.lang.Object
org.springframework.rules.constraint.property.AbstractPropertyConstraint
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. |
PropertyPresent
public PropertyPresent(String propertyName)
- Constructs a property present predicate for the specified property.
- Parameters:
propertyName
- The bean property name.
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.