public class EntityJsonParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static URL |
ENTITY_JSON_EXAMPLE_URL |
static URL |
ENTITY_JSON_SCHEMA_URL |
static URL |
JSON_SCHEMA_SCHEMA_URL |
static URL |
STRUCTURED_OBJECT_SCHEMA_URL |
| Modifier and Type | Method and Description |
|---|---|
EntityJson |
parseEntityJson(Object instanceSource,
com.fasterxml.jackson.databind.node.ObjectNode instance)
Parse an EntityJSON instance from the given URL.
|
EntityJson |
parseEntityJson(Object instanceSource,
Reader instanceReader)
Parse an EntityJSON instance from the given URL.
|
EntityJson |
parseEntityJson(URL instanceUrl)
Parse an EntityJSON instance from the given URL.
|
StructuredObject |
parseStructuredObject(Object instanceSource,
com.fasterxml.jackson.databind.node.ObjectNode instance)
Parse a single StructuredObject instance from the given URL.
|
StructuredObject |
parseStructuredObject(Object instanceSource,
Reader instanceReader)
Parse a single StructuredObject instance from the given URL.
|
StructuredObject |
parseStructuredObject(URL instanceUrl)
Parse a single StructuredObject instance from the given URL.
|
public static final URL JSON_SCHEMA_SCHEMA_URL
public static final URL ENTITY_JSON_SCHEMA_URL
public static final URL ENTITY_JSON_EXAMPLE_URL
public static final URL STRUCTURED_OBJECT_SCHEMA_URL
public EntityJson parseEntityJson(URL instanceUrl) throws SchemaValidationException, InvalidInstanceException
instanceUrl - A URL pointing to the JSON representation of an EntityJSON instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.public EntityJson parseEntityJson(Object instanceSource, Reader instanceReader) throws SchemaValidationException, InvalidInstanceException
instanceSource - An object describing the source of the instance, typically an instance
of java.net.URL or java.io.File.instanceReader - A Reader containing the JSON representation of an EntityJSON instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.public EntityJson parseEntityJson(Object instanceSource, com.fasterxml.jackson.databind.node.ObjectNode instance) throws SchemaValidationException, InvalidInstanceException
instanceSource - An object describing the source of the instance, typically an instance
of java.net.URL or java.io.File.instance - A JSON ObjectNode containing the JSON representation of an EntityJSON instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.public StructuredObject parseStructuredObject(URL instanceUrl) throws SchemaValidationException, InvalidInstanceException
instanceUrl - A URL pointing to the JSON representation of a StructuredObject instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.public StructuredObject parseStructuredObject(Object instanceSource, Reader instanceReader) throws SchemaValidationException, InvalidInstanceException
instanceSource - An object describing the source of the instance, typically an instance
of java.net.URL or java.io.File.instanceReader - A Reader containing the JSON representation of a single StructuredObject instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.public StructuredObject parseStructuredObject(Object instanceSource, com.fasterxml.jackson.databind.node.ObjectNode instance) throws SchemaValidationException
instanceSource - An object describing the source of the instance, typically an instance
of java.net.URL or java.io.File.instance - A JSON ObjectNode containing the JSON representation of a single StructuredObject instance.SchemaValidationException - If the given instance does not meet the general EntityJSON schema.InvalidInstanceException - If the given instance is structurally invalid.Copyright © 2017 The Symphony Software Foundation. All rights reserved.