org.exist.dom
Class ProcessingInstructionImpl

java.lang.Object
  extended byorg.exist.dom.NodeImpl
      extended byorg.exist.dom.ProcessingInstructionImpl
All Implemented Interfaces:
org.w3c.dom.Node, org.w3c.dom.ProcessingInstruction

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

Description of the Class

Author:
Wolfgang Meier

Field Summary
protected  java.lang.String data
           
protected  java.lang.String target
           
 
Fields inherited from class org.exist.dom.NodeImpl
attributes, gid, internalAddress, nodeName, nodeNameRef, nodeType, ownerDocument
 
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()
          Constructor for the ProcessingInstructionImpl object
ProcessingInstructionImpl(long gid)
          Constructor for the ProcessingInstructionImpl object
ProcessingInstructionImpl(long gid, java.lang.String target, java.lang.String data)
          Constructor for the ProcessingInstructionImpl object
 
Method Summary
static NodeImpl deserialize(byte[] data, int start, int len)
          Description of the Method
 java.lang.String getData()
          Gets the data attribute of the ProcessingInstructionImpl object
 java.lang.String getTarget()
          Gets the target attribute of the ProcessingInstructionImpl object
 byte[] serialize()
          Description of the Method
 void setData(java.lang.String data)
          Sets the data attribute of the ProcessingInstructionImpl object
 void setTarget(java.lang.String target)
          Sets the target attribute of the ProcessingInstructionImpl object
 void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first, java.util.ArrayList prefixes)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, clear, cloneNode, deserialize, equals, firstChildID, getAttributes, getAttributesCount, getBroker, getChildCount, getChildNodes, getFirstChild, getGID, getInternalAddress, getLastChild, getLastNode, getLastNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNameRef, getNodeType, getNodeValue, getOwnerDocument, getParentGID, getParentNode, getPath, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertAfter, insertAfter, insertBefore, insertBefore, isSupported, lastChildID, normalize, removeChild, replaceChild, setAttributes, setChildCount, setGID, setInternalAddress, setNodeName, setNodeNameRef, setNodeValue, setOwnerDocument, setPrefix, supports, toSAX, toString, updateChild
 
Methods inherited from class java.lang.Object
clone, 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, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Field Detail

target

protected java.lang.String target

data

protected java.lang.String data
Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl()
Constructor for the ProcessingInstructionImpl object


ProcessingInstructionImpl

public ProcessingInstructionImpl(long gid)
Constructor for the ProcessingInstructionImpl object

Parameters:
gid - Description of the Parameter

ProcessingInstructionImpl

public ProcessingInstructionImpl(long gid,
                                 java.lang.String target,
                                 java.lang.String data)
Constructor for the ProcessingInstructionImpl object

Parameters:
gid - Description of the Parameter
target - Description of the Parameter
data - Description of the Parameter
Method Detail

getTarget

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

Specified by:
getTarget in interface org.w3c.dom.ProcessingInstruction
Returns:
The target value

setTarget

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

Parameters:
target - The new target value

getData

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

Specified by:
getData in interface org.w3c.dom.ProcessingInstruction
Returns:
The data value

setData

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

Specified by:
setData in interface org.w3c.dom.ProcessingInstruction
Parameters:
data - The new data value

toString

public java.lang.String toString()
Description of the Method

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

toSAX

public void toSAX(org.xml.sax.ContentHandler contentHandler,
                  org.xml.sax.ext.LexicalHandler lexicalHandler,
                  boolean first,
                  java.util.ArrayList prefixes)
           throws org.xml.sax.SAXException
Description of the Method

Overrides:
toSAX in class NodeImpl
Parameters:
contentHandler - Description of the Parameter
lexicalHandler - Description of the Parameter
first - Description of the Parameter
prefixes - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

serialize

public byte[] serialize()
Description of the Method

Overrides:
serialize in class NodeImpl
Returns:
Description of the Return Value

deserialize

public static NodeImpl deserialize(byte[] data,
                                   int start,
                                   int len)
Description of the Method

Parameters:
data - Description of the Parameter
Returns:
Description of the Return Value


Copyright (C) Wolfgang Meier. All rights reserved.