Package | Description |
---|---|
org.foxlabs.validation | |
org.foxlabs.validation.constraint | |
org.foxlabs.validation.converter | |
org.foxlabs.validation.path |
Modifier and Type | Method and Description |
---|---|
ViolationException |
ValidationException.getFirstViolation()
Returns first violation in the list.
|
Modifier and Type | Method and Description |
---|---|
List<ViolationException> |
ValidationException.getRootViolations()
Returns unmodifiable list of root violations.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Validator.Context.addViolation(ViolationException violation) |
Constructor and Description |
---|
ValidationException(ViolationException violation)
Constructs a new
ValidationException with the specified
single violation. |
Constructor and Description |
---|
ValidationException(List<? extends ViolationException> violations)
Constructs a new
ValidationException with the specified
list of violations. |
Modifier and Type | Class and Description |
---|---|
class |
ConstraintViolationException
Thrown to indicate that constraint validation fails.
|
Modifier and Type | Class and Description |
---|---|
class |
MalformedValueException
Thrown to indicate that converting string representation of a value fails.
|
Modifier and Type | Method and Description |
---|---|
ViolationException |
PathIterator.next()
Returns next violation in the hierarhy.
|
ViolationException[] |
PathIterator.nodes()
Returns array of violation nodes of the current path.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultNodeFormatter.appendIndex(ViolationException node,
StringBuilder buf)
Appends index value of the specified violation node to the specified
path buffer.
|
void |
DefaultNodeFormatter.appendNode(ViolationException node,
StringBuilder buf)
Appends the specified violation node to the specified path buffer.
|
void |
NodeFormatter.appendNode(ViolationException node,
StringBuilder buf)
Appends the specified violation node to the specified path buffer.
|
Copyright © 2011–2020 FoxLabs. All rights reserved.