Xalan-C++ API Reference  1.12.0
Public Member Functions | Protected Member Functions | List of all members
xalanc::XalanNamedNodeMap Class Referenceabstract

#include <xalanc/XalanDOM/XalanNamedNodeMap.hpp>

Inheritance diagram for xalanc::XalanNamedNodeMap:
[legend]

Public Member Functions

 XalanNamedNodeMap ()
 
virtual ~XalanNamedNodeMap ()
 
virtual XalanNodeitem (XalanSize_t index) const =0
 Returns the indexth item in the map. More...
 
virtual XalanNodegetNamedItem (const XalanDOMString &name) const =0
 Retrieves a node specified by name. More...
 
virtual XalanSize_t getLength () const =0
 The number of nodes in the map. More...
 
virtual XalanNodegetNamedItemNS (const XalanDOMString &namespaceURI, const XalanDOMString &localName) const =0
 Retrieves a node specified by local name and namespace URI. More...
 

Protected Member Functions

 XalanNamedNodeMap (const XalanNamedNodeMap &theSource)
 
XalanNamedNodeMapoperator= (const XalanNamedNodeMap &theSource)
 
bool operator== (const XalanNamedNodeMap &theRHS) const
 

Detailed Description

Definition at line 36 of file XalanNamedNodeMap.hpp.

Constructor & Destructor Documentation

◆ XalanNamedNodeMap() [1/2]

xalanc::XalanNamedNodeMap::XalanNamedNodeMap ( )

◆ ~XalanNamedNodeMap()

virtual xalanc::XalanNamedNodeMap::~XalanNamedNodeMap ( )
virtual

◆ XalanNamedNodeMap() [2/2]

xalanc::XalanNamedNodeMap::XalanNamedNodeMap ( const XalanNamedNodeMap theSource)
protected

Member Function Documentation

◆ getLength()

virtual XalanSize_t xalanc::XalanNamedNodeMap::getLength ( ) const
pure virtual

The number of nodes in the map.

The range of valid child node indices is 0 to length-1 inclusive.

Implemented in xalanc::XercesNamedNodeMapBridge, xalanc::XercesNamedNodeMapWrapper, and xalanc::XalanEmptyNamedNodeMap.

◆ getNamedItem()

virtual XalanNode* xalanc::XalanNamedNodeMap::getNamedItem ( const XalanDOMString name) const
pure virtual

Retrieves a node specified by name.

Parameters
nameThe nodeName of a node to retrieve.
Returns
A Node (of any type) with the specified nodeName, or null if it does not identify any node in the map.

Implemented in xalanc::XercesNamedNodeMapBridge, xalanc::XercesNamedNodeMapWrapper, and xalanc::XalanEmptyNamedNodeMap.

◆ getNamedItemNS()

virtual XalanNode* xalanc::XalanNamedNodeMap::getNamedItemNS ( const XalanDOMString namespaceURI,
const XalanDOMString localName 
) const
pure virtual

Retrieves a node specified by local name and namespace URI.

Parameters
namespaceURIThe namespace URI of the node to retrieve.
localNameThe local name of the node to retrieve.
Returns
A Node (of any type) with the specified local name and namespace URI, or null if they do not identify any node in the map.

Implemented in xalanc::XercesNamedNodeMapBridge, xalanc::XercesNamedNodeMapWrapper, and xalanc::XalanEmptyNamedNodeMap.

◆ item()

virtual XalanNode* xalanc::XalanNamedNodeMap::item ( XalanSize_t  index) const
pure virtual

Returns the indexth item in the map.

If index is greater than or equal to the number of nodes in the map, this returns null.

Parameters
indexIndex into the map.
Returns
The node at the indexth position in the NamedNodeMap, or null if that is not a valid index.

Implemented in xalanc::XercesNamedNodeMapWrapper, and xalanc::XalanEmptyNamedNodeMap.

◆ operator=()

XalanNamedNodeMap& xalanc::XalanNamedNodeMap::operator= ( const XalanNamedNodeMap theSource)
protected

◆ operator==()

bool xalanc::XalanNamedNodeMap::operator== ( const XalanNamedNodeMap theRHS) const
protected

The documentation for this class was generated from the following file: