public enum Domain extends Enum<Domain>
This implementation defines three validation domains: ref resolving, syntax validation and instance validation. This happens to be the order in which validation proceeds.
Message
Enum Constant and Description |
---|
REF_RESOLVING
Ref resolution
|
SYNTAX
Syntax validation
|
VALIDATION
Instance validation
|
Modifier and Type | Method and Description |
---|---|
Message.Builder |
newMessage()
Create a
Message.Builder for this validation domain |
String |
toString() |
static Domain |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Domain[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Domain REF_RESOLVING
This can cover ref resolution proper (ie, JSON Reference resolution) but also all associated mechanism, such as JSON Schema retrieval, URI building, etc.
public static final Domain SYNTAX
public static final Domain VALIDATION
public static Domain[] values()
for (Domain c : Domain.values()) System.out.println(c);
public static Domain valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Message.Builder newMessage()
Message.Builder
for this validation domainMessage
Copyright © 2013. All Rights Reserved.