Package dev.harrel.jsonschema.providers
Class JacksonNode
java.lang.Object
dev.harrel.jsonschema.providers.JacksonNode
- All Implemented Interfaces:
JsonNode
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray()Returns JSON node as an array.booleanReturns JSON node as a boolean.Returns JSON node as an integer.asNumber()Returns JSON node as a number.asObject()Returns JSON node as an object.asString()Returns JSON node as a string.final booleanJSON pointer getter.Node type getterfinal inthashCode()
-
Constructor Details
-
JacksonNode
public JacksonNode(com.fasterxml.jackson.databind.JsonNode node)
-
-
Method Details
-
getJsonPointer
Description copied from interface:JsonNodeJSON pointer getter.- Specified by:
getJsonPointerin interfaceJsonNode- Returns:
- JSON pointer
-
getNodeType
Description copied from interface:JsonNodeNode type getter- Specified by:
getNodeTypein interfaceJsonNode- Returns:
- type of node
-
asBoolean
public boolean asBoolean()Description copied from interface:JsonNodeReturns JSON node as a boolean. If JSON node is not of a boolean type, then the behaviour is undefined. -
asString
Description copied from interface:JsonNodeReturns JSON node as a string. If JSON node is not of a string type, then the behaviour is undefined. -
asInteger
Description copied from interface:JsonNodeReturns JSON node as an integer. If JSON node is not of an integer type, then the behaviour is undefined. -
asNumber
Description copied from interface:JsonNodeReturns JSON node as a number. If JSON node is not of a number type, then the behaviour is undefined. -
asArray
Description copied from interface:JsonNodeReturns JSON node as an array. If JSON node is not of an array type, then the behaviour is undefined. -
asObject
Description copied from interface:JsonNodeReturns JSON node as an object. If JSON node is not of an object type, then the behaviour is undefined. -
equals
-
hashCode
public final int hashCode()
-