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 (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

    Constructors
    Constructor and Description
    `ConstraintViolation(String name, Annotation constraint, Object value)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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()