public class ConstraintViolation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstraintViolation.Level
Levels of constraint violations
|
| Constructor and Description |
|---|
ConstraintViolation(ConstraintViolation.Level level,
MappedClass clazz,
Class<? extends ClassConstraint> validator,
String message)
Creates a violation instance to record invalid mapping metadata
|
ConstraintViolation(ConstraintViolation.Level level,
MappedClass clazz,
MappedField field,
Class<? extends ClassConstraint> validator,
String message)
Creates a violation instance to record invalid mapping metadata
|
| Modifier and Type | Method and Description |
|---|---|
ConstraintViolation.Level |
getLevel() |
String |
getPrefix() |
String |
render() |
public ConstraintViolation(ConstraintViolation.Level level, MappedClass clazz, MappedField field, Class<? extends ClassConstraint> validator, String message)
level - the severity of the violationclazz - the errant classfield - the errant fieldvalidator - the constraint failedmessage - the message for the failurepublic ConstraintViolation(ConstraintViolation.Level level, MappedClass clazz, Class<? extends ClassConstraint> validator, String message)
level - the severity of the violationclazz - the errant classvalidator - the constraint failedmessage - the message for the failurepublic ConstraintViolation.Level getLevel()
public String getPrefix()
public String render()