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 JSONSchemaVersionDEFAULT_VERSIONstatic JSONSchemaVersionDRAFT_06static JSONSchemaVersionDRAFT_07static JSONSchemaVersionDRAFT_2019_09static JSONSchemaVersion[]SUPPORTED_VERSIONSstatic JSONSchemaVersion[]VALID_VERSIONS 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcommonName()booleanequals(Object obj)static JSONSchemaVersionfromURI(@NotNull URI uri)URI[]URIs()StringversionID() 
 - 
 
- 
- 
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
 
 - 
 
 -