Class JsonSchema
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsonschema.JsonSchema
-
@Deprecated public class JsonSchema extends java.lang.ObjectDeprecated.Since 2.2, we recommend use of external JSON Schema generator moduleContainer for a logical JSON Schema instance. Internally schema data is stored as a JSON Tree (instance ofJsonNodeis the root of schema document)- See Also:
- JSON Schema
-
-
Constructor Summary
Constructors Constructor Description JsonSchema(ObjectNode schema)Deprecated.Main constructor for schema instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.static JsonNodegetDefaultSchemaNode()Deprecated.Get the default schema node.ObjectNodegetSchemaNode()Deprecated.Method for accessing root JSON object of the contained schema.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
JsonSchema
public JsonSchema(ObjectNode schema)
Deprecated.Main constructor for schema instances.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.
-
-
Method Detail
-
getSchemaNode
public ObjectNode getSchemaNode()
Deprecated.Method for accessing root JSON object of the contained schema.Note: this method is specified with
JsonValueannotation to represent serialization to use; same as if explicitly serializing returned object.- Returns:
- Root node of the schema tree
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
getDefaultSchemaNode
public static JsonNode getDefaultSchemaNode()
Deprecated.Get the default schema node.- Returns:
- The default schema node.
-
-