public enum BuiltinSchemas extends Enum<BuiltinSchemas>
This enum centralizes all metaschemas defined by the different JSON Schema specifications (draft v3 and draft v4).
Enum Constant and Description |
---|
DRAFTV3_CORE
Draft v3 core schema
|
DRAFTV3_HYPERSCHEMA
Draft v3 hyper-schema
|
DRAFTV3_LINKS
Draft v3 LDO (Link Description Object) schema
|
DRAFTV4_CORE
Draft v4 core schema
|
Modifier and Type | Method and Description |
---|---|
static BuiltinSchemas |
byDefault()
Return the default metaschema (currently
DRAFTV3_HYPERSCHEMA |
JsonNode |
getRawSchema()
Get the raw JSON document for that schema
|
URI |
getURI()
Get the locator for this schema
|
String |
toString() |
static BuiltinSchemas |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltinSchemas[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltinSchemas DRAFTV3_CORE
public static final BuiltinSchemas DRAFTV4_CORE
public static final BuiltinSchemas DRAFTV3_LINKS
public static final BuiltinSchemas DRAFTV3_HYPERSCHEMA
public static BuiltinSchemas[] values()
for (BuiltinSchemas c : BuiltinSchemas.values()) System.out.println(c);
public static BuiltinSchemas 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 static BuiltinSchemas byDefault()
DRAFTV3_HYPERSCHEMA
public URI getURI()
public JsonNode getRawSchema()
JsonNode
public String toString()
toString
in class Enum<BuiltinSchemas>
Copyright © 2013. All Rights Reserved.