Class ConstraintViolation

    • Constructor Detail

      • ConstraintViolation

        public ConstraintViolation​(ConstraintViolation.Level level,
                                   MappedClass clazz,
                                   MappedField field,
                                   Class<? extends ClassConstraint> validator,
                                   String message)
        Creates a violation instance to record invalid mapping metadata
        Parameters:
        level - the severity of the violation
        clazz - the errant class
        field - the errant field
        validator - the constraint failed
        message - the message for the failure
      • ConstraintViolation

        public ConstraintViolation​(ConstraintViolation.Level level,
                                   MappedClass clazz,
                                   Class<? extends ClassConstraint> validator,
                                   String message)
        Creates a violation instance to record invalid mapping metadata
        Parameters:
        level - the severity of the violation
        clazz - the errant class
        validator - the constraint failed
        message - the message for the failure
    • Method Detail

      • getPrefix

        public String getPrefix()
        Returns:
        the qualified name of the failing mapping
      • render

        public String render()
        Returns:
        a human friendly version of the violation