Package net.sf.saxon.sapling
Class SaplingComment
- java.lang.Object
-
- net.sf.saxon.sapling.SaplingNode
-
- net.sf.saxon.sapling.SaplingComment
-
public class SaplingComment extends SaplingNode
A comment node in a sapling tree
-
-
Constructor Summary
Constructors Constructor Description SaplingComment(java.lang.String value)
Construct a sapling comment node with a given string value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deliver(Receiver receiver, ParseOptions options)
Send a sequence of events representing this node to a supplied Receiverint
getNodeKind()
Get the kind of node (document, element, text, comment, or processing instruction)java.lang.String
getStringValue()
Get the string value of the comment node-
Methods inherited from class net.sf.saxon.sapling.SaplingNode
emptyNodeList
-
-
-
-
Constructor Detail
-
SaplingComment
public SaplingComment(java.lang.String value)
Construct a sapling comment node with a given string value- Parameters:
value
- the string value of the comment node. This should not contain "--" as a substring, but this condition is not checked.- Throws:
java.lang.NullPointerException
- if the supplied value is null.
-
-
Method Detail
-
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
public java.lang.String getStringValue()
Get the string value of the comment node- Returns:
- the string value of the node
-
deliver
public void deliver(Receiver receiver, ParseOptions options) throws XPathException
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
-
-