Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaAnyParticle (nsSchema *aSchema)
virtual ~nsSchemaAnyParticle ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_IMPL_NSISCHEMAPARTICLE_USING_BASE
NS_DECL_NSISCHEMAANYPARTICLE
NS_IMETHOD 
SetProcess (PRUint16 aProcess)
NS_IMETHOD SetNamespace (const nsAString &aNamespace)
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)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

const unsigned short PROCESS_STRICT = 1
const unsigned short PROCESS_SKIP = 2
const unsigned short PROCESS_LAX = 3
readonly attribute unsigned short process
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

PRUint16 mProcess
nsString mNamespace
PRUint32 mMinOccurs
PRUint32 mMaxOccurs
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 353 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

Definition at line 431 of file nsSchemaParticles.cpp.

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

Definition at line 507 of file nsSchemaParticles.cpp.

{
  mNamespace.Assign(aNamespace);

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 499 of file nsSchemaParticles.cpp.

{
  mProcess = aProcess;
  
  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

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

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

readonly attribute unsigned short nsISchemaParticle::particleType [inherited]

Definition at line 242 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaAnyParticle::process [inherited]

Definition at line 270 of file nsISchema.idl.

const unsigned short nsISchemaAnyParticle::PROCESS_LAX = 3 [inherited]

Definition at line 268 of file nsISchema.idl.

const unsigned short nsISchemaAnyParticle::PROCESS_SKIP = 2 [inherited]

Definition at line 267 of file nsISchema.idl.

const unsigned short nsISchemaAnyParticle::PROCESS_STRICT = 1 [inherited]

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