net.sf.saxon.tinytree
Class WhitespaceTextImpl
- ExtendedNodeInfo, FingerprintedNode, Item, NodeInfo, Source, PullEvent, Source, SourceLocator, ValueRepresentation
public final class WhitespaceTextImpl
A node in the XML parse tree representing a text node with compressed whitespace content
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
|
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.
|
static CharSequence | getStringValue(TinyTree tree, int nodeNr)- Static method to get the string value of a text node without first constructing the node object
|
CharSequence | getStringValueCS()- Get the value of the item as a CharSequence.
|
atomize, compareOrder, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeNumber, getParent, getPrefix, getPublicId, getRoot, getSequenceNumber, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getURI, hasChildNodes, hashCode, isAncestorOrSelf, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis, setParentNode, setSystemId |
WhitespaceTextImpl
public WhitespaceTextImpl(TinyTree tree,
int nodeNr) Create a compressed whitespace text node
tree - the tree to contain the nodenodeNr - the internal node number
appendStringValue
public 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
tree - the treenodeNr - the node number of the text nodebuffer - a buffer to which the string value will be appended
copy
public void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException Copy this node to a given outputter
- copy in interface NodeInfo
getLongValue
public static long getLongValue(TinyTree tree,
int nodeNr) Static method to get the "long" value representing the content of a whitespace text node
tree - the TinyTreenodeNr - the internal node number
- a value representing the compressed whitespace content
getNodeKind
public final int getNodeKind()
Return the type of node.
- getNodeKind in interface NodeInfo
getStringValue
public static CharSequence getStringValue(TinyTree tree,
int nodeNr) Static method to get the string value of a text node without first constructing the node object
tree - the treenodeNr - the node number of the text node
- the string value of the text node