Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaModelGroupRef (nsSchema *aSchema, const nsAString &aRef, const nsAString &aRefNS)
virtual ~nsSchemaModelGroupRef ()
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 mRef
nsString mRefNS
nsCOMPtr< nsISchemaModelGroupmModelGroup
PRUint32 mMinOccurs
PRUint32 mMaxOccurs
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 334 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

nsSchemaModelGroupRef::nsSchemaModelGroupRef ( nsSchema aSchema,
const nsAString &  aRef,
const nsAString &  aRefNS 
)

Definition at line 288 of file nsSchemaParticles.cpp.

  : nsSchemaParticleBase(aSchema), mRef(aRef), mRefNS(aRefNS)
{
}

Definition at line 295 of file nsSchemaParticles.cpp.

{
}

Member Function Documentation

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 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 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 350 of file nsSchemaPrivate.h.

Definition at line 349 of file nsSchemaPrivate.h.

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