Package com.github.tnakamot.json.schema
Class JSONRootSchema
- java.lang.Object
-
- com.github.tnakamot.json.schema.JSONSchema
-
- com.github.tnakamot.json.schema.JSONRootSchema
-
public class JSONRootSchema extends JSONSchema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONValue
jsonRoot()
static JSONRootSchema
readAsSchema(JSONText jsonText)
Read the given JSON Text (JSON Document) as JSON Schema.JSONSchemaVersion
version()
-
-
-
Method Detail
-
version
public JSONSchemaVersion version()
-
jsonRoot
public JSONValue jsonRoot()
-
readAsSchema
public static JSONRootSchema readAsSchema(JSONText jsonText) throws IOException, JSONParserException, InvalidJSONSchemaURIException
Read the given JSON Text (JSON Document) as JSON Schema.- Parameters:
jsonText
- JSON Text- Returns:
- data model of JSON Schema
- Throws:
IOException
JSONParserException
InvalidJSONSchemaURIException
-
-