public class JsonSchema extends Object
JsonNode
that represents a JSON-Schema instance.Constructor and Description |
---|
JsonSchema(ObjectNode schema)
Main constructor for schema instances.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static JsonNode |
getDefaultSchemaNode()
Get the default schema node.
|
ObjectNode |
getSchemaNode()
Method for accessing root JSON object of the contained schema.
|
String |
toString() |
public JsonSchema(ObjectNode schema)
This is the creator constructor used by Jackson itself when deserializing instances. It is so-called delegating creator, meaning that its argument will be bound by Jackson before constructor gets called.
public ObjectNode getSchemaNode()
Note: this method is specified with JsonValue
annotation
to represent serialization to use; same as if explicitly
serializing returned object.
public static JsonNode getDefaultSchemaNode()