Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaElementRef (nsSchema *aSchema, const nsAString &aRef, const nsAString &aRefNS)
virtual ~nsSchemaElementRef ()
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

readonly attribute nsISchemaType type
readonly attribute AString defaultValue
readonly attribute AString fixedValue
readonly attribute boolean nillable
readonly attribute boolean abstract
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< nsISchemaElementmElement
PRUint32 mMinOccurs
PRUint32 mMaxOccurs
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 404 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 686 of file nsSchemaParticles.cpp.

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

Definition at line 693 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

Definition at line 282 of file nsISchema.idl.

readonly attribute AString nsISchemaElement::defaultValue [inherited]

Definition at line 278 of file nsISchema.idl.

readonly attribute AString nsISchemaElement::fixedValue [inherited]

Definition at line 279 of file nsISchema.idl.

Definition at line 245 of file nsISchema.idl.

Definition at line 419 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 417 of file nsSchemaPrivate.h.

Definition at line 418 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 281 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 AString nsISchemaComponent::targetNamespace [inherited]

Definition at line 75 of file nsISchema.idl.

Definition at line 276 of file nsISchema.idl.


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