|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.dominate.validation.ChainedValidator
public abstract class ChainedValidator
| Constructor Summary | |
|---|---|
ChainedValidator()
|
|
ChainedValidator(Object validatingBean)
|
|
ChainedValidator(Object validatingBean,
Validator nextInChain)
|
|
| Method Summary | |
|---|---|
protected Validator |
getNextInChain()
|
Constraint |
getPropertyConstraint(String propertyName,
String constraintName)
Retrieves validation meta-data about a property. |
Collection<Constraint> |
getPropertyConstraints(String propertyName)
Retrieves validation meta-data about a property. |
protected Object |
getValidatingBean()
|
protected abstract Collection<Constraint> |
itselfGetPropertyConstraints(String propertyName)
|
protected abstract ValidationResult |
itselfValidateBean()
|
protected abstract ValidationResult |
itselfValidateProperty(String propertyName,
Object value)
|
ValidationResult |
validateBean()
Check if an object is valid as a whole. |
ValidationResult |
validateProperty(String propertyName,
Object value)
Check if a value is valid for a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedValidator()
public ChainedValidator(Object validatingBean)
public ChainedValidator(Object validatingBean,
Validator nextInChain)
| Method Detail |
|---|
protected Object getValidatingBean()
protected Validator getNextInChain()
public Constraint getPropertyConstraint(String propertyName,
String constraintName)
Validator
getPropertyConstraint in interface ValidatorpropertyName - the name of the propertyconstraintName - the name of the constraint to be retrieved
public Collection<Constraint> getPropertyConstraints(String propertyName)
Validator
getPropertyConstraints in interface ValidatorpropertyName - the name of the property
Constraint objects each containing a
constraint descriptionprotected abstract Collection<Constraint> itselfGetPropertyConstraints(String propertyName)
public ValidationResult validateBean()
Validator
validateBean in interface Validatorprotected abstract ValidationResult itselfValidateBean()
public ValidationResult validateProperty(String propertyName,
Object value)
Validator
validateProperty in interface ValidatorpropertyName - the name of the property to be checkedvalue - the value to be checked
protected abstract ValidationResult itselfValidateProperty(String propertyName,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||