net.sf.validatedattrib.attribute
Class AbstractValidatedAttribute
java.lang.Object
net.sf.validatedattrib.attribute.AbstractValidatedAttribute
- Direct Known Subclasses:
- ValidatedDouble
public abstract class AbstractValidatedAttribute
- extends Object
Base Class for validated attributes.
- Author:
- Philip May
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
constraintList
private List constraintList
List of Constraint.
AbstractValidatedAttribute
public AbstractValidatedAttribute()
addConstraint
protected void addConstraint(Constraint constraint)
- Adds a constraint to this Validated Attribute.
- Parameters:
constraint - a constraint
- Throws:
IllegalArgumentException - when constraint == null
validate
protected void validate(Object newValue)
throws ValidationException
- Throws:
ValidationException
Copyright © 2006 Philip May. All Rights Reserved.