Logo Search packages:      
Sourcecode: xulrunner version File versions

nsINameSpaceManager Class Reference

#include <nsINameSpaceManager.h>

Inheritance diagram for nsINameSpaceManager:


List of all members.

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 84 of file nsINameSpaceManager.h.

Public Member Functions

virtual PRInt32 GetNameSpaceID (const nsAString &aURI)=0
virtual nsresult GetNameSpaceURI (PRInt32 aNameSpaceID, nsAString &aURI)=0
virtual PRBool HasElementCreator (PRInt32 aNameSpaceID)=0
virtual nsresult RegisterNameSpace (const nsAString &aURI, PRInt32 &aNameSpaceID)=0
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

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

Generated by  Doxygen 1.6.0   Back to index