Package org.n52.svalbard.coding.json
Class JSONValidator
java.lang.Object
org.n52.svalbard.coding.json.JSONValidator
TODO JavaDoc
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionencode(com.github.fge.jsonschema.core.report.ProcessingReport report, com.fasterxml.jackson.databind.JsonNode instance) static JSONValidatorcom.github.fge.jsonschema.main.JsonSchemaFactorybooleanbooleanbooleanisValid(InputStream is, String schema) booleanbooleanbooleancom.github.fge.jsonschema.core.report.ProcessingReportcom.github.fge.jsonschema.core.report.ProcessingReportcom.github.fge.jsonschema.core.report.ProcessingReportvalidate(InputStream is, String schema) com.github.fge.jsonschema.core.report.ProcessingReportcom.github.fge.jsonschema.core.report.ProcessingReportcom.github.fge.jsonschema.core.report.ProcessingReportvoidvalidateAndThrow(com.fasterxml.jackson.databind.JsonNode instance, String schema)
-
Method Details
-
getJsonSchemaFactory
public com.github.fge.jsonschema.main.JsonSchemaFactory getJsonSchemaFactory() -
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(String json, String schema) throws IOException - Throws:
IOException
-
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(URL url, String schema) throws IOException - Throws:
IOException
-
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(File file, String schema) throws IOException - Throws:
IOException
-
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(InputStream is, String schema) throws IOException - Throws:
IOException
-
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(Reader reader, String schema) throws IOException - Throws:
IOException
-
validate
public com.github.fge.jsonschema.core.report.ProcessingReport validate(com.fasterxml.jackson.databind.JsonNode node, String schema) -
isValid
- Throws:
IOException
-
isValid
- Throws:
IOException
-
isValid
- Throws:
IOException
-
isValid
- Throws:
IOException
-
isValid
- Throws:
IOException
-
isValid
-
encode
public String encode(com.github.fge.jsonschema.core.report.ProcessingReport report, com.fasterxml.jackson.databind.JsonNode instance) -
validateAndThrow
public void validateAndThrow(com.fasterxml.jackson.databind.JsonNode instance, String schema) throws DecodingException - Throws:
DecodingException
-
getInstance
-