|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NamedNodeMapImpl
Most of the implementation is taken from org.apache.xerces.dom.NamedNodeMapImpl
Field Summary | |
protected static short |
CHANGED
|
protected short |
flags
|
protected static short |
HASDEFAULTS
|
protected static short |
READONLY
|
Constructor Summary | |
protected |
NamedNodeMapImpl(ParentNode ownerNode)
|
Method Summary | |
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)
|
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)
Introduced in DOM Level 2. |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node arg)
Adds a node using its nodeName attribute. |
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node arg)
Adds a node using its namespaceURI and localName. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected short flags
protected static final short READONLY
protected static final short CHANGED
protected static final short HASDEFAULTS
Constructor Detail |
protected NamedNodeMapImpl(ParentNode ownerNode)
Method Detail |
public org.w3c.dom.Node getNamedItem(java.lang.String name)
getNamedItem
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NamedNodeMap
public int getLength()
getLength
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMException
removeNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
getNamedItemNS
in interface org.w3c.dom.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 org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
setNamedItemNS
in interface org.w3c.dom.NamedNodeMap
arg
- A node to store in a named node map. The node will later be
accessible using the value of the namespaceURI and localName
attribute of the node. If a node with those namespace URI and
local name is already present in the map, it is replaced by
the new one.
org.w3c.dom.DOMException
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String name) throws org.w3c.dom.DOMException
removeNamedItemNS
in interface org.w3c.dom.NamedNodeMap
namespaceURI
- The namespace URI of the node to remove. When it is null or an
empty string, this method behaves like removeNamedItem.name
- The local name of the node to remove.
NOT_FOUND_ERR:
- Raised if there is no node named name in the map.
org.w3c.dom.DOMException
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
setNamedItem
in interface org.w3c.dom.NamedNodeMap
arg
- A node to store in a named node map. The node will later be
accessible using the value of the namespaceURI and localName
attribute of the node. If a node with those namespace URI and
local name is already present in the map, it is replaced by
the new one.
org.w3c.dom.DOMException
- The exception description.NamedNodeMap.setNamedItem(org.w3c.dom.Node)
protected 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |