public class SaplingProcessingInstruction extends SaplingNode
Constructor and Description |
---|
SaplingProcessingInstruction(java.lang.String name,
java.lang.String value)
Construct a sapling processing-instruction node with a given name and string value
|
Modifier and Type | Method and Description |
---|---|
void |
deliver(Receiver receiver,
ParseOptions options)
Send a sequence of events representing this node to a supplied Receiver
|
java.lang.String |
getName()
Get the name of the processing instruction node
|
int |
getNodeKind()
Get the kind of node (document, element, text, comment, or processing instruction)
|
java.lang.String |
getStringValue()
Get the string value of the processing instruction node
|
emptyNodeList
public SaplingProcessingInstruction(java.lang.String name, java.lang.String value)
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.java.lang.NullPointerException
- if either name or value is nullpublic java.lang.String getName()
public java.lang.String getStringValue()
public int getNodeKind()
SaplingNode
getNodeKind
in class SaplingNode
Type.ELEMENT
for an element node.public void deliver(Receiver receiver, ParseOptions options) throws XPathException
SaplingNode
deliver
in class SaplingNode
receiver
- the receiver to which the events are to be sentoptions
- parse options (currently ignored)XPathException
- if the receiver throws an exceptionCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.