public final class JSONValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encode(com.github.fge.jsonschema.core.report.ProcessingReport report,
com.fasterxml.jackson.databind.JsonNode instance) |
static JSONValidator |
getInstance() |
com.github.fge.jsonschema.main.JsonSchemaFactory |
getJsonSchemaFactory() |
boolean |
isValid(java.io.File file,
java.lang.String schema) |
boolean |
isValid(java.io.InputStream is,
java.lang.String schema) |
boolean |
isValid(com.fasterxml.jackson.databind.JsonNode node,
java.lang.String schema) |
boolean |
isValid(java.io.Reader reader,
java.lang.String schema) |
boolean |
isValid(java.lang.String json,
java.lang.String schema) |
boolean |
isValid(java.net.URL url,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(java.io.File file,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(java.io.InputStream is,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(com.fasterxml.jackson.databind.JsonNode node,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(java.io.Reader reader,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(java.lang.String json,
java.lang.String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(java.net.URL url,
java.lang.String schema) |
void |
validateAndThrow(com.fasterxml.jackson.databind.JsonNode instance,
java.lang.String schema) |
public com.github.fge.jsonschema.main.JsonSchemaFactory getJsonSchemaFactory()
public com.github.fge.jsonschema.core.report.ProcessingReport validate(java.lang.String json,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic com.github.fge.jsonschema.core.report.ProcessingReport validate(java.net.URL url,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic com.github.fge.jsonschema.core.report.ProcessingReport validate(java.io.File file,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic com.github.fge.jsonschema.core.report.ProcessingReport validate(java.io.InputStream is,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic com.github.fge.jsonschema.core.report.ProcessingReport validate(java.io.Reader reader,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic com.github.fge.jsonschema.core.report.ProcessingReport validate(com.fasterxml.jackson.databind.JsonNode node,
java.lang.String schema)
public boolean isValid(java.lang.String json,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic boolean isValid(java.net.URL url,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic boolean isValid(java.io.File file,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic boolean isValid(java.io.InputStream is,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic boolean isValid(java.io.Reader reader,
java.lang.String schema)
throws java.io.IOException
java.io.IOExceptionpublic boolean isValid(com.fasterxml.jackson.databind.JsonNode node,
java.lang.String schema)
public java.lang.String encode(com.github.fge.jsonschema.core.report.ProcessingReport report,
com.fasterxml.jackson.databind.JsonNode instance)
public void validateAndThrow(com.fasterxml.jackson.databind.JsonNode instance,
java.lang.String schema)
throws DecodingException
DecodingExceptionpublic static JSONValidator getInstance()
Copyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.