org.exist.memtree
Class NamespaceNode
java.lang.Object
org.exist.memtree.NodeImpl
org.exist.memtree.NamespaceNode
- All Implemented Interfaces:
- Comparable, QNameable, Item, NodeValue, Sequence, Attr, Node
public class NamespaceNode
- extends NodeImpl
- implements Attr, QNameable
A dynamically constructed namespace node. Used to track namespace
declarations in elements. Implements Attr, so it can be treated as a normal
attribute.
- Author:
- wolf
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, atomize, before, clearContext, cloneNode, compareDocumentPosition, compareTo, conversionPreference, convertTo, copyTo, deepCopy, effectiveBooleanValue, equals, equals, expand, getAttributes, getBaseURI, getCardinality, getChildNodes, getCollectionIterator, getDocument, getDocumentSet, getFeature, getFirstChild, getImplementationType, getItemCount, getLastChild, getLength, getNextSibling, getNode, getNodeId, getNodeNumber, getOwnerDocument, getParentNode, getPreviousSibling, getState, getStringValue, getTextContent, getUserData, hasAttributes, hasChanged, hasChildNodes, hasMany, hasOne, insertBefore, isCacheable, isCached, isDefaultNamespace, isEmpty, isEqualNode, isPersistentSet, isSameNode, isSupported, itemAt, iterate, lookupNamespaceURI, lookupPrefix, nodeMoved, normalize, removeChild, removeDuplicates, replaceChild, selectAncestors, selectAttributes, selectChildren, selectDescendantAttributes, selectDescendants, selectFollowing, selectFollowingSiblings, selectParentNode, selectPreceding, selectPrecedingSiblings, setIsCached, setNodeValue, setPrefix, setSelfAsContext, setTextContent, setUserData, streamTo, toJavaObject, toMemNodeSet, toNodeSet, toSAX, toSequence, unorderedIterator |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
NamespaceNode
public NamespaceNode(DocumentImpl doc,
int nodeNumber)
- Parameters:
doc
- nodeNumber
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
- Overrides:
getNodeType
in class NodeImpl
getType
public int getType()
- Description copied from interface:
Item
- Return the type of this item according to the type constants defined in class
Type
.
- Specified by:
getType
in interface Item
- Overrides:
getType
in class NodeImpl
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interface Node
- Overrides:
getPrefix
in class NodeImpl
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interface Node
- Overrides:
getNamespaceURI
in class NodeImpl
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified
in interface Attr
getQName
public QName getQName()
- Specified by:
getQName
in interface QNameable
- Overrides:
getQName
in class NodeImpl
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interface Node
- Overrides:
getLocalName
in class NodeImpl
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
- Overrides:
getNodeName
in class NodeImpl
getName
public String getName()
- Specified by:
getName
in interface Attr
getValue
public String getValue()
- Specified by:
getValue
in interface Attr
setValue
public void setValue(String value)
throws DOMException
- Specified by:
setValue
in interface Attr
- Throws:
DOMException
getNodeValue
public String getNodeValue()
throws DOMException
- Specified by:
getNodeValue
in interface Node
- Overrides:
getNodeValue
in class NodeImpl
- Throws:
DOMException
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElement
in interface Attr
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- ? @see org.w3c.dom.Attr#getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interface Attr
isId
public boolean isId()
- ? @see org.w3c.dom.Attr#isId()
- Specified by:
isId
in interface Attr
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.