Package com.marklogic.dom
Class AttributeNodeMapImpl
- java.lang.Object
-
- com.marklogic.dom.AttributeNodeMapImpl
-
- All Implemented Interfaces:
NamedNodeMap
public class AttributeNodeMapImpl extends Object implements NamedNodeMap
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementImplelementstatic org.apache.commons.logging.LogLOGprotected Attr[]nsDecl
-
Constructor Summary
Constructors Constructor Description AttributeNodeMapImpl(ElementImpl element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentgetClonedOwnerDoc()intgetLength()NodegetNamedItem(String name)NodegetNamedItemNS(String namespaceURI, String localName)protected intgetNumAttr()Nodeitem(int index)Returns the indexth item in the map.protected Nodeitem(int index, Document ownerDoc)NoderemoveNamedItem(String name)Unsupported.NoderemoveNamedItemNS(String namespaceURI, String localName)Unsupported.NodesetNamedItem(Node arg)Unsupported.NodesetNamedItemNS(Node arg)Unsupported.
-
-
-
Field Detail
-
LOG
public static final org.apache.commons.logging.Log LOG
-
element
protected ElementImpl element
-
nsDecl
protected Attr[] nsDecl
-
-
Constructor Detail
-
AttributeNodeMapImpl
public AttributeNodeMapImpl(ElementImpl element)
-
-
Method Detail
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceNamedNodeMap
-
getNumAttr
protected int getNumAttr()
-
getNamedItem
public Node getNamedItem(String name)
- Specified by:
getNamedItemin interfaceNamedNodeMap
-
getNamedItemNS
public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException
- Specified by:
getNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
getClonedOwnerDoc
protected Document getClonedOwnerDoc() throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
item
public Node item(int index)
Returns the indexth item in the map. If index is greater than or equal to the number of nodes in this map, this returns null; if the item returned is a namespace declaration, it is represented as an attribute whose owner document is a document containing the attribute only.- Specified by:
itemin interfaceNamedNodeMap
-
item
protected Node item(int index, Document ownerDoc) throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
removeNamedItem
public Node removeNamedItem(String name) throws DOMException
Unsupported.- Specified by:
removeNamedItemin interfaceNamedNodeMap- Throws:
DOMException
-
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException
Unsupported.- Specified by:
removeNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
setNamedItem
public Node setNamedItem(Node arg) throws DOMException
Unsupported.- Specified by:
setNamedItemin interfaceNamedNodeMap- Throws:
DOMException
-
setNamedItemNS
public Node setNamedItemNS(Node arg) throws DOMException
Unsupported.- Specified by:
setNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
-