public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.JsonNode |
defaultEscherSchema()
Get the default Escher Schema (v1.0.0).
|
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Get the pre-configured
ObjectMapper for (de)serialization. |
static com.github.fge.jsonschema.main.JsonSchema |
jsonSchemaSchema()
Get the schema validation schema (meta-schema) file.
|
public static com.github.fge.jsonschema.main.JsonSchema jsonSchemaSchema() throws java.io.IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
JSON Schema
.java.io.IOException
- Thrown if error in accessing the file.com.github.fge.jsonschema.core.exceptions.ProcessingException
- Thrown if problem in parsing JSON.public static com.fasterxml.jackson.databind.JsonNode defaultEscherSchema() throws java.io.IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
JSON Schema
.java.io.IOException
- Thrown if error in accessing the schema file.com.github.fge.jsonschema.core.exceptions.ProcessingException
- Thrown if problem in parsing JSON.public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper
for (de)serialization. Necessary settings needed
are set for our use case.object mapper
.