Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Protected Attributes | Friends
nsINodeInfo Class Reference

#include <nsINodeInfo.h>

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

List of all members.

Classes

class  nsNodeInfoInner

Public Member Functions

 nsINodeInfo ()
void GetName (nsAString &aName) const
nsIAtomNameAtom () const
virtual void GetQualifiedName (nsAString &aQualifiedName) const =0
virtual void GetLocalName (nsAString &aLocalName) const =0
void GetPrefix (nsAString &aPrefix) const
nsIAtomGetPrefixAtom () const
virtual nsresult GetNamespaceURI (nsAString &aNameSpaceURI) const =0
PRInt32 NamespaceID () const
nsIAtomGetIDAttributeAtom () const
void SetIDAttributeAtom (nsIAtom *aID)
nsNodeInfoManagerNodeInfoManager () const
 Get the owning node info manager.
PRBool Equals (nsINodeInfo *aNodeInfo) const
PRBool NameAndNamespaceEquals (nsINodeInfo *aNodeInfo) const
PRBool Equals (nsIAtom *aNameAtom) const
PRBool Equals (nsIAtom *aNameAtom, nsIAtom *aPrefixAtom) const
PRBool Equals (nsIAtom *aNameAtom, PRInt32 aNamespaceID) const
PRBool Equals (nsIAtom *aNameAtom, nsIAtom *aPrefixAtom, PRInt32 aNamespaceID) const
PRBool NamespaceEquals (PRInt32 aNamespaceID) const
virtual PRBool Equals (const nsAString &aName) const =0
virtual PRBool Equals (const nsAString &aName, const nsAString &aPrefix) const =0
virtual PRBool Equals (const nsAString &aName, PRInt32 aNamespaceID) const =0
virtual PRBool Equals (const nsAString &aName, const nsAString &aPrefix, PRInt32 aNamespaceID) const =0
virtual PRBool NamespaceEquals (const nsAString &aNamespaceURI) const =0
virtual PRBool QualifiedNameEquals (const nsACString &aQualifiedName) const =0
virtual nsIDocumentGetDocument () const =0
virtual nsIPrincipalGetDocumentPrincipal () const =0

Protected Attributes

nsNodeInfoInner mInner
nsCOMPtr< nsIAtommIDAttributeAtom
nsNodeInfoManagermOwnerManager

Friends

class nsNodeInfoManager

Detailed Description

Definition at line 76 of file nsINodeInfo.h.


Constructor & Destructor Documentation

Definition at line 81 of file nsINodeInfo.h.


Member Function Documentation

PRBool nsINodeInfo::Equals ( nsINodeInfo aNodeInfo) const [inline]

Definition at line 212 of file nsINodeInfo.h.

  {
    return aNodeInfo == this || aNodeInfo->Equals(mInner.mName, mInner.mPrefix,
                                                  mInner.mNamespaceID);
  }

Here is the call graph for this function:

PRBool nsINodeInfo::Equals ( nsIAtom aNameAtom) const [inline]

Definition at line 224 of file nsINodeInfo.h.

  {
    return mInner.mName == aNameAtom;
  }
PRBool nsINodeInfo::Equals ( nsIAtom aNameAtom,
nsIAtom aPrefixAtom 
) const [inline]

Definition at line 229 of file nsINodeInfo.h.

  {
    return (mInner.mName == aNameAtom) && (mInner.mPrefix == aPrefixAtom);
  }
PRBool nsINodeInfo::Equals ( nsIAtom aNameAtom,
PRInt32  aNamespaceID 
) const [inline]

Definition at line 234 of file nsINodeInfo.h.

  {
    return ((mInner.mName == aNameAtom) &&
            (mInner.mNamespaceID == aNamespaceID));
  }
PRBool nsINodeInfo::Equals ( nsIAtom aNameAtom,
nsIAtom aPrefixAtom,
PRInt32  aNamespaceID 
) const [inline]

Definition at line 240 of file nsINodeInfo.h.

  {
    return ((mInner.mName == aNameAtom) &&
            (mInner.mPrefix == aPrefixAtom) &&
            (mInner.mNamespaceID == aNamespaceID));
  }
