Skip Headers
Oracle® Database XML C++ API Reference
11g Release 1 (11.1)

B28389-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

NamedNodeMapRef Interface

Table 2-17 summarizes the methods available through NamedNodeMapRef interface.

Table 2-17 Summary of NamedNodeMapRef Methods; Dom Package

Function Summary

NamedNodeMapRef()

Constructor

getLength()

Get map's length

getNamedItem()

Get item given its name

getNamedItemNS()

Get item given its namespace URI and local name.

item()

Get item given its index.

removeNamedItem()

Remove an item given its name.

removeNamedItemNS()

Remove the item from the map.

setNamedItem()

Add new item to the map.

setNamedItemNS()

Set named item to the map.

~NamedNodeMapRef()

Default destructor.



NamedNodeMapRef()

Class constructor.

Syntax Description
NamedNodeMapRef(
   const NodeRef< Node>& node_ref,
   NamedNodeMap< Node>* mptr);
Used to create references to a given NamedNodeMap node.
NamedNodeMapRef(
   const NamedNodeMapRef< Node>& mref);
Copy constructor.

Parameter Description
node_ref
reference to provide the context
nptr
referenced node

Returns

(NamedNodeMapRef) Node reference object


getLength()

Get the length of the map.

Syntax

ub4 getLength() const;

Returns

(ub4) map's length


getNamedItem()

Get the name of the item, given its name.

Syntax

Node* getNamedItem( oratext* name) const;
Parameter Description
name
name of item

Returns

(Node*) pointer to the item


getNamedItemNS()

Get the name of the item, given its namespace URI and local name.

Syntax

Node* getNamedItemNS( 
   oratext* namespaceURI,
   oratext* localName) const;
Parameter Description
namespaceURI
namespace URI of item
localName
local name of item

Returns

(Node*) pointer to the item


item()

Get item, given its index.

Syntax

Node* item( 
   ub4 index) const;
Parameter Description
index
index of item

Returns

(Node*) pointer to the item


removeNamedItem()

Remove the item from the map, given its name.

Syntax

Node* removeNamedItem( 
   oratext* name) 
throw (DOMException);
Parameter Description
name
name of item

Returns

(Node*) pointer to the removed item


removeNamedItemNS()

Remove the item from the map, given its namespace URI and local name.

Syntax

Node* removeNamedItemNS( 
   oratext* namespaceURI,
   oratext* localName)
throw (DOMException);
Parameter Description
namespaceURI
namespace URI of item
localName
local name of item

Returns

(Node*) pointer to the removed item


setNamedItem()

Add new item to the map.

Syntax

Node* setNamedItem(
   NodeRef< Node>& newItem)
throw (DOMException);
Parameter Description
newItem
item set to the map

Returns

(Node*) pointer to new item


setNamedItemNS()

Set named item, which is namespace aware, to the map.

Syntax

Node* setNamedItemNS(
   NodeRef< Node>& newItem)
throw (DOMException);
Parameter Description
newItem
item set to the map

Returns

(Node*) pointer to the item


~NamedNodeMapRef()

Default destructor.

Syntax

~NamedNodeMapRef();