com.novell.xml.dom
Class ProcessingInstructionImpl

java.lang.Object
  extended bycom.novell.xml.dom.NodeImpl
      extended bycom.novell.xml.dom.ProcessingInstructionImpl
All Implemented Interfaces:
Cloneable, Comparable, Node, ProcessingInstruction

public class ProcessingInstructionImpl
extends NodeImpl
implements ProcessingInstruction


Field Summary
 
Fields inherited from class com.novell.xml.dom.NodeImpl
allowedChildren, baseURI, changeCount, document, documentOrderVal, expandedName, firstChild, lastChild, localName, namespaceURI, nextOrderVal, nextSibling, nodeName, nodeValue, parentNode, prefix, previousSibling, toStringSerializes, xmlnsPrefix, xmlPrefix, xpathBehavior
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected ProcessingInstructionImpl(DocumentImpl owner, String target, String data)
           
 
Method Summary
 String getData()
          The content of this processing instruction.
 short getNodeType()
          A code representing the type of the underlying object, as defined above.
 String getTarget()
          The target of this processing instruction.
 void setData(String data)
           
 
Methods inherited from class com.novell.xml.dom.NodeImpl
appendChild, checkName, checkNameNS, cloneNode, compareTo, fetchNamespacesFromDecls, gateModify, getAttributes, getBaseURI, getChangeCount, getChildNodes, getColumnNumber, getDocumentOrder, getExpandedName, getFirstChild, getLastChild, getLineNumber, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, incChangeCount, insertBefore, isChildAllowed, isReadOnly, isSupported, normalize, purgeCachedExpandedNames, removeChild, replaceChild, setBaseURI, setColumnNumber, setDeepReadOnly, setDocumentOrder, setLineNumber, setNodeValue, setOwnerDocument, setPrefix, setReadOnly, setXPathBehavior, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

ProcessingInstructionImpl

protected ProcessingInstructionImpl(DocumentImpl owner,
                                    String target,
                                    String data)
Method Detail

getNodeType

public short getNodeType()
A code representing the type of the underlying object, as defined above.

Specified by:
getNodeType in interface Node
Specified by:
getNodeType in class NodeImpl

getTarget

public String getTarget()
The target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.

Specified by:
getTarget in interface ProcessingInstruction

getData

public String getData()
The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

Specified by:
getData in interface ProcessingInstruction
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

setData

public void setData(String data)
             throws DOMException
Specified by:
setData in interface ProcessingInstruction
Throws:
DOMException