Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaRestrictionType (nsSchema *aSchema, const nsAString &aName)
virtual ~nsSchemaRestrictionType ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMATYPE
NS_DECL_NSISCHEMASIMPLETYPE
NS_DECL_NSISCHEMARESTRICTIONTYPE
NS_IMETHOD 
SetBaseType (nsISchemaSimpleType *aBaseType)
NS_IMETHOD AddFacet (nsISchemaFacet *aFacet)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
nsISchemaFacet getFacet (in PRUint32 index)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

readonly attribute
nsISchemaSimpleType 
baseType
readonly attribute PRUint32 facetCount
const unsigned short SIMPLE_TYPE_BUILTIN = 1
const unsigned short SIMPLE_TYPE_LIST = 2
const unsigned short SIMPLE_TYPE_UNION = 3
const unsigned short SIMPLE_TYPE_RESTRICTION = 4
readonly attribute unsigned short simpleType
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
nsCOMPtr< nsISchemaSimpleTypemBaseType
nsCOMArray< nsISchemaFacetmFacets
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 189 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 519 of file nsSchemaSimpleTypes.cpp.

  : nsSchemaComponentBase(aSchema), mName(aName)
{
}

Definition at line 525 of file nsSchemaSimpleTypes.cpp.

{
}

Member Function Documentation

Definition at line 664 of file nsSchemaSimpleTypes.cpp.

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

Definition at line 654 of file nsSchemaSimpleTypes.cpp.

{
  NS_ENSURE_ARG(aBaseType);

  mBaseType = aBaseType;

  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 192 of file nsISchema.idl.

Definition at line 193 of file nsISchema.idl.

Definition at line 207 of file nsSchemaPrivate.h.

Definition at line 208 of file nsSchemaPrivate.h.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 206 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

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

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_BUILTIN = 1 [inherited]

Definition at line 120 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_LIST = 2 [inherited]

Definition at line 121 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_RESTRICTION = 4 [inherited]

Definition at line 123 of file nsISchema.idl.

const unsigned short nsISchemaSimpleType::SIMPLE_TYPE_UNION = 3 [inherited]

Definition at line 122 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaSimpleType::simpleType [inherited]

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