com.plumtree.openfoundation.xml.dom
Class XPNamedNodeMap

java.lang.Object
  extended bycom.plumtree.openfoundation.xml.dom.XPNamedNodeMap

public class XPNamedNodeMap
extends java.lang.Object

The XPNamedNodeMap class is a wrapper for objects implementing org.w3c.dom.NamedNodeMap interface. Please refer to NamedNodeMap (Java 2 Platform SE v1.4.2) for detail information.

Author:
djc

Constructor Summary
protected XPNamedNodeMap(org.w3c.dom.NamedNodeMap currMap)
          Creates a new XPNamedNodeMap object.
 
Method Summary
 int GetLength()
          The number of nodes in this map.
 XPNode GetNamedItem(java.lang.String name)
          Retrieves a node specified by name.
 XPNode GetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Retrieves a node specified by local name and namespace URI.
 org.w3c.dom.NamedNodeMap GetUnderlyingObject()
          Retrieve the underlying NamedNodeMap object.
 XPNode Item(int index)
          Returns the indexth item in the map.
 XPNode RemoveNamedItem(java.lang.String name)
          Removes a node specified by name.
 XPNode RemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
          Adds a node using its namespaceURI and localName.
 XPNode SetNamedItem(XPNode arg)
          Adds a node using its nodeName attribute.
 XPNode SetNamedItemNS(XPNode 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
 

Constructor Detail

XPNamedNodeMap

protected XPNamedNodeMap(org.w3c.dom.NamedNodeMap currMap)
Creates a new XPNamedNodeMap object.

Parameters:
currMap - - underlying map obj
Method Detail

GetLength

public int GetLength()
The number of nodes in this map.

Returns:
number of nodes in the map

GetNamedItem

public XPNode GetNamedItem(java.lang.String name)
Retrieves a node specified by name.

Parameters:
name - - name of node
Returns:
A XPNode specified by name.

GetNamedItemNS

public XPNode GetNamedItemNS(java.lang.String namespaceURI,
                             java.lang.String localName)
Retrieves a node specified by local name and namespace URI.

Parameters:
namespaceURI - - namespace of node
localName - - name of node
Returns:
find the node with that name/namespace

GetUnderlyingObject

public org.w3c.dom.NamedNodeMap GetUnderlyingObject()
Retrieve the underlying NamedNodeMap object.

Returns:
the underlying node map

Item

public XPNode Item(int index)
Returns the indexth item in the map.

Parameters:
index - Index into the map.
Returns:
the node at that index

RemoveNamedItem

public XPNode RemoveNamedItem(java.lang.String name)
Removes a node specified by name.

Parameters:
name - - name of node
Returns:
the node that was removed

RemoveNamedItemNS

public XPNode RemoveNamedItemNS(java.lang.String namespaceURI,
                                java.lang.String localName)
Adds a node using its namespaceURI and localName.

Parameters:
namespaceURI - - namespace of node
localName - - name of node
Returns:
the node that was removed

SetNamedItem

public XPNode SetNamedItem(XPNode arg)
Adds a node using its nodeName attribute.

Parameters:
arg - - node to be set
Returns:
the node that was set

SetNamedItemNS

public XPNode SetNamedItemNS(XPNode arg)
Adds a node using its namespaceURI and localName.

Parameters:
arg - - node to be set
Returns:
the node was that set catch


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.