Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsINameSpaceManager Class Reference

The Name Space Manager tracks the associtation between a NameSpace URI and the PRInt32 runtime id. More...

#include <nsINameSpaceManager.h>

Inheritance diagram for nsINameSpaceManager:
Inheritance graph
[legend]
Collaboration diagram for nsINameSpaceManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD RegisterNameSpace (const nsAString &aURI, PRInt32 &aNameSpaceID)=0
NS_IMETHOD GetNameSpaceURI (PRInt32 aNameSpaceID, nsAString &aURI)=0
NS_IMETHOD GetNameSpaceID (const nsAString &aURI, PRInt32 *aNameSpaceID)=0
virtual PRBool HasElementCreator (PRInt32 aNameSpaceID)=0

Detailed Description

The Name Space Manager tracks the associtation between a NameSpace URI and the PRInt32 runtime id.

Mappings between NameSpaces and NameSpace prefixes are managed by nsINameSpaces.

All NameSpace URIs are stored in a global table so that IDs are consistent accross the app. NameSpace IDs are only consistent at runtime ie: they are not guaranteed to be consistent accross app sessions.

The nsINameSpaceManager needs to have a live reference for as long as the NameSpace IDs are needed.

Definition at line 87 of file nsINameSpaceManager.h.


Member Function Documentation

NS_IMETHOD nsINameSpaceManager::GetNameSpaceID ( const nsAString &  aURI,
PRInt32 aNameSpaceID 
) [pure virtual]

Implemented in NameSpaceManagerImpl.

Here is the caller graph for this function:

NS_IMETHOD nsINameSpaceManager::GetNameSpaceURI ( PRInt32  aNameSpaceID,
nsAString &  aURI 
) [pure virtual]

Implemented in NameSpaceManagerImpl.

Here is the caller graph for this function:

virtual PRBool nsINameSpaceManager::HasElementCreator ( PRInt32  aNameSpaceID) [pure virtual]

Implemented in NameSpaceManagerImpl.

NS_IMETHOD nsINameSpaceManager::RegisterNameSpace ( const nsAString &  aURI,
PRInt32 aNameSpaceID 
) [pure virtual]

Implemented in NameSpaceManagerImpl.

Here is the caller graph for this function:


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