Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsAttributeChildList Class Reference

#include <nsDOMAttribute.h>

Inheritance diagram for nsAttributeChildList:
Inheritance graph
Collaboration diagram for nsAttributeChildList:
Collaboration graph

List of all members.

Public Member Functions

 nsAttributeChildList (nsDOMAttribute *aAttribute)
virtual ~nsAttributeChildList ()
NS_IMETHOD GetLength (PRUint32 *aLength)
NS_IMETHOD Item (PRUint32 aIndex, nsIDOMNode **aReturn)
void DropReference ()
nsIDOMNode item (in unsigned long index)

Public Attributes

readonly attribute unsigned long length

Protected Attributes


Detailed Description

Definition at line 54 of file nsDOMAttribute.h.

Constructor & Destructor Documentation

Definition at line 771 of file nsDOMAttribute.cpp.

  // Don't increment the reference count. The attribute will tell
  // us when it's going away
  mAttribute = aAttribute;

Definition at line 778 of file nsDOMAttribute.cpp.


Member Function Documentation

Definition at line 809 of file nsDOMAttribute.cpp.

Here is the caller graph for this function:

Implements nsGenericDOMNodeList.

Definition at line 783 of file nsDOMAttribute.cpp.

  *aLength = 0;
  if (mAttribute) {
    nsAutoString value;
    if (!value.IsEmpty()) {
      *aLength = 1;

  return NS_OK;
nsIDOMNode nsIDOMNodeList::item ( in unsigned long  index) [inherited]

Here is the caller graph for this function:

NS_IMETHODIMP nsAttributeChildList::Item ( PRUint32  aIndex,
nsIDOMNode **  aReturn 
) [virtual]

Implements nsGenericDOMNodeList.

Definition at line 798 of file nsDOMAttribute.cpp.

  *aReturn = nsnull;
  if (mAttribute && 0 == aIndex) {

  return NS_OK;

Member Data Documentation

readonly attribute unsigned long nsIDOMNodeList::length [inherited]

Definition at line 58 of file nsIDOMNodeList.idl.

Definition at line 67 of file nsDOMAttribute.h.

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