Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaUnionType (nsSchema *aSchema, const nsAString &aName)
virtual ~nsSchemaUnionType ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMATYPE
NS_DECL_NSISCHEMASIMPLETYPE
NS_DECL_NSISCHEMAUNIONTYPE
NS_IMETHOD 
AddUnionType (nsISchemaSimpleType *aUnionType)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
nsISchemaSimpleType getUnionType (in PRUint32 index)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

readonly attribute PRUint32 unionTypeCount
const unsigned short SIMPLE_TYPE_BUILTIN = 1
const unsigned short SIMPLE_TYPE_LIST = 2
const unsigned short SIMPLE_TYPE_UNION = 3
const unsigned short SIMPLE_TYPE_RESTRICTION = 4
readonly attribute unsigned short simpleType
const unsigned short SCHEMA_TYPE_SIMPLE = 1
const unsigned short SCHEMA_TYPE_COMPLEX = 2
const unsigned short SCHEMA_TYPE_PLACEHOLDER = 3
readonly attribute AString name
readonly attribute unsigned short schemaType
readonly attribute AString targetNamespace

Protected Attributes

nsString mName
nsCOMArray< nsISchemaSimpleTypemUnionTypes
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 169 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 383 of file nsSchemaSimpleTypes.cpp.

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

Definition at line 389 of file nsSchemaSimpleTypes.cpp.

{
}

Member Function Documentation

Definition at line 507 of file nsSchemaSimpleTypes.cpp.

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;
}

Member Data Documentation

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 185 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

Definition at line 186 of file nsSchemaPrivate.h.

readonly attribute AString nsISchemaType::name [inherited]

Definition at line 114 of file nsISchema.idl.

const unsigned short nsISchemaType::SCHEMA_TYPE_COMPLEX = 2 [inherited]

Definition at line 111 of file nsISchema.idl.

const unsigned short nsISchemaType::SCHEMA_TYPE_PLACEHOLDER = 3 [inherited]

Definition at line 112 of file nsISchema.idl.

const unsigned short nsISchemaType::SCHEMA_TYPE_SIMPLE = 1 [inherited]

Definition at line 110 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaType::schemaType [inherited]

Definition at line 115 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_BUILTIN = 1 [inherited]

Definition at line 120 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_LIST = 2 [inherited]

Definition at line 121 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_RESTRICTION = 4 [inherited]

Definition at line 123 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_UNION = 3 [inherited]

Definition at line 122 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaSimpleType::simpleType [inherited]

Definition at line 125 of file nsISchema.idl.

readonly attribute AString nsISchemaComponent::targetNamespace [inherited]

Definition at line 75 of file nsISchema.idl.

Definition at line 186 of file nsISchema.idl.


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