Package net.sf.saxon.sapling
Class SaplingText
- java.lang.Object
-
- net.sf.saxon.sapling.SaplingNode
-
- net.sf.saxon.sapling.SaplingText
-
public class SaplingText extends SaplingNode
-
-
Constructor Summary
Constructors Constructor Description SaplingText(java.lang.String value)Construct a sapling text node with a given string value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNodeKind()Get the kind of node (document, element, text, comment, or processing instruction)java.lang.StringgetStringValue()Get the string value of the text nodeprotected voidsendTo(Receiver receiver)Send a sequence of events representing this node to a supplied Receiver
-
-
-
Method Detail
-
getNodeKind
public int getNodeKind()
Description copied from class:SaplingNodeGet the kind of node (document, element, text, comment, or processing instruction)- Specified by:
getNodeKindin classSaplingNode- Returns:
- the kind of node, for example
Type.ELEMENTfor an element node.
-
getStringValue
public java.lang.String getStringValue()
Get the string value of the text node- Returns:
- the string value of the node
-
sendTo
protected void sendTo(Receiver receiver) throws XPathException
Description copied from class:SaplingNodeSend a sequence of events representing this node to a supplied Receiver- Specified by:
sendToin classSaplingNode- Parameters:
receiver- the receiver to which the events are to be sent- Throws:
XPathException- if the receiver throws an exception
-
-