Package net.sf.saxon.sapling
Class SaplingText
java.lang.Object
net.sf.saxon.sapling.SaplingNode
net.sf.saxon.sapling.SaplingText
-
Constructor Summary
ConstructorsConstructorDescriptionSaplingText
(String value) Construct a sapling text node with a given string value -
Method Summary
Modifier and TypeMethodDescriptionvoid
deliver
(Receiver receiver, ParseOptions options) Send a sequence of events representing this node to a supplied Receiverint
Get the kind of node (document, element, text, comment, or processing instruction)Get the string value of the text nodeMethods inherited from class net.sf.saxon.sapling.SaplingNode
emptyNodeList
-
Constructor Details
-
SaplingText
Construct a sapling text node with a given string value- Parameters:
value
- the string value of the text node. Note that zero-length text nodes are allowed.- Throws:
NullPointerException
- if the value is null.
-
-
Method Details
-
getNodeKind
public int getNodeKind()Description copied from class:SaplingNode
Get the kind of node (document, element, text, comment, or processing instruction)- Specified by:
getNodeKind
in classSaplingNode
- Returns:
- the kind of node, for example
Type.ELEMENT
for an element node.
-
getStringValue
Get the string value of the text node- Returns:
- the string value of the node
-
deliver
Description copied from class:SaplingNode
Send a sequence of events representing this node to a supplied Receiver- Specified by:
deliver
in classSaplingNode
- Parameters:
receiver
- the receiver to which the events are to be sentoptions
- parse options (currently ignored)- Throws:
XPathException
- if the receiver throws an exception
-