Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaAttributeGroup (nsSchema *aSchema, const nsAString &aName)
virtual ~nsSchemaAttributeGroup ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMAATTRIBUTECOMPONENT
NS_DECL_NSISCHEMAATTRIBUTEGROUP
nsresult 
Init ()
NS_IMETHOD AddAttribute (nsISchemaAttributeComponent *aAttribute)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
nsISchemaAttributeComponent getAttributeByIndex (in PRUint32 index)
nsISchemaAttributeComponent getAttributeByName (in AString name)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

readonly attribute PRUint32 attributeCount
const unsigned short COMPONENT_TYPE_ATTRIBUTE = 1
const unsigned short COMPONENT_TYPE_GROUP = 2
const unsigned short COMPONENT_TYPE_ANY = 3
readonly attribute AString name
readonly attribute unsigned short componentType
readonly attribute AString targetNamespace

Protected Attributes

nsString mName
nsCOMArray
< nsISchemaAttributeComponent
mAttributes
nsInterfaceHashtable
< nsStringHashKey,
nsISchemaAttributeComponent
mAttributesHash
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 472 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

nsSchemaAttributeGroup::nsSchemaAttributeGroup ( nsSchema aSchema,
const nsAString &  aName 
)

Definition at line 349 of file nsSchemaAttributes.cpp.

  : nsSchemaComponentBase(aSchema), mName(aName)
{
}

Definition at line 355 of file nsSchemaAttributes.cpp.

{
}

Member Function Documentation

Definition at line 468 of file nsSchemaAttributes.cpp.

{
  NS_ENSURE_ARG_POINTER(aAttribute);

  nsAutoString name;
  aAttribute->GetName(name);

  mAttributes.AppendObject(aAttribute);
  mAttributesHash.Put(name, aAttribute);

  return NS_OK;    
}

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP nsSchemaComponentBase::GetTargetNamespace ( nsAString &  aTargetNamespace) [inherited]

Reimplemented in nsSchemaElement.

Definition at line 58 of file nsSchemaComponentBase.cpp.

{
  if (mSchema) {
    return mSchema->GetTargetNamespace(aTargetNamespace);
  }

  aTargetNamespace.Truncate();
  return NS_OK;
}
NS_DECL_ISUPPORTS NS_IMPL_NSISCHEMACOMPONENT_USING_BASE NS_DECL_NSISCHEMAATTRIBUTECOMPONENT NS_DECL_NSISCHEMAATTRIBUTEGROUP nsresult nsSchemaAttributeGroup::Init ( void  ) [inline]

Definition at line 484 of file nsSchemaPrivate.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 310 of file nsISchema.idl.

Definition at line 289 of file nsISchema.idl.

Definition at line 287 of file nsISchema.idl.

Definition at line 288 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaAttributeComponent::componentType [inherited]

Definition at line 292 of file nsISchema.idl.

Definition at line 493 of file nsSchemaPrivate.h.

Definition at line 494 of file nsSchemaPrivate.h.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 492 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

readonly attribute AString nsISchemaAttributeComponent::name [inherited]

Definition at line 291 of file nsISchema.idl.

readonly attribute AString nsISchemaComponent::targetNamespace [inherited]

Definition at line 75 of file nsISchema.idl.


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