public class AttributeMap
extends java.lang.Object
implements org.w3c.dom.NamedNodeMap
| Modifier and Type | Field and Description |
|---|---|
private java.util.Vector |
nodes |
private ElementImpl |
ownerNode |
| Constructor and Description |
|---|
AttributeMap(ElementImpl ownerNode) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addItem(org.w3c.dom.Node arg) |
protected java.util.Vector |
cloneMap(java.util.Vector list)
NON-DOM: copy content of this map into the specified vector
|
protected int |
findNamePoint(java.lang.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(java.lang.String namespaceURI,
java.lang.String name)
This findNamePoint is for DOM Level 2 Namespaces.
|
protected java.lang.Object |
getItem(int index) |
int |
getLength()
From org.apache.xerces.dom.NamedNodeMapImpl
|
org.w3c.dom.Node |
getNamedItem(java.lang.String name) |
protected int |
getNamedItemIndex(java.lang.String namespaceURI,
java.lang.String localName) |
org.w3c.dom.Node |
getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Introduced in DOM Level 2.
|
org.w3c.dom.Node |
item(int index)
From org.apache.xerces.dom.NamedNodeMapImpl
|
protected boolean |
precedes(org.w3c.dom.Node a,
org.w3c.dom.Node b) |
(package private) void |
remove(AttrImpl attr,
boolean useDomSemantics) |
void |
removeAll()
NON-DOM remove all elements from this map.
|
protected void |
removeItem(int index)
NON-DOM: Remove attribute at specified index.
|
org.w3c.dom.Node |
removeNamedItem(java.lang.String name) |
org.w3c.dom.Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name) |
(package private) org.w3c.dom.Node |
setAttribute(org.w3c.dom.Node attribute,
boolean useDomSemantics)
Almost a copy of the Xerces impl.
|
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node attribute)
Almost a copy of the Xerces impl.
|
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node attribute) |
private java.util.Vector nodes
private ElementImpl ownerNode
AttributeMap(ElementImpl ownerNode)
public org.w3c.dom.Node getNamedItem(java.lang.String name)
getNamedItem in interface org.w3c.dom.NamedNodeMappublic org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NamedNodeMappublic int getLength()
getLength in interface org.w3c.dom.NamedNodeMappublic org.w3c.dom.Node getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
getNamedItemNS in interface org.w3c.dom.NamedNodeMapnamespaceURI - 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 org.w3c.dom.Node removeNamedItem(java.lang.String name)
throws org.w3c.dom.DOMException
removeNamedItem in interface org.w3c.dom.NamedNodeMaporg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name)
throws org.w3c.dom.DOMException
removeNamedItemNS in interface org.w3c.dom.NamedNodeMaporg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node setNamedItem(org.w3c.dom.Node attribute)
throws org.w3c.dom.DOMException
setNamedItem in interface org.w3c.dom.NamedNodeMaporg.w3c.dom.DOMExceptionpublic org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node attribute)
throws org.w3c.dom.DOMException
setNamedItemNS in interface org.w3c.dom.NamedNodeMaporg.w3c.dom.DOMExceptionorg.w3c.dom.Node setAttribute(org.w3c.dom.Node attribute,
boolean useDomSemantics)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionprotected int findNamePoint(java.lang.String name,
int start)
name - Name of a node to look up.protected int findNamePoint(java.lang.String namespaceURI,
java.lang.String name)
protected boolean precedes(org.w3c.dom.Node a,
org.w3c.dom.Node b)
protected void removeItem(int index)
protected java.lang.Object getItem(int index)
protected int addItem(org.w3c.dom.Node arg)
protected java.util.Vector cloneMap(java.util.Vector list)
list - Vector to copy information into.protected int getNamedItemIndex(java.lang.String namespaceURI,
java.lang.String localName)
public void removeAll()
void remove(AttrImpl attr, boolean useDomSemantics)