public final class JsonStringNode extends JsonNode implements java.lang.Comparable<JsonStringNode>, JsonNodeBuilder<JsonStringNode>
JsonNode
that explicitly represents a JSON String.Modifier and Type | Method and Description |
---|---|
JsonStringNode |
build()
Generates an instance of
T , as specified by calls to any other methods provided by implementations of JsonNodeBuilder . |
int |
compareTo(JsonStringNode that) |
boolean |
equals(java.lang.Object that) |
java.util.List<JsonNode> |
getElements() |
java.util.List<JsonField> |
getFieldList()
Gets the fields associated with this node as a list of
JsonFields . |
java.util.Map<JsonStringNode,JsonNode> |
getFields()
Gets the fields associated with this node as a map of name to value.
|
java.lang.String |
getText() |
JsonNodeType |
getType() |
boolean |
hasElements() |
boolean |
hasFields() |
int |
hashCode() |
boolean |
hasText() |
java.lang.String |
toString() |
void |
visit(JsonNodeVisitor jsonNodeVisitor)
Executes a callback to the method corresponding to the type of this
JsonNode . |
getArrayNode, getBooleanValue, getNode, getNullableArrayNode, getNullableBooleanValue, getNullableNumberValue, getNullableObjectNode, getNullableStringValue, getNullNode, getNumberValue, getObjectNode, getStringValue, isArrayNode, isBooleanValue, isNode, isNullableArrayNode, isNullableBooleanValue, isNullableNumberNode, isNullableObjectNode, isNullableStringValue, isNullNode, isNumberValue, isObjectNode, isStringValue
public JsonNodeType getType()
public java.lang.String getText()
public java.util.Map<JsonStringNode,JsonNode> getFields()
JsonNode
public java.util.List<JsonField> getFieldList()
JsonNode
JsonFields
. This method allows
the retrieval of all fields in an object even when the fields have duplicate keys. This method
also preserves the order of the fields.getFieldList
in class JsonNode
public boolean hasElements()
hasElements
in class JsonNode
public java.util.List<JsonNode> getElements()
getElements
in class JsonNode
public void visit(JsonNodeVisitor jsonNodeVisitor)
JsonNode
JsonNode
.public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(JsonStringNode that)
compareTo
in interface java.lang.Comparable<JsonStringNode>
public JsonStringNode build()
JsonNodeBuilder
T
, as specified by calls to any other methods provided by implementations of JsonNodeBuilder
.build
in interface JsonNodeBuilder<JsonStringNode>
T
.