Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaModelGroup (nsSchema *aSchema, const nsAString &aName)
virtual ~nsSchemaModelGroup ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_IMPL_NSISCHEMAPARTICLE_USING_BASE
NS_DECL_NSISCHEMAMODELGROUP
NS_IMETHOD 
SetCompositor (PRUint16 aCompositor)
NS_IMETHOD AddParticle (nsISchemaParticle *aParticle)
NS_IMETHOD GetMinOccurs (PRUint32 *aMinOccurs)
NS_IMETHOD GetMaxOccurs (PRUint32 *aMaxOccurs)
NS_IMETHOD SetMinOccurs (PRUint32 aMinOccurs)
NS_IMETHOD SetMaxOccurs (PRUint32 aMaxOccurs)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
nsISchemaParticle getParticle (in PRUint32 index)
nsISchemaElement getElementByName (in AString name)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

const unsigned short COMPOSITOR_ALL = 1
const unsigned short COMPOSITOR_SEQUENCE = 2
const unsigned short COMPOSITOR_CHOICE = 3
readonly attribute unsigned short compositor
readonly attribute PRUint32 particleCount
const unsigned short PARTICLE_TYPE_ELEMENT = 1
const unsigned short PARTICLE_TYPE_MODEL_GROUP = 2
const unsigned short PARTICLE_TYPE_ANY = 3
const PRUint32 OCCURRENCE_UNBOUNDED = 0xFFFFFFFF
readonly attribute AString name
readonly attribute unsigned short particleType
readonly attribute PRUint32 minOccurs
readonly attribute PRUint32 maxOccurs
readonly attribute AString targetNamespace

Protected Attributes

nsString mName
PRUint16 mCompositor
nsCOMArray< nsISchemaParticlemParticles
PRUint32 mMinOccurs
PRUint32 mMaxOccurs
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 312 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 110 of file nsSchemaParticles.cpp.

{
}

Member Function Documentation

Definition at line 276 of file nsSchemaParticles.cpp.

{
  NS_ENSURE_ARG_POINTER(aParticle);

  return mParticles.AppendObject(aParticle) ? NS_OK : NS_ERROR_FAILURE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 66 of file nsSchemaParticles.cpp.

{
  NS_ENSURE_ARG_POINTER(aMaxOccurs);

  *aMaxOccurs = mMaxOccurs;

  return NS_OK;
}

Definition at line 56 of file nsSchemaParticles.cpp.

{
  NS_ENSURE_ARG_POINTER(aMinOccurs);

  *aMinOccurs = mMinOccurs;

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

Definition at line 268 of file nsSchemaParticles.cpp.

{
  mCompositor = aCompositor;

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 88 of file nsSchemaParticles.cpp.

{
  mMaxOccurs = aMaxOccurs;

  if (mMinOccurs > mMaxOccurs) {
    mMinOccurs = mMaxOccurs;
  }

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 76 of file nsSchemaParticles.cpp.

{
  mMinOccurs = aMinOccurs;

  if (mMaxOccurs < mMinOccurs) {
    mMaxOccurs = mMinOccurs;
  }

  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

readonly attribute unsigned short nsISchemaModelGroup::compositor [inherited]

Definition at line 254 of file nsISchema.idl.

const unsigned short nsISchemaModelGroup::COMPOSITOR_ALL = 1 [inherited]

Definition at line 250 of file nsISchema.idl.

const unsigned short nsISchemaModelGroup::COMPOSITOR_CHOICE = 3 [inherited]

Definition at line 252 of file nsISchema.idl.

const unsigned short nsISchemaModelGroup::COMPOSITOR_SEQUENCE = 2 [inherited]

Definition at line 251 of file nsISchema.idl.

Definition at line 245 of file nsISchema.idl.

Definition at line 330 of file nsSchemaPrivate.h.

Definition at line 244 of file nsISchema.idl.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 293 of file nsSchemaPrivate.h.

Definition at line 292 of file nsSchemaPrivate.h.

Definition at line 329 of file nsSchemaPrivate.h.

Definition at line 331 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

readonly attribute AString nsISchemaParticle::name [inherited]

Definition at line 241 of file nsISchema.idl.

Definition at line 239 of file nsISchema.idl.

const unsigned short nsISchemaParticle::PARTICLE_TYPE_ANY = 3 [inherited]

Definition at line 237 of file nsISchema.idl.

const unsigned short nsISchemaParticle::PARTICLE_TYPE_ELEMENT = 1 [inherited]

Definition at line 235 of file nsISchema.idl.

const unsigned short nsISchemaParticle::PARTICLE_TYPE_MODEL_GROUP = 2 [inherited]

Definition at line 236 of file nsISchema.idl.

Definition at line 256 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaParticle::particleType [inherited]

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