org.qi4j.api.constraint
Class ConstraintViolation

java.lang.Object
  extended by org.qi4j.api.constraint.ConstraintViolation
All Implemented Interfaces:
Serializable

public final class ConstraintViolation
extends Object
implements Serializable

When a constraint violation has occurred (i.e. Constraint.isValid has returned false) it is put in a collection of all violations that have occurred for this value check.

See Also:
Serialized Form

Constructor Summary
ConstraintViolation(String name, Annotation constraint, Object value)
           
 
Method Summary
 Annotation constraint()
           
 String name()
           
 Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintViolation

public ConstraintViolation(String name,
                           Annotation constraint,
                           Object value)
Method Detail

name

public String name()

constraint

public Annotation constraint()

value

public Object value()