Package com.github.tnakamot.json.schema
Class JSONSchemaVersion
- java.lang.Object
-
- com.github.tnakamot.json.schema.JSONSchemaVersion
-
public class JSONSchemaVersion extends Object
Represent a version of JSON Schema (e.g. 2019-09)
-
-
Field Summary
Fields Modifier and Type Field Description static JSONSchemaVersion
DEFAULT_VERSION
static JSONSchemaVersion
DRAFT_06
static JSONSchemaVersion
DRAFT_07
static JSONSchemaVersion
DRAFT_2019_09
static JSONSchemaVersion[]
SUPPORTED_VERSIONS
static JSONSchemaVersion[]
VALID_VERSIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
commonName()
boolean
equals(Object obj)
static JSONSchemaVersion
fromURI(@NotNull URI uri)
URI[]
URIs()
String
versionID()
-
-
-
Field Detail
-
DRAFT_06
public static final JSONSchemaVersion DRAFT_06
-
DRAFT_07
public static final JSONSchemaVersion DRAFT_07
-
DRAFT_2019_09
public static final JSONSchemaVersion DRAFT_2019_09
-
VALID_VERSIONS
public static final JSONSchemaVersion[] VALID_VERSIONS
-
SUPPORTED_VERSIONS
public static final JSONSchemaVersion[] SUPPORTED_VERSIONS
-
DEFAULT_VERSION
public static final JSONSchemaVersion DEFAULT_VERSION
-
-
Method Detail
-
versionID
public String versionID()
-
commonName
public String commonName()
-
URIs
public URI[] URIs()
-
fromURI
public static JSONSchemaVersion fromURI(@NotNull @NotNull URI uri) throws InvalidJSONSchemaURIException
- Throws:
InvalidJSONSchemaURIException
-
-