|
JSON Version 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jackson.map.JsonNode
org.codehaus.jackson.map.impl.ValueNode
org.codehaus.jackson.map.impl.TextNode
public final class TextNode
Value node that contains text value
| Constructor Summary | |
|---|---|
TextNode(String v)
|
|
| Method Summary | |
|---|---|
protected static void |
appendQuoted(StringBuilder sb,
String content)
|
boolean |
equals(Object o)
Let's mark this standard method as abstract to ensure all implementation classes define it |
String |
getTextValue()
|
String |
getValueAsText()
Method that will return valid String representation of the container value, if the node is a value node (method JsonNode.isValueNode() returns true), otherwise null. |
boolean |
isTextual()
|
String |
toString()
Different from other values, Strings need quoting |
static TextNode |
valueOf(String v)
|
void |
writeTo(JsonGenerator jg)
Method that can be called to serialize this node and all of its descendants using specified JSON generator. |
| Methods inherited from class org.codehaus.jackson.map.impl.ValueNode |
|---|
getPath, getPath, isValueNode |
| Methods inherited from class org.codehaus.jackson.map.JsonNode |
|---|
appendElement, getBooleanValue, getDecimalValue, getDoubleValue, getElements, getElementValue, getFieldNames, getFieldValue, getFieldValues, getIntValue, getLongValue, getNumberValue, insertElement, isArray, isBigDecimal, isBoolean, isContainerNode, isDouble, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isObject, removeElement, removeElement, reportNoArrayMods, reportNoObjectMods, setElement, setElement, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextNode(String v)
| Method Detail |
|---|
public static TextNode valueOf(String v)
public boolean isTextual()
isTextual in class JsonNodepublic String getTextValue()
getTextValue in class JsonNodepublic String getValueAsText()
JsonNodeJsonNode.isValueNode() returns true), otherwise null.
Note: to serialize nodes of any type, you should call
JsonNode.toString() instead.
getValueAsText in class JsonNode
public void writeTo(JsonGenerator jg)
throws IOException,
JsonGenerationException
JsonNode
writeTo in class JsonNodeIOException
JsonGenerationExceptionpublic boolean equals(Object o)
JsonNode
equals in class JsonNodepublic String toString()
toString in class ValueNode
protected static void appendQuoted(StringBuilder sb,
String content)
|
JSON Version 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||