public class JsonValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_SCHEMA_IDENTIFIER_ELEMENT |
static String |
JSON_V4_SCHEMA_IDENTIFIER |
| Constructor and Description |
|---|
JsonValidator() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.JsonNode |
getJsonNode(File jsonFile) |
static com.fasterxml.jackson.databind.JsonNode |
getJsonNode(String jsonText) |
static com.fasterxml.jackson.databind.JsonNode |
getJsonNode(URL url) |
static com.fasterxml.jackson.databind.JsonNode |
getJsonNodeFromResource(String resource) |
static com.github.fge.jsonschema.main.JsonSchema |
getSchemaNode(File schemaFile) |
static com.github.fge.jsonschema.main.JsonSchema |
getSchemaNode(String schemaText) |
static com.github.fge.jsonschema.main.JsonSchema |
getSchemaNode(URL schemaFile) |
static com.github.fge.jsonschema.main.JsonSchema |
getSchemaNodeFromResource(String resource) |
static boolean |
isJsonValid(File schemaFile,
File jsonFile) |
static boolean |
isJsonValid(com.github.fge.jsonschema.main.JsonSchema jsonSchemaNode,
com.fasterxml.jackson.databind.JsonNode jsonNode) |
static boolean |
isJsonValid(String schemaText,
String jsonText) |
static boolean |
isJsonValid(URL schemaURL,
URL jsonURL) |
static void |
validateJson(File schemaFile,
File jsonFile) |
static void |
validateJson(com.github.fge.jsonschema.main.JsonSchema jsonSchemaNode,
com.fasterxml.jackson.databind.JsonNode jsonNode) |
static void |
validateJson(String schemaText,
String jsonText) |
static void |
validateJson(URL schemaDocument,
URL jsonDocument) |
static void |
validateJsonResource(String schemaResource,
String jsonResource) |
public static final String JSON_V4_SCHEMA_IDENTIFIER
public static final String JSON_SCHEMA_IDENTIFIER_ELEMENT
public static com.fasterxml.jackson.databind.JsonNode getJsonNode(String jsonText) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode getJsonNode(File jsonFile) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode getJsonNode(URL url) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode getJsonNodeFromResource(String resource) throws IOException
IOExceptionpublic static com.github.fge.jsonschema.main.JsonSchema getSchemaNode(String schemaText) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static com.github.fge.jsonschema.main.JsonSchema getSchemaNode(File schemaFile) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static com.github.fge.jsonschema.main.JsonSchema getSchemaNode(URL schemaFile) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static com.github.fge.jsonschema.main.JsonSchema getSchemaNodeFromResource(String resource) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static void validateJson(com.github.fge.jsonschema.main.JsonSchema jsonSchemaNode,
com.fasterxml.jackson.databind.JsonNode jsonNode)
throws com.github.fge.jsonschema.core.exceptions.ProcessingException
com.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static boolean isJsonValid(com.github.fge.jsonschema.main.JsonSchema jsonSchemaNode,
com.fasterxml.jackson.databind.JsonNode jsonNode)
throws com.github.fge.jsonschema.core.exceptions.ProcessingException
com.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static boolean isJsonValid(String schemaText, String jsonText) throws com.github.fge.jsonschema.core.exceptions.ProcessingException, IOException
com.github.fge.jsonschema.core.exceptions.ProcessingExceptionIOExceptionpublic static boolean isJsonValid(File schemaFile, File jsonFile) throws com.github.fge.jsonschema.core.exceptions.ProcessingException, IOException
com.github.fge.jsonschema.core.exceptions.ProcessingExceptionIOExceptionpublic static boolean isJsonValid(URL schemaURL, URL jsonURL) throws com.github.fge.jsonschema.core.exceptions.ProcessingException, IOException
com.github.fge.jsonschema.core.exceptions.ProcessingExceptionIOExceptionpublic static void validateJson(String schemaText, String jsonText) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static void validateJson(File schemaFile, File jsonFile) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static void validateJson(URL schemaDocument, URL jsonDocument) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionpublic static void validateJsonResource(String schemaResource, String jsonResource) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOExceptioncom.github.fge.jsonschema.core.exceptions.ProcessingExceptionCopyright © 2016 MusterTech Solutions. All rights reserved.