org.qi4j.api.constraint
Class ConstraintViolation
java.lang.Object
org.qi4j.api.constraint.ConstraintViolation
- All Implemented Interfaces:
- java.io.Serializable
public final class ConstraintViolation
- extends java.lang.Object
- implements java.io.Serializable
When a constraint violation has occurred (ie 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(java.lang.String name,
java.lang.annotation.Annotation constraint,
java.lang.Object value)
|
Method Summary |
java.lang.annotation.Annotation |
constraint()
|
java.lang.String |
name()
|
java.lang.Object |
value()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintViolation
public ConstraintViolation(java.lang.String name,
java.lang.annotation.Annotation constraint,
java.lang.Object value)
name
public java.lang.String name()
constraint
public java.lang.annotation.Annotation constraint()
value
public java.lang.Object value()