public class AttributeMap extends Object implements NamedNodeMap
Modifier and Type | Method and Description |
---|---|
protected int |
addItem(Node arg) |
protected Vector |
cloneMap(Vector list)
NON-DOM: copy content of this map into the specified vector
|
protected int |
findNamePoint(String name,
int start)
From org.apache.xerces.dom.NamedNodeMapImpl
Subroutine: Locates the named item, or the point at which said item should be added.
|
protected int |
findNamePoint(String namespaceURI,
String name)
This findNamePoint is for DOM Level 2 Namespaces.
|
protected Object |
getItem(int index) |
int |
getLength()
From org.apache.xerces.dom.NamedNodeMapImpl
|
Node |
getNamedItem(String name) |
protected int |
getNamedItemIndex(String namespaceURI,
String localName) |
Node |
getNamedItemNS(String namespaceURI,
String localName)
Introduced in DOM Level 2.
|
Node |
item(int index)
From org.apache.xerces.dom.NamedNodeMapImpl
|
protected boolean |
precedes(Node a,
Node b) |
void |
removeAll()
NON-DOM remove all elements from this map.
|
protected void |
removeItem(int index)
NON-DOM: Remove attribute at specified index.
|
Node |
removeNamedItem(String name) |
Node |
removeNamedItemNS(String namespaceURI,
String name) |
Node |
setNamedItem(Node attribute)
Almost a copy of the Xerces impl.
|
Node |
setNamedItemNS(Node attribute) |
public Node getNamedItem(String name)
getNamedItem
in interface NamedNodeMap
public Node item(int index)
item
in interface NamedNodeMap
public int getLength()
getLength
in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS
in interface NamedNodeMap
namespaceURI
- The namespace URI of the node to retrieve. When it is null or an empty
string, this method behaves like getNamedItem.localName
- The local name of the node to retrieve.public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException
public Node removeNamedItemNS(String namespaceURI, String name) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException
public Node setNamedItem(Node attribute) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node attribute) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
protected int findNamePoint(String name, int start)
name
- Name of a node to look up.protected int findNamePoint(String namespaceURI, String name)
protected void removeItem(int index)
protected Object getItem(int index)
protected int addItem(Node arg)
protected Vector cloneMap(Vector list)
list
- Vector to copy information into.public void removeAll()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.