public class DOMProcessingInstruction extends DOMCharacterData implements ProcessingInstruction
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUE
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
Constructor and Description |
---|
DOMProcessingInstruction(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
String |
getData() |
int |
getEndContent() |
int |
getEndTagStart()
Returns the end tag start offset and
DOMNode.NULL_VALUE if it doesn't
exist. |
String |
getNodeName() |
short |
getNodeType() |
int |
getStartContent() |
String |
getTarget() |
boolean |
isProcessingInstruction() |
boolean |
isProlog() |
void |
setData(String data) |
appendData, deleteData, endsWithNewLine, getDelimiter, getLength, getNodeValue, getNormalizedData, hasData, hasMultiLine, hasSiblings, insertData, isWhitespace, replaceData, setWhitespace, startsWithNewLine, substringData
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getChild, getChildNodes, getChildren, getChildrenWithAttributeValue, getEnd, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOrphanEndElement, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousNonTextSibling, getPreviousSibling, getStart, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, isClosed, isComment, isDefaultNamespace, isDoctype, isDTDAttListDecl, isDTDElementDecl, isDTDEntityDecl, isDTDNotationDecl, isElement, isEqualNode, isGenericDTDDecl, isIncluded, isIncluded, isOwnerDocument, isSameNode, isSupported, isText, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setAttributeNode, setNodeValue, setPrefix, setTextContent, setUserData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public boolean isProcessingInstruction()
isProcessingInstruction
in class DOMNode
public int getStartContent()
getStartContent
in class DOMCharacterData
public int getEndContent()
getEndContent
in class DOMCharacterData
public int getEndTagStart()
DOMNode.NULL_VALUE
if it doesn't
exist.DOMNode.NULL_VALUE
if it doesn't
exist.public short getNodeType()
getNodeType
in interface Node
public String getNodeName()
getNodeName
in interface Node
public String getTarget()
getTarget
in interface ProcessingInstruction
public String getData()
getData
in interface CharacterData
getData
in interface ProcessingInstruction
getData
in class DOMCharacterData
public void setData(String data) throws DOMException
setData
in interface CharacterData
setData
in interface ProcessingInstruction
setData
in class DOMCharacterData
DOMException
Copyright © 2021. All rights reserved.