public final class JSONValidator extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
JSONValidator.LazyHolder |
private class |
JSONValidator.ResourceRedirect |
Modifier and Type | Field and Description |
---|---|
private com.github.fge.jsonschema.main.JsonSchemaFactory |
jsonSchemaFactory |
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
JSONValidator() |
Modifier and Type | Method and Description |
---|---|
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(File file,
String schema) |
boolean |
isValid(InputStream is,
String schema) |
boolean |
isValid(com.fasterxml.jackson.databind.JsonNode node,
String schema) |
boolean |
isValid(Reader reader,
String schema) |
boolean |
isValid(String json,
String schema) |
boolean |
isValid(URL url,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(File file,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(InputStream is,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(com.fasterxml.jackson.databind.JsonNode node,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(Reader reader,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(String json,
String schema) |
com.github.fge.jsonschema.core.report.ProcessingReport |
validate(URL url,
String schema) |
void |
validateAndThrow(com.fasterxml.jackson.databind.JsonNode instance,
String schema) |
private static final org.slf4j.Logger LOG
private final com.github.fge.jsonschema.main.JsonSchemaFactory jsonSchemaFactory
public static JSONValidator getInstance()
public com.github.fge.jsonschema.main.JsonSchemaFactory getJsonSchemaFactory()
public com.github.fge.jsonschema.core.report.ProcessingReport validate(String json, String schema) throws IOException
IOException
public boolean isValid(String json, String schema) throws IOException
IOException
public com.github.fge.jsonschema.core.report.ProcessingReport validate(URL url, String schema) throws IOException
IOException
public boolean isValid(URL url, String schema) throws IOException
IOException
public com.github.fge.jsonschema.core.report.ProcessingReport validate(File file, String schema) throws IOException
IOException
public boolean isValid(File file, String schema) throws IOException
IOException
public com.github.fge.jsonschema.core.report.ProcessingReport validate(InputStream is, String schema) throws IOException
IOException
public boolean isValid(InputStream is, String schema) throws IOException
IOException
public com.github.fge.jsonschema.core.report.ProcessingReport validate(Reader reader, String schema) throws IOException
IOException
public boolean isValid(Reader reader, String schema) throws IOException
IOException
public com.github.fge.jsonschema.core.report.ProcessingReport validate(com.fasterxml.jackson.databind.JsonNode node, String schema)
public boolean isValid(com.fasterxml.jackson.databind.JsonNode node, String schema)
public 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, String schema) throws OwsExceptionReport
OwsExceptionReport
Copyright © 2012-2014 52north.org. All Rights Reserved.