public interface Validator<C extends Annotation>
Validator
validates the specified component field or the component
instance is valid to the constraint.
Constraint
must have the corresponding Validator
implementation class to validate the specified component field or the
component instance.boolean validate(C constraint, Object object)
true
if
the specified component field or the component instance is valid.
This method is invoked by Assembler
internally after the
component is assembled and the assembler throws ViolationException
if this method returns false
.object
- The component field or the component instance to be
validated.true
if the specified component field or the
component instance is valid.Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.