Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaComplexType (nsSchema *aSchema, const nsAString &aName, PRBool aAbstract)
virtual ~nsSchemaComplexType ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMATYPE
NS_DECL_NSISCHEMACOMPLEXTYPE
nsresult 
Init ()
NS_IMETHOD SetContentModel (PRUint16 aContentModel)
NS_IMETHOD SetDerivation (PRUint16 aDerivation, nsISchemaType *aBaseType)
NS_IMETHOD SetSimpleBaseType (nsISchemaSimpleType *aSimpleBaseType)
NS_IMETHOD SetModelGroup (nsISchemaModelGroup *aModelGroup)
NS_IMETHOD AddAttribute (nsISchemaAttributeComponent *aAttribute)
NS_IMETHOD SetArrayInfo (nsISchemaType *aType, PRUint32 aDimension)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
nsISchemaAttributeComponent getAttributeByIndex (in PRUint32 index)
nsISchemaAttributeComponent getAttributeByName (in AString name)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

const unsigned short CONTENT_MODEL_EMPTY = 1
const unsigned short CONTENT_MODEL_SIMPLE = 2
const unsigned short CONTENT_MODEL_ELEMENT_ONLY = 3
const unsigned short CONTENT_MODEL_MIXED = 4
const unsigned short DERIVATION_EXTENSION_SIMPLE = 1
const unsigned short DERIVATION_RESTRICTION_SIMPLE = 2
const unsigned short DERIVATION_EXTENSION_COMPLEX = 3
const unsigned short DERIVATION_RESTRICTION_COMPLEX = 4
const unsigned short DERIVATION_SELF_CONTAINED = 5
readonly attribute unsigned short contentModel
readonly attribute unsigned short derivation
readonly attribute nsISchemaType baseType
readonly attribute
nsISchemaSimpleType 
simpleBaseType
readonly attribute
nsISchemaModelGroup 
modelGroup
readonly attribute PRUint32 attributeCount
readonly attribute boolean abstract
readonly attribute boolean isArray
readonly attribute nsISchemaType arrayType
readonly attribute PRUint32 arrayDimension
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
PRPackedBool mAbstract
PRUint16 mContentModel
PRUint16 mDerivation
nsCOMPtr< nsISchemaTypemBaseType
nsCOMPtr< nsISchemaSimpleTypemSimpleBaseType
nsCOMPtr< nsISchemaModelGroupmModelGroup
nsCOMArray
< nsISchemaAttributeComponent
mAttributes
nsInterfaceHashtable
< nsStringHashKey,
nsISchemaAttributeComponent
mAttributesHash
nsAutoPtr< nsComplexTypeArrayInfomArrayInfo
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 225 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

nsSchemaComplexType::nsSchemaComplexType ( nsSchema aSchema,
const nsAString &  aName,
PRBool  aAbstract 
)

Definition at line 55 of file nsSchemaComplexType.cpp.

{
}

Member Function Documentation

Definition at line 450 of file nsSchemaComplexType.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_NSISCHEMATYPE NS_DECL_NSISCHEMACOMPLEXTYPE nsresult nsSchemaComplexType::Init ( void  ) [inline]

Definition at line 238 of file nsSchemaPrivate.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 464 of file nsSchemaComplexType.cpp.

{
  mArrayInfo = new nsComplexTypeArrayInfo(aType, aDimension);

  return mArrayInfo ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}

Here is the caller graph for this function:

Definition at line 416 of file nsSchemaComplexType.cpp.

{
  mContentModel = aContentModel;

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 424 of file nsSchemaComplexType.cpp.

{
  mDerivation = aDerivation;
  mBaseType = aBaseType;

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 442 of file nsSchemaComplexType.cpp.

{
  mModelGroup = aModelGroup;

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 434 of file nsSchemaComplexType.cpp.

{
  mSimpleBaseType = aSimpleBaseType;

  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 226 of file nsISchema.idl.

Definition at line 230 of file nsISchema.idl.

Definition at line 229 of file nsISchema.idl.

Definition at line 222 of file nsISchema.idl.

Definition at line 212 of file nsISchema.idl.

Definition at line 201 of file nsISchema.idl.

const unsigned short nsISchemaComplexType::CONTENT_MODEL_EMPTY = 1 [inherited]

Definition at line 199 of file nsISchema.idl.

const unsigned short nsISchemaComplexType::CONTENT_MODEL_MIXED = 4 [inherited]

Definition at line 202 of file nsISchema.idl.

const unsigned short nsISchemaComplexType::CONTENT_MODEL_SIMPLE = 2 [inherited]

Definition at line 200 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaComplexType::contentModel [inherited]

Definition at line 210 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaComplexType::derivation [inherited]

Definition at line 211 of file nsISchema.idl.

Definition at line 206 of file nsISchema.idl.

Definition at line 204 of file nsISchema.idl.

Definition at line 207 of file nsISchema.idl.

Definition at line 205 of file nsISchema.idl.

Definition at line 208 of file nsISchema.idl.

Definition at line 228 of file nsISchema.idl.

Definition at line 252 of file nsSchemaPrivate.h.

Definition at line 260 of file nsSchemaPrivate.h.

Definition at line 258 of file nsSchemaPrivate.h.

Definition at line 259 of file nsSchemaPrivate.h.

Definition at line 255 of file nsSchemaPrivate.h.

Definition at line 253 of file nsSchemaPrivate.h.

Definition at line 254 of file nsSchemaPrivate.h.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 257 of file nsSchemaPrivate.h.

Definition at line 251 of file nsSchemaPrivate.h.

Definition at line 220 of file nsISchema.idl.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

Definition at line 256 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.

Definition at line 218 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: