public final class SchemaContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
private JsonRef |
locator |
private JsonNode |
schema |
| Constructor and Description |
|---|
SchemaContainer(JsonNode schema)
Return a new container based on a schema
|
SchemaContainer(URI uri,
JsonNode node)
Return a new container based on an URI and a schema
|
| Modifier and Type | Method and Description |
|---|---|
private static JsonNode |
cleanup(JsonNode schema)
Strip an object instance off its
id member, if any |
boolean |
equals(Object obj) |
JsonRef |
getLocator()
Get this container's locator
|
JsonNode |
getSchema()
Get this container's underlying schema
|
int |
hashCode() |
String |
toString() |
public SchemaContainer(JsonNode schema)
Note that if the id node exists and is an URI, but not
absolute, an anonymous schema will be returned.
schema - the schemaCopyright © 2012. All Rights Reserved.