<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_10-ea) on Sun Jul 14 20:03:32 PDT 2013 --> <title>TextNode (Jackson JSON Processor)</title> <meta name="date" content="2013-07-14"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="TextNode (Jackson JSON Processor)"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/TextNode.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/codehaus/jackson/node/POJONode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/codehaus/jackson/node/TreeTraversingParser.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/codehaus/jackson/node/TextNode.html" target="_top">Frames</a></li> <li><a href="TextNode.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">org.codehaus.jackson.node</div> <h2 title="Class TextNode" class="title">Class TextNode</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonNode</a></li> <li> <ul class="inheritance"> <li><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.BaseJsonNode</a></li> <li> <ul class="inheritance"> <li><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.ValueNode</a></li> <li> <ul class="inheritance"> <li>org.codehaus.jackson.node.TextNode</li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>>, <a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a>, <a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html" title="interface in org.codehaus.jackson.map">JsonSerializableWithType</a></dd> </dl> <hr> <br> <pre>public final class <span class="strong">TextNode</span> extends <a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></pre> <div class="block">Value node that contains a text value.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field_summary"> <!-- --> </a> <h3>Field Summary</h3> <ul class="blockList"> <li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode"> <!-- --> </a> <h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> <code><a href="../../../../org/codehaus/jackson/JsonNode.html#NO_NODES">NO_NODES</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#NO_STRINGS">NO_STRINGS</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#TextNode(java.lang.String)">TextNode</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#_reportBase64EOF()">_reportBase64EOF</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#_reportInvalidBase64(org.codehaus.jackson.Base64Variant, char, int)">_reportInvalidBase64</a></strong>(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, char ch, int bindex)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#_reportInvalidBase64(org.codehaus.jackson.Base64Variant, char, int, java.lang.String)">_reportInvalidBase64</a></strong>(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, char ch, int bindex, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected static void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#appendQuoted(java.lang.StringBuilder, java.lang.String)">appendQuoted</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> content)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asText()">asText</a></strong>()</code> <div class="block">Method that will return valid String representation of the container value, if the node is a value node (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise empty String.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#asToken()">asToken</a></strong>()</code> <div class="block">Method that can be used for efficient type detection when using stream abstraction for traversing nodes.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> <div class="block">Equality for node objects is defined as full (deep) value equality.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>byte[]</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#getBinaryValue()">getBinaryValue</a></strong>()</code> <div class="block">Method to use for accessing binary content of binary nodes (nodes for which <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()"><code>JsonNode.isBinary()</code></a> returns true); or for Text Nodes (ones for which <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()"><code>JsonNode.getTextValue()</code></a> returns non-null value), to read decoded base64 data.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>byte[]</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#getBinaryValue(org.codehaus.jackson.Base64Variant)">getBinaryValue</a></strong>(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant)</code> <div class="block">Method for accessing textual contents assuming they were base64 encoded; if so, they are decoded and resulting binary data is returned.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#getTextValue()">getTextValue</a></strong>()</code> <div class="block">Method to use for accessing String values.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#hashCode()">hashCode</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#isTextual()">isTextual</a></strong>()</code> <div class="block">Yes indeed it is textual</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider)</code> <div class="block">Method called to serialize node instances using given generator.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#toString()">toString</a></strong>()</code> <div class="block">Different from other values, Strings need quoting</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node">TextNode</a></code></td> <td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/TextNode.html#valueOf(java.lang.String)">valueOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</code> <div class="block">Factory method that should be used to construct instances.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.ValueNode"> <!-- --> </a> <h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></h3> <code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#isValueNode()">isValueNode</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(int)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(java.lang.String)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode"> <!-- --> </a> <h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></h3> <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#getNumberType()">getNumberType</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode"> <!-- --> </a> <h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble()">asDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">asInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">asLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBigIntegerValue()">getBigIntegerValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDecimalValue()">getDecimalValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDoubleValue()">getDoubleValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getElements()">getElements</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFieldNames()">getFieldNames</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFields()">getFields</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">getIntValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getLongValue()">getLongValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">getNumberValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(int)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(java.lang.String)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">getValueAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(int)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(java.lang.String)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isArray()">isArray</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigDecimal()">isBigDecimal</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isInt()">isInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isLong()">isLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNull()">isNull</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()">isNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isObject()">isObject</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isPojo()">isPojo</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#iterator()">iterator</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#size()">size</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#with(java.lang.String)">with</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="TextNode(java.lang.String)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>TextNode</h4> <pre>public TextNode(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="valueOf(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>valueOf</h4> <pre>public static <a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node">TextNode</a> valueOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</pre> <div class="block">Factory method that should be used to construct instances. For some common cases, can reuse canonical instances: currently this is the case for empty Strings, in future possible for others as well. If null is passed, will return null.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>Resulting <a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node"><code>TextNode</code></a> object, if <b>v</b> is NOT null; null if it is.</dd></dl> </li> </ul> <a name="asToken()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asToken</h4> <pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> asToken()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> <div class="block">Method that can be used for efficient type detection when using stream abstraction for traversing nodes. Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent stream event would produce (for most nodes there is just one token but for structured/container types multiple)</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#asToken()">asToken</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd> </dl> </li> </ul> <a name="isTextual()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isTextual</h4> <pre>public boolean isTextual()</pre> <div class="block">Yes indeed it is textual</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isTextual()">isTextual</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="getTextValue()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getTextValue</h4> <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getTextValue()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()">JsonNode</a></code></strong></div> <div class="block">Method to use for accessing String values. Does <b>NOT</b> do any conversions for non-String value nodes; for non-String values (ones for which <a href="../../../../org/codehaus/jackson/JsonNode.html#isTextual()"><code>JsonNode.isTextual()</code></a> returns false) null will be returned. For String values, null is never returned (but empty Strings may be)</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()">getTextValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>Textual value this node contains, iff it is a textual json node (comes from Json String value entry)</dd></dl> </li> </ul> <a name="getBinaryValue(org.codehaus.jackson.Base64Variant)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getBinaryValue</h4> <pre>public byte[] getBinaryValue(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Method for accessing textual contents assuming they were base64 encoded; if so, they are decoded and resulting binary data is returned.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="getBinaryValue()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getBinaryValue</h4> <pre>public byte[] getBinaryValue() throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">JsonNode</a></code></strong></div> <div class="block">Method to use for accessing binary content of binary nodes (nodes for which <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()"><code>JsonNode.isBinary()</code></a> returns true); or for Text Nodes (ones for which <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()"><code>JsonNode.getTextValue()</code></a> returns non-null value), to read decoded base64 data. For other types of nodes, returns null.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">getBinaryValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> <dt><span class="strong">Returns:</span></dt><dd>Binary data this node contains, iff it is a binary node; null otherwise</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> </li> </ul> <a name="asText()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asText</h4> <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> <div class="block">Method that will return valid String representation of the container value, if the node is a value node (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise empty String.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">asText</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="asBoolean(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asBoolean</h4> <pre>public boolean asBoolean(boolean defaultValue)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. <p> If representation can not be converted to a boolean value (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="asInt(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asInt</h4> <pre>public int asInt(int defaultValue)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">asInt</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="asLong(long)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asLong</h4> <pre>public long asLong(long defaultValue)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an long (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">asLong</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="asDouble(double)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asDouble</h4> <pre>public double asDouble(double defaultValue)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>. Numbers are coerced using default Java rules; booleans convert to 0.0 (false) and 1.0 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">asDouble</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>serialize</h4> <pre>public final void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider) throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">BaseJsonNode</a></code></strong></div> <div class="block">Method called to serialize node instances using given generator.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a></code></dd> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> <dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> </li> </ul> <a name="equals(java.lang.Object)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public boolean equals(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> <div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div> <div class="block">Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. <p> Note: marked as abstract to ensure all implementation classes define it properly and not rely on definition from <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div> <dl> <dt><strong>Specified by:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> </dl> </li> </ul> <a name="hashCode()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> <pre>public int hashCode()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> </dl> </li> </ul> <a name="toString()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> <div class="block">Different from other values, Strings need quoting</div> <dl> <dt><strong>Overrides:</strong></dt> <dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#toString()">toString</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd> </dl> </li> </ul> <a name="appendQuoted(java.lang.StringBuilder, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>appendQuoted</h4> <pre>protected static void appendQuoted(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a> sb, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> content)</pre> </li> </ul> <a name="_reportInvalidBase64(org.codehaus.jackson.Base64Variant, char, int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_reportInvalidBase64</h4> <pre>protected void _reportInvalidBase64(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, char ch, int bindex) throws <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="_reportInvalidBase64(org.codehaus.jackson.Base64Variant, char, int, java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_reportInvalidBase64</h4> <pre>protected void _reportInvalidBase64(<a href="../../../../org/codehaus/jackson/Base64Variant.html" title="class in org.codehaus.jackson">Base64Variant</a> b64variant, char ch, int bindex, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg) throws <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bindex</code> - Relative index within base64 character unit; between 0 and 3 (as unit has exactly 4 characters)</dd> <dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> <a name="_reportBase64EOF()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_reportBase64EOF</h4> <pre>protected void _reportBase64EOF() throws <a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code><a href="../../../../org/codehaus/jackson/JsonParseException.html" title="class in org.codehaus.jackson">JsonParseException</a></code></dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/TextNode.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../org/codehaus/jackson/node/POJONode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> <li><a href="../../../../org/codehaus/jackson/node/TreeTraversingParser.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?org/codehaus/jackson/node/TextNode.html" target="_top">Frames</a></li> <li><a href="TextNode.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>