public class JacksonDomValue extends Object implements JsonDomValue<com.fasterxml.jackson.databind.JsonNode>
| Constructor and Description |
|---|
JacksonDomValue(com.fasterxml.jackson.databind.JsonNode jsonElement) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
JsonDomChildren<JacksonDomValue> |
getChildren()
Returns a map of child node names and their values.
|
com.fasterxml.jackson.databind.JsonNode |
getJsonElement()
Wrapped JSON element
|
String |
getTextValue()
Returns the text value.
|
JsonDomType |
getType()
Returns the JSON elements value type.
|
int |
hashCode() |
String |
toString() |
public JacksonDomValue(com.fasterxml.jackson.databind.JsonNode jsonElement)
@NonNull public JsonDomChildren<JacksonDomValue> getChildren()
For JSON objects and arrays a map of keys to wrapped values should be returned. For other JSON elements an empty map should be returned.
getChildren in interface JsonDomValue<com.fasterxml.jackson.databind.JsonNode>@NonNull public String getTextValue()
For JSON strings this is the string value without quotes. For other JSON elements it is their JSON representation.
getTextValue in interface JsonDomValue<com.fasterxml.jackson.databind.JsonNode>@NonNull public JsonDomType getType()
getType in interface JsonDomValue<com.fasterxml.jackson.databind.JsonNode>public com.fasterxml.jackson.databind.JsonNode getJsonElement()
getJsonElement in interface JsonDomValue<com.fasterxml.jackson.databind.JsonNode>protected boolean canEqual(@Nullable
Object other)
Copyright © 2024. All rights reserved.