com.japisoft.fastparser.dom
Class ProcessingInstructionImpl

java.lang.Object
  |
  +--com.japisoft.fastparser.node.SimpleNode
        |
        +--com.japisoft.fastparser.dom.NodeImpl
              |
              +--com.japisoft.fastparser.dom.ProcessingInstructionImpl
All Implemented Interfaces:
MutableNode, Node, ProcessingInstruction, ViewableNode

public class ProcessingInstructionImpl
extends NodeImpl
implements ProcessingInstruction

ProcesingInstruction

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT

Field Summary
 
Fields inherited from class com.japisoft.fastparser.dom.NodeImpl
nameSpaceURI
 
Fields inherited from class com.japisoft.fastparser.node.SimpleNode
COMMENT_NODE, TAG_NODE, TEXT_NODE
 
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
ProcessingInstructionImpl()
           
 
Method Summary
 java.lang.String getData()
          The content of this processing instruction.
 java.lang.String getTarget()
          The target of this processing instruction.
 void setData(java.lang.String data)
           
 
Methods inherited from class com.japisoft.fastparser.dom.NodeImpl
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setPrefix
 
Methods inherited from class com.japisoft.fastparser.node.SimpleNode
addChildNode, addNameSpaceDeclaration, addNode, childAt, childCount, childNodeIndex, clone, getAllChild, getAttribute, getAttribute, getContent, getDefaultNamespace, getDocument, getLine, getNameSpaceDeclaration, getNameSpaceDeclarationURI, getNamespaceDeclared, getNameSpacePrefix, getNameSpaceURI, getNodeByCriteria, getNodeByName, getNodeContent, getNodeForXPathLocation, getSimpleParent, getType, getViewAttribute, getViewAttributes, getViewChildAt, getViewChildCount, getViewContent, getXPathLocation, getXPathLocation, hasAttribute, insertChildNode, isComment, isLeaf, isNamespaceDeclared, isRoot, isTag, isText, isViewComment, isViewLeaf, isViewText, removeChildNode, removeNameSpaceDeclaration, setAttribute, setContent, setDefaultNamespace, setDocument, setLine, setNameSpace, setNodeAttribute, setNodeContent, setNodeParent, setSimpleParent, setType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue
 

Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl()
Method Detail

getTarget

public java.lang.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 java.lang.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(java.lang.String data)
             throws DOMException
Specified by:
setData in interface ProcessingInstruction
DOMException