|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Dereferencing>
com.github.fge.jsonschema.core.load.Dereferencing
public enum Dereferencing
Dereferencing modes
Draft v4 defines two dereferencing modes: canonical and inline. This enum defines those two modes, along with methods to generate appropriate schema trees.
InlineSchemaTree,
CanonicalSchemaTree| Enum Constant Summary | |
|---|---|
CANONICAL
Canonical dereferencing |
|
INLINE
Inline dereferencing |
|
| Method Summary | |
|---|---|
SchemaTree |
newTree(JsonNode node)
Create a new schema tree with an empty loading URI |
abstract SchemaTree |
newTree(JsonRef ref,
JsonNode node)
Create a new schema tree with a given loading URI and JSON Schema |
String |
toString()
|
static Dereferencing |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Dereferencing[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Dereferencing CANONICAL
CanonicalSchemaTreepublic static final Dereferencing INLINE
InlineSchemaTree| Method Detail |
|---|
public static Dereferencing[] values()
for (Dereferencing c : Dereferencing.values()) System.out.println(c);
public static Dereferencing valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public abstract SchemaTree newTree(JsonRef ref,
JsonNode node)
ref - the locationnode - the schema
public SchemaTree newTree(JsonNode node)
node - the schema
public String toString()
toString in class Enum<Dereferencing>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||