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 |
---|---|
void |
deliver(Receiver receiver,
ParseOptions options)
Send a sequence of events representing this node to a supplied Receiver
|
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
|
emptyNodeList
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()
SaplingNode
getNodeKind
in class SaplingNode
Type.ELEMENT
for an element node.public java.lang.String getStringValue()
public void deliver(Receiver receiver, ParseOptions options) throws XPathException
SaplingNode
deliver
in class SaplingNode
receiver
- the receiver to which the events are to be sentoptions
- parse options (currently ignored)XPathException
- if the receiver throws an exceptionCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.