public abstract class SimpleViolation extends Object
ConstraintViolation
objects.Modifier | Constructor and Description |
---|---|
protected |
SimpleViolation()
Typically constructed via factory methods.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
getKey()
Return the object that the violation is about.
|
abstract String |
getMessage()
Return a user-facing message describing the violation.
|
abstract String |
getPath()
Return a dotted path describing the property.
|
abstract Object |
getUserDataObject()
An object that should be available from
EditorError.getUserData() . |
static Iterable<SimpleViolation> |
iterableFromConstrantViolations(Iterable<javax.validation.ConstraintViolation<?>> violations) |
static void |
pushViolations(Iterable<SimpleViolation> violations,
EditorDriver<?> driver,
DelegateMap.KeyMethod keyMethod)
Maps an abstract representation of a violation into the appropriate
EditorDelegate.
|
protected SimpleViolation()
public static Iterable<SimpleViolation> iterableFromConstrantViolations(Iterable<javax.validation.ConstraintViolation<?>> violations)
public static void pushViolations(Iterable<SimpleViolation> violations, EditorDriver<?> driver, DelegateMap.KeyMethod keyMethod)
public abstract Object getKey()
public abstract String getMessage()
public abstract String getPath()
public abstract Object getUserDataObject()
EditorError.getUserData()
.Copyright © 2018. All rights reserved.