Package com.marklogic.dom
Class AttrImpl
- java.lang.Object
-
- com.marklogic.dom.NodeImpl
-
- com.marklogic.dom.AttrImpl
-
public class AttrImpl extends NodeImpl implements Attr
A read-only W3C DOM Node implementation of MarkLogic's internal representation of an element attribute as stored in the expanded tree cache of a forest on disk.This class is effectively read-only: Setters and update methods inherited from
org.w3c.Nodeare not supported and will raise an exception if called.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.LogLOG-
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
-
-
Constructor Summary
Constructors Constructor Description AttrImpl(ExpandedTree tree, int node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodecloneNode(Document doc, boolean deep)Given a owner document, clone the nodeStringgetLocalName()StringgetName()StringgetNamespaceURI()NodegetNextSibling()protected intgetNodeID()StringgetNodeName()StringgetNodeValue()ElementgetOwnerElement()OwnerElement for a namespace attribute is null.NodegetParentNode()StringgetPrefix()protected intgetPrefixID(int uriAtom)NodegetPreviousSibling()TypeInfogetSchemaTypeInfo()Unsupported.booleangetSpecified()StringgetValue()booleanisId()Unsupported.StringlookupNamespaceURI(String prefix)StringlookupPrefix(String namespaceURI)voidsetValue(String value)Unsupported.-
Methods inherited from class com.marklogic.dom.NodeImpl
appendChild, builtinNSPrefix, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getElementsByTagNameNSOrNodeName, getExpandedTree, getFeature, getFirstChild, getLastChild, getNextChild, getNodeType, getNSNodeID, getNSNodeID, getOwnerDocument, getPreviousChild, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, nextNSNodeID, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNodeType, getOwnerDocument, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
AttrImpl
public AttrImpl(ExpandedTree tree, int node)
-
-
Method Detail
-
cloneNode
protected Node cloneNode(Document doc, boolean deep)
Description copied from class:NodeImplGiven a owner document, clone the node
-
getNodeID
protected int getNodeID()
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceNode- Overrides:
getLocalNamein classNodeImpl
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceNode- Overrides:
getNamespaceURIin classNodeImpl
-
getNodeName
public String getNodeName()
- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl
-
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSiblingin interfaceNode- Overrides:
getNextSiblingin classNodeImpl
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode- Overrides:
getParentNodein classNodeImpl
-
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSiblingin interfaceNode- Overrides:
getPreviousSiblingin classNodeImpl
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValuein interfaceNode- Overrides:
getNodeValuein classNodeImpl
-
getOwnerElement
public Element getOwnerElement()
OwnerElement for a namespace attribute is null.- Specified by:
getOwnerElementin interfaceAttr
-
getPrefixID
protected int getPrefixID(int uriAtom)
- Overrides:
getPrefixIDin classNodeImpl
-
getPrefix
public String getPrefix()
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
Unsupported.- Specified by:
getSchemaTypeInfoin interfaceAttr
-
getSpecified
public boolean getSpecified()
- Specified by:
getSpecifiedin interfaceAttr
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode- Overrides:
lookupNamespaceURIin classNodeImpl
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode- Overrides:
lookupPrefixin classNodeImpl
-
setValue
public void setValue(String value) throws DOMException
Unsupported.- Specified by:
setValuein interfaceAttr- Throws:
DOMException
-
-