public class SaplingText extends SaplingNode
| Constructor and Description |
|---|
SaplingText(java.lang.String value)
Construct a sapling text node with a given string value
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNodeKind()
Get the kind of node (document, element, text, comment, or processing instruction)
|
java.lang.String |
getStringValue()
Get the string value of the text node
|
protected void |
sendTo(Receiver receiver)
Send a sequence of events representing this node to a supplied Receiver
|
public SaplingText(java.lang.String value)
value - the string value of the text node. Note that zero-length text nodes are allowed.java.lang.NullPointerException - if the value is null.public int getNodeKind()
SaplingNodegetNodeKind in class SaplingNodeType.ELEMENT for an element node.public java.lang.String getStringValue()
protected void sendTo(Receiver receiver) throws XPathException
SaplingNodesendTo in class SaplingNodereceiver - the receiver to which the events are to be sentXPathException - if the receiver throws an exceptionCopyright (c) 2004-2021 Saxonica Limited. All rights reserved.