Package net.sf.saxon.sapling
Class SaplingComment
java.lang.Object
net.sf.saxon.sapling.SaplingNode
net.sf.saxon.sapling.SaplingComment
A comment node in a sapling tree
- 
Constructor SummaryConstructorsConstructorDescriptionSaplingComment(String value) Construct a sapling comment node with a given string value
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeliver(Receiver receiver, ParseOptions options) Send a sequence of events representing this node to a supplied ReceiverintGet the kind of node (document, element, text, comment, or processing instruction)Get the string value of the comment nodeMethods inherited from class net.sf.saxon.sapling.SaplingNodeemptyNodeList
- 
Constructor Details- 
SaplingCommentConstruct 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:
- NullPointerException- if the supplied value is null.
 
 
- 
- 
Method Details- 
getNodeKindpublic int getNodeKind()Description copied from class:SaplingNodeGet the kind of node (document, element, text, comment, or processing instruction)- Specified by:
- getNodeKindin class- SaplingNode
- Returns:
- the kind of node, for example Type.ELEMENTfor an element node.
 
- 
getStringValueGet the string value of the comment node- Returns:
- the string value of the node
 
- 
deliverDescription copied from class:SaplingNodeSend a sequence of events representing this node to a supplied Receiver- Specified by:
- deliverin class- SaplingNode
- Parameters:
- receiver- the receiver to which the events are to be sent
- options- parse options (currently ignored)
- Throws:
- XPathException- if the receiver throws an exception
 
 
-