Class JacksonNode

java.lang.Object
dev.harrel.jsonschema.providers.JacksonNode
All Implemented Interfaces:
JsonNode

public final class JacksonNode extends Object
  • Constructor Details

    • JacksonNode

      public JacksonNode(com.fasterxml.jackson.databind.JsonNode node)
  • Method Details

    • getJsonPointer

      public String getJsonPointer()
      Description copied from interface: JsonNode
      JSON pointer getter.
      Specified by:
      getJsonPointer in interface JsonNode
      Returns:
      JSON pointer
    • getNodeType

      public SimpleType getNodeType()
      Description copied from interface: JsonNode
      Node type getter
      Specified by:
      getNodeType in interface JsonNode
      Returns:
      type of node
    • asBoolean

      public boolean asBoolean()
      Description copied from interface: JsonNode
      Returns JSON node as a boolean. If JSON node is not of a boolean type, then the behaviour is undefined.
      Specified by:
      asBoolean in interface JsonNode
    • asString

      public String asString()
      Description copied from interface: JsonNode
      Returns JSON node as a string. If JSON node is not of a string type, then the behaviour is undefined.
      Specified by:
      asString in interface JsonNode
    • asInteger

      public BigInteger asInteger()
      Description copied from interface: JsonNode
      Returns JSON node as an integer. If JSON node is not of an integer type, then the behaviour is undefined.
      Specified by:
      asInteger in interface JsonNode
    • asNumber

      public BigDecimal asNumber()
      Description copied from interface: JsonNode
      Returns JSON node as a number. If JSON node is not of a number type, then the behaviour is undefined.
      Specified by:
      asNumber in interface JsonNode
    • asArray

      public final List<JsonNode> asArray()
      Description copied from interface: JsonNode
      Returns JSON node as an array. If JSON node is not of an array type, then the behaviour is undefined.
      Specified by:
      asArray in interface JsonNode
    • asObject

      public final Map<String,JsonNode> asObject()
      Description copied from interface: JsonNode
      Returns JSON node as an object. If JSON node is not of an object type, then the behaviour is undefined.
      Specified by:
      asObject in interface JsonNode
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object