org.exist.memtree
Class CommentImpl
java.lang.Object
org.exist.memtree.NodeImpl
org.exist.memtree.CommentImpl
- All Implemented Interfaces:
- Comparable, QNameable, Item, NodeValue, Sequence, CharacterData, Comment, Node
public class CommentImpl
- extends NodeImpl
- implements Comment
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 |
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, getBaseURI, getCardinality, getChildNodes, getCollectionIterator, getDocument, getDocumentSet, getFeature, getImplementationType, getItemCount, getLastChild, 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 interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, 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 |
CommentImpl
public CommentImpl(DocumentImpl doc,
int nodeNumber)
- Parameters:
doc
- nodeNumber
-
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interface Node
- Overrides:
getFirstChild
in class NodeImpl
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()
throws DOMException
- Specified by:
getData
in interface CharacterData
- Throws:
DOMException
atomize
public AtomicValue atomize()
throws XPathException
- Specified by:
atomize
in interface Item
- Overrides:
atomize
in class NodeImpl
- Throws:
XPathException
getLength
public int getLength()
- Specified by:
getLength
in interface CharacterData
- Overrides:
getLength
in class NodeImpl
setData
public void setData(String arg0)
throws DOMException
- Specified by:
setData
in interface CharacterData
- Throws:
DOMException
substringData
public String substringData(int arg0,
int arg1)
throws DOMException
- Specified by:
substringData
in interface CharacterData
- Throws:
DOMException
appendData
public void appendData(String arg0)
throws DOMException
- Specified by:
appendData
in interface CharacterData
- Throws:
DOMException
insertData
public void insertData(int arg0,
String arg1)
throws DOMException
- Specified by:
insertData
in interface CharacterData
- Throws:
DOMException
deleteData
public void deleteData(int arg0,
int arg1)
throws DOMException
- Specified by:
deleteData
in interface CharacterData
- Throws:
DOMException
replaceData
public void replaceData(int arg0,
int arg1,
String arg2)
throws DOMException
- Specified by:
replaceData
in interface CharacterData
- Throws:
DOMException
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.