public abstract class SchemaContainer extends Object
A schema container contains the JSON representation of a schema, plus its
location (as a JsonRef
).
This class embodies the ability to tell whether a JSON reference is
embodied within the schema itself. It is particularly important for
AddressingMode.INLINE
addressing mode.
Modifier and Type | Field and Description |
---|---|
protected JsonRef |
locator |
protected JsonNode |
schema |
Modifier | Constructor and Description |
---|---|
protected |
SchemaContainer(URI uri,
JsonNode node)
Return a new container based on an URI and a schema
|
Modifier and Type | Method and Description |
---|---|
protected static JsonNode |
cleanup(JsonNode schema)
Strip an object instance off its
id member, if any |
abstract boolean |
contains(JsonRef other) |
boolean |
equals(Object obj) |
JsonRef |
getLocator()
Get this container's locator
|
JsonNode |
getSchema()
Get this container's underlying schema
|
int |
hashCode() |
abstract JsonNode |
resolve(JsonRef ref) |
String |
toString() |
Copyright © 2013. All Rights Reserved.