public class ConstraintViolation extends Object implements Serializable
getMessage(Locale)
to get the constraint violation description.
You could customize constraint violation message using the following rules :
Examples :
Modifier and Type | Class and Description |
---|---|
static class |
ConstraintViolation.PathNode
Allows to locates some constraint violation in a document.
|
Constructor and Description |
---|
ConstraintViolation(Schema schema,
List<ConstraintViolation.PathNode> fieldPath,
Constraint constraint,
Object invalidValue) |
Modifier and Type | Method and Description |
---|---|
Constraint |
getConstraint() |
Object |
getInvalidValue() |
String |
getMessage(Locale locale) |
List<ConstraintViolation.PathNode> |
getPath() |
Schema |
getSchema() |
String |
toString() |
public ConstraintViolation(Schema schema, List<ConstraintViolation.PathNode> fieldPath, Constraint constraint, Object invalidValue)
public List<ConstraintViolation.PathNode> getPath()
public Constraint getConstraint()
public Object getInvalidValue()
public String getMessage(Locale locale)
Copyright © 2017 Nuxeo. All rights reserved.