|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomProcessingInstruction
public class DomProcessingInstruction
Wrapper for the DOM node ProcessingInstruction.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator<T extends DomNode> |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
AS_TEXT_BLANK, AS_TEXT_BLOCK_SEPARATOR, AS_TEXT_NEW_LINE, AS_TEXT_TAB, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Constructor Summary | |
---|---|
DomProcessingInstruction(SgmlPage page,
String target,
String data)
Creates a new instance. |
Method Summary | |
---|---|
String |
getData()
|
String |
getNodeName()
Returns this node's node name. |
short |
getNodeType()
Returns this node's node type. |
String |
getNodeValue()
|
String |
getTarget()
|
protected void |
printXml(String indent,
PrintWriter printWriter)
Recursively writes the XML data for the node tree starting at node . |
void |
setData(String data)
|
void |
setNodeValue(String value)
|
void |
setTextContent(String textContent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
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, setPrefix, setUserData |
Constructor Detail |
---|
public DomProcessingInstruction(SgmlPage page, String target, String data)
page
- the Page that contains this elementtarget
- the targetdata
- the dataMethod Detail |
---|
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class DomNode
Node.PROCESSING_INSTRUCTION_NODE
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class DomNode
public String getTarget()
getTarget
in interface ProcessingInstruction
public String getData()
getData
in interface ProcessingInstruction
public void setData(String data) throws DOMException
setData
in interface ProcessingInstruction
DOMException
public void setNodeValue(String value)
setNodeValue
in interface Node
setNodeValue
in class DomNode
public String getNodeValue()
getNodeValue
in interface Node
getNodeValue
in class DomNode
public void setTextContent(String textContent)
setTextContent
in interface Node
setTextContent
in class DomNode
protected void printXml(String indent, PrintWriter printWriter)
node
.
printXml
in class DomNode
indent
- white space to indent child nodesprintWriter
- writer where child nodes are written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |