public final class ProcessingInstructionImpl extends LeafNodeImpl implements ProcessingInstruction
Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
String |
getData()
The content of this processing instruction.
|
String |
getNodeName()
The name of this node, depending on its type; see the table above.
|
short |
getNodeType()
A code representing the type of the underlying object, as defined above.
|
String |
getNodeValue()
The value of this node, depending on its type; see the table above.
|
String |
getTarget()
The target of this processing instruction.
|
void |
setData(String data)
The content of this processing instruction.
|
getNextSibling, getParentNode, getPreviousSibling
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public String getData()
ProcessingInstruction
?>
.getData
in interface ProcessingInstruction
public String getNodeName()
Node
getNodeName
in interface Node
getNodeName
in class NodeImpl
public short getNodeType()
Node
getNodeType
in interface Node
getNodeType
in class NodeImpl
public String getNodeValue()
Node
null
, setting it has no effect,
including if the node is read-only.getNodeValue
in interface Node
getNodeValue
in class NodeImpl
public String getTarget()
ProcessingInstruction
getTarget
in interface ProcessingInstruction
public void setData(String data) throws DOMException
ProcessingInstruction
?>
.setData
in interface ProcessingInstruction
DOMException
- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.