org.exist.memtree
Class ProcessingInstructionImpl

java.lang.Object
  extended by org.exist.memtree.NodeImpl
      extended by org.exist.memtree.ProcessingInstructionImpl
All Implemented Interfaces:
Comparable, QNameable, Item, NodeValue, Sequence, Node, ProcessingInstruction

public class ProcessingInstructionImpl
extends NodeImpl
implements ProcessingInstruction


Field Summary
 
Fields inherited from class org.exist.memtree.NodeImpl
NAMESPACE_NODE, REFERENCE_NODE
 
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
 
Fields inherited from interface org.exist.xquery.value.NodeValue
IN_MEMORY_NODE, PERSISTENT_NODE
 
Fields inherited from interface org.exist.xquery.value.Sequence
EMPTY_SEQUENCE
 
Constructor Summary
ProcessingInstructionImpl(DocumentImpl doc, int nodeNumber)
           
 
Method Summary
 AtomicValue atomize()
           
 String getBaseURI()
          ? @see org.w3c.dom.Node#getBaseURI()
 String getData()
           
 Node getFirstChild()
           
 int getItemType()
          Return the primary type to which all items in this sequence belong.
 String getLocalName()
           
 String getNamespaceURI()
           
 String getStringValue()
          Return the string value of this item (see the definition of string value in XPath).
 String getTarget()
           
 void setData(String arg0)
           
 String toString()
           
 
Methods inherited from class org.exist.memtree.NodeImpl
add, addAll, addContextNode, after, appendChild, before, clearContext, cloneNode, compareDocumentPosition, compareTo, conversionPreference, convertTo, copyTo, deepCopy, effectiveBooleanValue, equals, equals, expand, getAttributes, getCardinality, getChildNodes, getCollectionIterator, getDocument, getDocumentSet, getFeature, getImplementationType, getItemCount, getLastChild, getLength, getNextSibling, getNode, getNodeName, getNodeNumber, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getQName, getState, getTextContent, getType, getUserData, hasAttributes, hasChanged, hasChildNodes, hasMany, hasOne, insertBefore, isCacheable, isCached, isDefaultNamespace, isEmpty, isEqualNode, isPersistentSet, isSameNode, isSupported, itemAt, iterate, lookupNamespaceURI, lookupPrefix, nodeMoved, normalize, removeChild, removeDuplicates, replaceChild, setIsCached, setNodeValue, setPrefix, setSelfAsContext, setTextContent, setUserData, streamTo, toJavaObject, toNodeSet, toSAX, toSequence, unorderedIterator
 
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, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

ProcessingInstructionImpl

public ProcessingInstructionImpl(DocumentImpl doc,
                                 int nodeNumber)
Parameters:
doc -
nodeNumber -
Method Detail

getTarget

public String getTarget()
Specified by:
getTarget in interface ProcessingInstruction

getStringValue

public String getStringValue()
Description copied from interface: Item
Return the string value of this item (see the definition of string value in XPath).

Specified by:
getStringValue in interface Item
Specified by:
getStringValue in interface Sequence
Overrides:
getStringValue in class NodeImpl

getLocalName

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

getNamespaceURI

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

getData

public String getData()
Specified by:
getData in interface ProcessingInstruction

atomize

public AtomicValue atomize()
                    throws XPathException
Specified by:
atomize in interface Item
Overrides:
atomize in class NodeImpl
Throws:
XPathException

setData

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

getBaseURI

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

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

getFirstChild

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

getItemType

public int getItemType()
Description copied from interface: Sequence
Return the primary type to which all items in this sequence belong. This is Type.NODE for node sets, Type.ITEM for other sequences with mixed items.

Specified by:
getItemType in interface Sequence
Overrides:
getItemType in class NodeImpl
Returns:
the primary type of the items in this sequence.

toString

public String toString()
Overrides:
toString in class Object


Copyright (C) Wolfgang Meier. All rights reserved.