Xindice API
version 1.1

org.apache.xindice.xml.dom
Class ProcessingInstructionImpl

java.lang.Object
  |
  +--org.apache.xindice.xml.dom.NodeImpl
        |
        +--org.apache.xindice.xml.dom.ProcessingInstructionImpl
All Implemented Interfaces:
CompressedNode, DBNode, org.w3c.dom.Node, org.w3c.dom.ProcessingInstruction

public final class ProcessingInstructionImpl
extends NodeImpl
implements org.w3c.dom.ProcessingInstruction

ProcessingInstructionImpl

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Fields inherited from class org.apache.xindice.xml.dom.NodeImpl
data, dirty, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EX_DOMSTRING_SIZE, EX_HIERARCHY_REQUEST, EX_INDEX_SIZE, EX_INUSE_ATTRIBUTE, EX_INVALID_STATE, EX_NO_DATA_ALLOWED, EX_NO_MODIFICATION_ALLOWED, EX_NOT_FOUND, EX_WRONG_DOCUMENT, handlers, key, len, loaded, nodeName, nodeValue, nsURI, OBJECT_HREF, OBJECT_NS, OBJECT_TYPE, ownerDocument, parentNode, pos, source, TYPE_APPEND, TYPE_CONTENT, TYPE_INSERT, TYPE_REPLACE, userData, XMLNS_PREFIX, XMLNS_URI
 
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()
           
ProcessingInstructionImpl(NodeImpl parentNode, boolean dirty)
           
ProcessingInstructionImpl(NodeImpl parentNode, byte[] data, int pos, int len)
           
ProcessingInstructionImpl(NodeImpl parentNode, String nodeName, String nodeValue)
           
 
Method Summary
protected  void checkLoaded()
           
 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)
           
 void setNodeValue(String nodeValue)
          The value of this node, depending on its type; see the table above.
 
Methods inherited from class org.apache.xindice.xml.dom.NodeImpl
appendChild, checkReadOnly, cloneNode, cloneNode, compareDocumentPosition, expandSource, getAttributes, getBaseURI, getChildNodes, getDataBytes, getDataLen, getDataPos, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getPreviousSibling, getSource, getSymbolID, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, invokeHandlers, invokeHandlers, isDefaultNamespace, isDefined, isDirty, isEqualNode, isLoaded, isSameNode, isSupported, load, lookupDefaultNamespaceURI, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setDataBytes, setDataBytes, setDataLen, setDataPos, setDirty, setNodeName, setParentNode, setPrefix, setSource, setTextContent, setUserData, toString, unload
 
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, setPrefix
 

Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl()

ProcessingInstructionImpl

public ProcessingInstructionImpl(NodeImpl parentNode,
                                 byte[] data,
                                 int pos,
                                 int len)

ProcessingInstructionImpl

public ProcessingInstructionImpl(NodeImpl parentNode,
                                 boolean dirty)

ProcessingInstructionImpl

public ProcessingInstructionImpl(NodeImpl parentNode,
                                 String nodeName,
                                 String nodeValue)
Method Detail

checkLoaded

protected void checkLoaded()
Overrides:
checkLoaded in class NodeImpl

getNodeType

public short getNodeType()
Description copied from class: NodeImpl
A code representing the type of the underlying object, as defined above.
Specified by:
getNodeType in interface org.w3c.dom.Node
Overrides:
getNodeType in class NodeImpl

setNodeValue

public void setNodeValue(String nodeValue)
                  throws org.w3c.dom.DOMException
Description copied from class: NodeImpl
The value of this node, depending on its type; see the table above. When it is defined to be null , setting it has no effect.
Specified by:
setNodeValue in interface org.w3c.dom.Node
Overrides:
setNodeValue in class NodeImpl
Following copied from class: org.apache.xindice.xml.dom.NodeImpl
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
org.w3c.dom.DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a DOMString variable on the implementation platform.

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 org.w3c.dom.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 org.w3c.dom.ProcessingInstruction
Throws:
org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

setData

public void setData(String data)
             throws org.w3c.dom.DOMException
Specified by:
setData in interface org.w3c.dom.ProcessingInstruction

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.