virtual PRBool nsINodeInfo::Equals ( const nsAString &  aName) const [pure virtual]

Implemented in nsNodeInfo.

virtual PRBool nsINodeInfo::Equals ( const nsAString &  aName,
const nsAString &  aPrefix 
) const [pure virtual]

Implemented in nsNodeInfo.

virtual PRBool nsINodeInfo::Equals ( const nsAString &  aName,
PRInt32  aNamespaceID 
) const [pure virtual]

Implemented in nsNodeInfo.

virtual PRBool nsINodeInfo::Equals ( const nsAString &  aName,
const nsAString &  aPrefix,
PRInt32  aNamespaceID 
) const [pure virtual]

Implemented in nsNodeInfo.

virtual nsIDocument* nsINodeInfo::GetDocument ( ) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

virtual nsIPrincipal* nsINodeInfo::GetDocumentPrincipal ( ) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

Definition at line 188 of file nsINodeInfo.h.

  {
    return mIDAttributeAtom;
  }
virtual void nsINodeInfo::GetLocalName ( nsAString &  aLocalName) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

void nsINodeInfo::GetName ( nsAString &  aName) const [inline]

Definition at line 93 of file nsINodeInfo.h.

  {
    mInner.mName->ToString(aName);
  }

Here is the caller graph for this function:

virtual nsresult nsINodeInfo::GetNamespaceURI ( nsAString &  aNameSpaceURI) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

void nsINodeInfo::GetPrefix ( nsAString &  aPrefix) const [inline]

Definition at line 136 of file nsINodeInfo.h.

  {
    if (mInner.mPrefix) {
      mInner.mPrefix->ToString(aPrefix);
    } else {
      SetDOMStringToNull(aPrefix);
    }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

nsIAtom* nsINodeInfo::GetPrefixAtom ( ) const [inline]

Definition at line 151 of file nsINodeInfo.h.

  {
    return mInner.mPrefix;
  }

Here is the caller graph for this function:

virtual void nsINodeInfo::GetQualifiedName ( nsAString &  aQualifiedName) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

PRBool nsINodeInfo::NameAndNamespaceEquals ( nsINodeInfo aNodeInfo) const [inline]

Definition at line 218 of file nsINodeInfo.h.

  {
    return aNodeInfo == this || aNodeInfo->Equals(mInner.mName,
                                                  mInner.mNamespaceID);
  }

Here is the call graph for this function:

nsIAtom* nsINodeInfo::NameAtom ( ) const [inline]

Definition at line 105 of file nsINodeInfo.h.

  {
    return mInner.mName;
  }

Here is the caller graph for this function:

PRBool nsINodeInfo::NamespaceEquals ( PRInt32  aNamespaceID) const [inline]

Definition at line 248 of file nsINodeInfo.h.

  {
    return mInner.mNamespaceID == aNamespaceID;
  }

Here is the caller graph for this function:

virtual PRBool nsINodeInfo::NamespaceEquals ( const nsAString &  aNamespaceURI) const [pure virtual]

Implemented in nsNodeInfo.

PRInt32 nsINodeInfo::NamespaceID ( ) const [inline]

Definition at line 177 of file nsINodeInfo.h.

  {
    return mInner.mNamespaceID;
  }

Here is the caller graph for this function:

Get the owning node info manager.

Only to be used inside Gecko, you can't really do anything with the pointer outside Gecko anyway.

Definition at line 202 of file nsINodeInfo.h.

  {
    return mOwnerManager;
  }

Here is the caller graph for this function:

virtual PRBool nsINodeInfo::QualifiedNameEquals ( const nsACString &  aQualifiedName) const [pure virtual]

Implemented in nsNodeInfo.

Here is the caller graph for this function:

Definition at line 193 of file nsINodeInfo.h.

  {
    mIDAttributeAtom = aID;
  }

Friends And Related Function Documentation

friend class nsNodeInfoManager [friend]

Definition at line 303 of file nsINodeInfo.h.


Member Data Documentation

Definition at line 307 of file nsINodeInfo.h.

Definition at line 305 of file nsINodeInfo.h.

Definition at line 308 of file nsINodeInfo.h.


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