|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SchemaVersion>
com.github.fge.jsonschema.SchemaVersion
public enum SchemaVersion
JSON Schema versions
Members of this enum offer two informations about JSON Schemas:
$schema),JsonNode).
| Enum Constant Summary | |
|---|---|
DRAFTV3
Draft v3 |
|
DRAFTV4
Draft v4 (default version) |
|
DRAFTV4_HYPERSCHEMA
Draft v4 hyperschema |
|
| Method Summary | |
|---|---|
URI |
getLocation()
Return the value of $schema as a JsonRef |
JsonNode |
getSchema()
Return the meta schema as JSON |
static SchemaVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SchemaVersion[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SchemaVersion DRAFTV4
public static final SchemaVersion DRAFTV3
public static final SchemaVersion DRAFTV4_HYPERSCHEMA
| Method Detail |
|---|
public static SchemaVersion[] values()
for (SchemaVersion c : SchemaVersion.values()) System.out.println(c);
public static SchemaVersion 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 nullpublic URI getLocation()
$schema as a JsonRef
public JsonNode getSchema()
Note: since JsonNode is mutable, this method returns a copy.
JsonNode.deepCopy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||