|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.NamedNodeMapWrapper
This class implements a wrapper for a NamedNodeMap. All the methods of the underlying document are called in a single thread.
Field Summary | |
protected DocumentWrapper |
documentWrapper
The associated document wrapper. |
protected NamedNodeMap |
namedNodeMap
The wrapped NamedNodeMap. |
Constructor Summary | |
NamedNodeMapWrapper(DocumentWrapper dw,
NamedNodeMap nnm)
Creates a new NamedNodeMapWrapper. |
Method Summary | |
int |
getLength()
DOM: Implements NamedNodeMap.getLength() . |
Node |
getNamedItem(java.lang.String name)
DOM: Implements NamedNodeMap.getNamedItem(String) . |
Node |
getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements NamedNodeMap.getNamedItemNS(String,String) . |
Node |
item(int index)
DOM: Implements NamedNodeMap.item(int) . |
Node |
removeNamedItem(java.lang.String name)
DOM: Implements NamedNodeMap.removeNamedItem(String) . |
Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements NamedNodeMap.removeNamedItemNS(String,String) . |
Node |
setNamedItem(Node arg)
DOM: Implements NamedNodeMap.setNamedItem(Node) . |
Node |
setNamedItemNS(Node arg)
DOM: Implements NamedNodeMap.setNamedItemNS(Node) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected DocumentWrapper documentWrapper
protected NamedNodeMap namedNodeMap
Constructor Detail |
public NamedNodeMapWrapper(DocumentWrapper dw, NamedNodeMap nnm)
Method Detail |
public Node getNamedItem(java.lang.String name)
NamedNodeMap.getNamedItem(String)
.getNamedItem
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
nameThe
- nodeName
of a node to retrieve.Node
(of any type) with the specified
nodeName
, or null
if it does not identify
any node in this map.public Node setNamedItem(Node arg) throws DOMException
NamedNodeMap.setNamedItem(Node)
.setNamedItem
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
argA
- node to store in this map. The node will later be
accessible using the value of its nodeName
attribute.Node
replaces an existing node the
replaced Node
is returned, otherwise null
is returned.DOMException
- WRONG_DOCUMENT_ERR: Raised if arg
was created from a
different document than the one that created this map.
arg
is an
Attr
that is already an attribute of another
Element
object. The DOM user must explicitly clone
Attr
nodes to re-use them in other elements.public Node removeNamedItem(java.lang.String name) throws DOMException
NamedNodeMap.removeNamedItem(String)
.removeNamedItem
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
nameThe
- nodeName
of the node to remove.DOMException
- NOT_FOUND_ERR: Raised if there is no node named name
in
this map.
public Node item(int index)
NamedNodeMap.item(int)
.item
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
indexIndex
- into this map.index
th position in the map, or
null
if that is not a valid index.public int getLength()
NamedNodeMap.getLength()
.getLength
in interface NamedNodeMap
public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
NamedNodeMap.getNamedItemNS(String,String)
.getNamedItemNS
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
namespaceURIThe
- namespace URI of the node to retrieve.localNameThe
- local name of the node to retrieve.Node
(of any type) with the specified local
name and namespace URI, or null
if they do not
identify any node in this map.public Node setNamedItemNS(Node arg) throws DOMException
NamedNodeMap.setNamedItemNS(Node)
.setNamedItemNS
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
argA
- node to store in this map. The node will later be
accessible using the value of its namespaceURI
and
localName
attributes.Node
replaces an existing node the
replaced Node
is returned, otherwise null
is returned.DOMException
- WRONG_DOCUMENT_ERR: Raised if arg
was created from a
different document than the one that created this map.
arg
is an
Attr
that is already an attribute of another
Element
object. The DOM user must explicitly clone
Attr
nodes to re-use them in other elements.public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException
NamedNodeMap.removeNamedItemNS(String,String)
.removeNamedItemNS
in interface NamedNodeMap
org.w3c.dom.NamedNodeMap
namespaceURIThe
- namespace URI of the node to remove.localNameThe
- local name of the node to remove.DOMException
- NOT_FOUND_ERR: Raised if there is no node with the specified
namespaceURI
and localName
in this map.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |