public final class ValidationMessage extends Object
A validation message consists of three mandatory fields and optional information. The three mandatory fields are:
ValidationDomain);Example of the JSON representation of one message:
{
"domain": "validation",
"keyword": "maxItems",
"message": "too many elements in array",
"maxItems": 4,
"found": 5
}
You cannot instantiate this class directly: you need to use
ValidationMessage.Builder for that.
This class is immutable.
ValidationMessage.Builder,
ValidationReport| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationMessage.Builder
Builder class for a
ValidationMessage |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ValidationDomain |
getDomain() |
JsonNode |
getInfo(String key) |
String |
getKeyword() |
String |
getMessage() |
int |
hashCode() |
boolean |
isFatal() |
JsonNode |
toJsonNode() |
String |
toString() |
public ValidationDomain getDomain()
public String getKeyword()
public String getMessage()
public boolean isFatal()
public JsonNode toJsonNode()
Copyright © 2012. All Rights Reserved.