org.exist.dom
Class ProcessingInstructionImpl

java.lang.Object
  extended by org.exist.dom.NodeImpl
      extended by org.exist.dom.StoredNode
          extended by org.exist.dom.ProcessingInstructionImpl
All Implemented Interfaces:
QNameable, Visitable, Node, ProcessingInstruction

public class ProcessingInstructionImpl
extends StoredNode
implements ProcessingInstruction

Persistent implementation of a DOM processing-instruction node.

Author:
wolf

Field Summary
static int LENGTH_TARGET_DATA
           
 
Fields inherited from class org.exist.dom.StoredNode
LENGTH_SIGNATURE_LENGTH, UNKNOWN_NODE_IMPL_ADDRESS
 
Fields inherited from interface org.w3c.dom.Node
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 Summary
ProcessingInstructionImpl()
           
ProcessingInstructionImpl(NodeId nodeId, String target, String data)
           
ProcessingInstructionImpl(String target, String data)
           
 
Method Summary
 void clear()
          Reset this object to its initial state.
static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc, boolean pooled)
           
 String getBaseURI()
          ? @see org.w3c.dom.Node#getBaseURI()
 int getChildCount()
           
 String getData()
          Gets the data attribute of the ProcessingInstructionImpl object
 Node getFirstChild()
           
 String getLocalName()
           
 String getNamespaceURI()
           
 String getNodeName()
           
 String getTarget()
          Gets the target attribute of the ProcessingInstructionImpl object
 boolean hasChildNodes()
           
 byte[] serialize()
           
 void setData(String data)
          Sets the data attribute of the ProcessingInstructionImpl object
 void setTarget(String target)
          Sets the target attribute of the ProcessingInstructionImpl object
 String toString()
          Description of the Method
 
Methods inherited from class org.exist.dom.StoredNode
accept, accept, deserialize, equals, getDocId, getDocument, getInternalAddress, getNextSibling, getNodeId, getNodeType, getOwnerDocument, getParentNode, getPath, getPath, getPreviousSibling, getQName, isDirty, release, setDirty, setInternalAddress, setNodeId, setOwnerDocument, toString
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, cloneNode, compareDocumentPosition, getAttributes, getAttributesCount, getChildNodes, getFeature, getLastChild, getNodeValue, getPrefix, getTextContent, getUserData, hasAttributes, insertAfter, insertAfter, insertBefore, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeChild, replaceChild, replaceChild, setAttributes, setNodeName, setNodeValue, setPrefix, setTextContent, setUserData, supports, updateChild, updateChild
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFeature, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Field Detail

LENGTH_TARGET_DATA

public static final int LENGTH_TARGET_DATA
See Also:
Constant Field Values
Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl()

ProcessingInstructionImpl

public ProcessingInstructionImpl(NodeId nodeId,
                                 String target,
                                 String data)

ProcessingInstructionImpl

public ProcessingInstructionImpl(String target,
                                 String data)
Method Detail

clear

public void clear()
Description copied from class: StoredNode
Reset this object to its initial state. Required by the parser to be able to reuse node objects.

Overrides:
clear in class StoredNode

getTarget

public String getTarget()
Gets the target attribute of the ProcessingInstructionImpl object

Specified by:
getTarget in interface ProcessingInstruction
Returns:
The target value

setTarget

public void setTarget(String target)
Sets the target attribute of the ProcessingInstructionImpl object

Parameters:
target - The new target value

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node
Overrides:
getNodeName in class NodeImpl
See Also:
Node.getNodeName()

getLocalName

public String getLocalName()
Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class NodeImpl
See Also:
Node.getLocalName()

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface Node
Overrides:
getNamespaceURI in class NodeImpl
See Also:
Node.getNamespaceURI()

getData

public String getData()
Gets the data attribute of the ProcessingInstructionImpl object

Specified by:
getData in interface ProcessingInstruction
Returns:
The data value

setData

public void setData(String data)
Sets the data attribute of the ProcessingInstructionImpl object

Specified by:
setData in interface ProcessingInstruction
Parameters:
data - The new data value

getBaseURI

public String getBaseURI()
? @see org.w3c.dom.Node#getBaseURI()

Specified by:
getBaseURI in interface Node
Overrides:
getBaseURI in class NodeImpl

toString

public String toString()
Description of the Method

Overrides:
toString in class StoredNode
Returns:
Description of the Return Value

serialize

public byte[] serialize()
Overrides:
serialize in class StoredNode

deserialize

public static StoredNode deserialize(byte[] data,
                                     int start,
                                     int len,
                                     DocumentImpl doc,
                                     boolean pooled)

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node
Overrides:
hasChildNodes in class NodeImpl
See Also:
Node.hasChildNodes()

getChildCount

public int getChildCount()
Overrides:
getChildCount in class NodeImpl

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Overrides:
getFirstChild in class NodeImpl
See Also:
Node.getFirstChild()


Copyright (C) Wolfgang Meier. All rights reserved.