Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 2-17 summarizes the methods available through NamedNodeMapRef
interface.
Table 2-17 Summary of NamedNodeMapRef Methods; Dom Package
Function | Summary |
---|---|
|
Constructor |
|
Get map's length |
|
Get item given its name |
|
Get item given its namespace URI and local name. |
|
Get item given its index. |
|
Remove an item given its name. |
|
Remove the item from the map. |
|
Add new item to the map. |
|
Set named item to the map. |
|
Default destructor. |
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
Get the length of the map.
Syntax
ub4 getLength() const;
Returns
(ub4)
map's length
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
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
Get item, given its index.
Syntax
Node* item( ub4 index) const;
Parameter | Description |
---|---|
index |
index of item |
Returns
(Node*)
pointer to the item
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
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
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
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
Default destructor.
Syntax
~NamedNodeMapRef();