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, getPreviousSiblingappendChild, 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, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, 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, setUserDatapublic String getData()
ProcessingInstruction?>.getData in interface ProcessingInstructionpublic String getNodeName()
NodegetNodeName in interface NodegetNodeName in class NodeImplpublic short getNodeType()
NodegetNodeType in interface NodegetNodeType in class NodeImplpublic String getNodeValue()
Nodenull, setting it has no effect,
including if the node is read-only.getNodeValue in interface NodegetNodeValue in class NodeImplpublic String getTarget()
ProcessingInstructiongetTarget in interface ProcessingInstructionpublic void setData(String data) throws DOMException
ProcessingInstruction?>.setData in interface ProcessingInstructionDOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.