Package net.sf.saxon.sapling
Class SaplingProcessingInstruction
java.lang.Object
net.sf.saxon.sapling.SaplingNode
net.sf.saxon.sapling.SaplingProcessingInstruction
A processing-instruction node in a sapling tree
-
Constructor Summary
ConstructorsConstructorDescriptionSaplingProcessingInstruction(String name, String value) Construct a sapling processing-instruction node with a given name and string value -
Method Summary
Modifier and TypeMethodDescriptionvoiddeliver(Receiver receiver, ParseOptions options) Send a sequence of events representing this node to a supplied ReceivergetName()Get the name of the processing instruction nodeintGet the kind of node (document, element, text, comment, or processing instruction)Get the string value of the processing instruction nodeMethods inherited from class net.sf.saxon.sapling.SaplingNode
emptyNodeList
-
Constructor Details
-
SaplingProcessingInstruction
Construct a sapling processing-instruction node with a given name and string value- Parameters:
name- the name of the processing-instruction node (also called the "target"). This should be an NCName; but this is not checked.value- the string value of the processing-instruction node (also called the "data"). This should not start with an initial space, and it should not contain the substring"?>", but this is not checked.- Throws:
NullPointerException- if either name or value is null
-
-
Method Details
-
getName
Get the name of the processing instruction node- Returns:
- the name of the node (the processing-instruction target)
-
getStringValue
Get the string value of the processing instruction node- Returns:
- the string value of the node (the processing-instruction data)
-
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.
-
deliver
Description copied from class:SaplingNodeSend a sequence of events representing this node to a supplied Receiver- Specified by:
deliverin 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
-