net.sf.saxon.tinytree
public final class WhitespaceTextImpl extends TinyNodeImpl
Constructor Summary | |
---|---|
WhitespaceTextImpl(TinyTree tree, int nodeNr)
Create a compressed whitespace text node |
Method Summary | |
---|---|
static void | appendStringValue(TinyTree tree, int nodeNr, FastStringBuffer buffer)
Static method to get the string value of a text node and append it to a supplied buffer
without first constructing the node object |
Value | atomize()
Get the typed value. |
void | copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId)
Copy this node to a given outputter |
static long | getLongValue(TinyTree tree, int nodeNr)
Static method to get the "long" value representing the content of a whitespace text node |
int | getNodeKind()
Return the type of node. |
String | getStringValue()
Return the character value of the node. |
CharSequence | getStringValueCS()
Get the value of the item as a CharSequence. |
static CharSequence | getStringValueCS(TinyTree tree, int nodeNr)
Static method to get the string value of a text node without first constructing the node object |
SequenceIterator | getTypedValue()
Get the typed value of the item.
|
Parameters: tree the tree to contain the node nodeNr the internal node number
Parameters: tree the tree nodeNr the node number of the text node buffer a buffer to which the string value will be appended
Returns: the typed value. This will either be a single AtomicValue or a Value whose items are atomic values.
Since: 8.5
Parameters: tree the TinyTree nodeNr the internal node number
Returns: a value representing the compressed whitespace content
See Also: CompressedWhitespace
Returns: Type.TEXT
Returns: the string value of the node
Parameters: tree the tree nodeNr the node number of the text node
Returns: the string value of the text node
Returns: an iterator over the items in the typed value of the node or atomic value. The items returned by this iterator will always be atomic values.
Throws: net.sf.saxon.trans.XPathException where no typed value is available, for example in the case of an element with complex content
Since: 8.4