EmptyString, parentNode, siblingIndex
Constructor and Description |
---|
DataNode(String data)
Create a new DataNode.
|
DataNode(String data,
String baseUri)
Deprecated.
use
DataNode(String) instead |
Modifier and Type | Method and Description |
---|---|
static DataNode |
createFromEncoded(String encodedData,
String baseUri)
Create a new DataNode from HTML encoded data.
|
String |
getWholeData()
Get the data contents of this node.
|
String |
nodeName()
Get the node name of this node.
|
(package private) void |
outerHtmlHead(Appendable accum,
int depth,
Document.OutputSettings out)
Get the outer HTML of this node.
|
(package private) void |
outerHtmlTail(Appendable accum,
int depth,
Document.OutputSettings out) |
DataNode |
setWholeData(String data)
Set the data contents of this node.
|
String |
toString() |
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doSetBaseUri, ensureChildNodes, hasAttr, hasAttributes, removeAttr
addChildren, addChildren, after, after, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, clone, doClone, equals, filter, getOutputSettings, hasParent, hasSameValue, html, indent, nextSibling, nodelistChanged, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap, wrap
public DataNode(String data, String baseUri)
DataNode(String)
insteaddata
- data contentsbaseUri
- Unused, Leaf Nodes do not hold base URispublic String nodeName()
Node
public String getWholeData()
public DataNode setWholeData(String data)
data
- unencoded datavoid outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException
Node
outerHtmlHead
in class Node
accum
- accumulator to place HTML intoIOException
- if appending to the given accumulator fails.void outerHtmlTail(Appendable accum, int depth, Document.OutputSettings out)
outerHtmlTail
in class Node
public static DataNode createFromEncoded(String encodedData, String baseUri)
encodedData
- encoded databaseUri
- bass URIWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses