Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsNameList Class Reference

#include <nsDOMLists.h>

Inheritance diagram for nsNameList:
Inheritance graph
Collaboration diagram for nsNameList:
Collaboration graph

List of all members.

Public Member Functions

 nsNameList ()
virtual ~nsNameList ()
Add (const nsAString &aNamespaceURI, const nsAString &aName)
DOMString getName (in unsigned long index) raises (DOMException)
DOMString getNamespaceURI (in unsigned long index) raises (DOMException)
boolean contains (in DOMString str)
boolean containsNS (in DOMString namespaceURI, in DOMString name)

Public Attributes

readonly attribute unsigned long length

Private Attributes

nsStringArray mNamespaceURIs
nsStringArray mNames

Detailed Description

Definition at line 65 of file nsDOMLists.h.

Constructor & Destructor Documentation

Definition at line 90 of file nsDOMLists.cpp.

nsNameList::~nsNameList ( ) [virtual]

Definition at line 94 of file nsDOMLists.cpp.


Member Function Documentation

PRBool nsNameList::Add ( const nsAString &  aNamespaceURI,
const nsAString &  aName 

Definition at line 139 of file nsDOMLists.cpp.

  PRInt32 count = mNamespaceURIs.Count();
  if (mNamespaceURIs.InsertStringAt(aNamespaceURI, count)) {
    if (mNames.InsertStringAt(aName, count)) {
      return PR_TRUE;

  return PR_FALSE;
boolean nsIDOMNameList::contains ( in DOMString  str) [inherited]
boolean nsIDOMNameList::containsNS ( in DOMString  namespaceURI,
in DOMString  name 
) [inherited]
DOMString nsIDOMNameList::getName ( in unsigned long  index) raises (DOMException) [inherited]
DOMString nsIDOMNameList::getNamespaceURI ( in unsigned long  index) raises (DOMException) [inherited]

Member Data Documentation

readonly attribute unsigned long nsIDOMNameList::length [inherited]

Definition at line 53 of file nsIDOMNameList.idl.

nsStringArray nsNameList::mNames [private]

Definition at line 78 of file nsDOMLists.h.

nsStringArray nsNameList::mNamespaceURIs [private]

Definition at line 77 of file nsDOMLists.h.

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