org.exist.memtree
Class AttributeImpl
java.lang.Object
org.exist.memtree.NodeImpl
org.exist.memtree.AttributeImpl
- All Implemented Interfaces:
- Comparable, QNameable, Item, NodeValue, Sequence, Attr, Node
public class AttributeImpl
- extends NodeImpl
- implements Attr, QNameable
| 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, getImplementationType, getItemCount, getLastChild, getLength, getNextSibling, getNode, getNodeNumber, getOwnerDocument, getPreviousSibling, getState, 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, selectDescendants, selectFollowing, selectFollowingSiblings, selectPreceding, selectPrecedingSiblings, setIsCached, 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, getLastChild, getNextSibling, getOwnerDocument, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserData |
ATTR_CDATA_TYPE
public static final int ATTR_CDATA_TYPE
- See Also:
- Constant Field Values
ATTR_ID_TYPE
public static final int ATTR_ID_TYPE
- See Also:
- Constant Field Values
ATTR_IDREF_TYPE
public static final int ATTR_IDREF_TYPE
- See Also:
- Constant Field Values
ATTR_IDREFS_TYPE
public static final int ATTR_IDREFS_TYPE
- See Also:
- Constant Field Values
AttributeImpl
public AttributeImpl(DocumentImpl doc,
int nodeNumber)
- Parameters:
doc - nodeNumber -
getNodeId
public NodeId getNodeId()
- Overrides:
getNodeId in class NodeImpl
getQName
public QName getQName()
- Specified by:
getQName in interface QNameable- Overrides:
getQName in class NodeImpl
getName
public String getName()
- Specified by:
getName in interface Attr
getNodeName
public String getNodeName()
- Specified by:
getNodeName in interface Node- Overrides:
getNodeName in class NodeImpl
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
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
getPrefix
public String getPrefix()
- Specified by:
getPrefix in interface Node- Overrides:
getPrefix in class NodeImpl
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild in interface Node- Overrides:
getFirstChild in class NodeImpl
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified in interface Attr
getValue
public String getValue()
- Specified by:
getValue in interface Attr
getNodeValue
public String getNodeValue()
throws DOMException
- Specified by:
getNodeValue in interface Node- Overrides:
getNodeValue in class NodeImpl
- Throws:
DOMException
getStringValue
public String getStringValue()
throws DOMException
- 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
- Throws:
DOMException
setNodeValue
public void setNodeValue(String arg0)
throws DOMException
- Specified by:
setNodeValue in interface Node- Overrides:
setNodeValue in class NodeImpl
- Throws:
DOMException
setValue
public void setValue(String arg0)
throws DOMException
- Specified by:
setValue in interface Attr
- Throws:
DOMException
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElement in interface Attr
selectDescendantAttributes
public void selectDescendantAttributes(NodeTest test,
Sequence result)
throws XPathException
- Overrides:
selectDescendantAttributes in class NodeImpl
- Throws:
XPathException
getParentNode
public Node getParentNode()
- Specified by:
getParentNode in interface Node- Overrides:
getParentNode in class NodeImpl
selectParentNode
public Node selectParentNode()
- Overrides:
selectParentNode in class NodeImpl
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.