org.qi4j.api.constraint
Class ConstraintViolation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintViolation
public ConstraintViolation(String name,
Annotation constraint,
Object value)
name
public String name()
constraint
public Annotation constraint()
value
public Object value()