Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaAttributeRef (nsSchema *aSchema, const nsAString &aRef, const nsAString &aRefNS)
virtual ~nsSchemaAttributeRef ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMAATTRIBUTECOMPONENT
NS_DECL_NSISCHEMAATTRIBUTE
NS_IMETHOD 
SetConstraints (const nsAString &aDefaultValue, const nsAString &aFixedValue)
NS_IMETHOD SetUse (PRUint16 aUse)
NS_IMETHOD GetTargetNamespace (nsAString &aTargetNamespace)
void resolve (in nsIWebServiceErrorHandler aErrorHandler)
void clear ()

Public Attributes

const unsigned short USE_OPTIONAL = 1
const unsigned short USE_PROHIBITED = 2
const unsigned short USE_REQUIRED = 3
readonly attribute
nsISchemaSimpleType 
type
readonly attribute AString defaultValue
readonly attribute AString fixedValue
readonly attribute unsigned short use
const unsigned short COMPONENT_TYPE_ATTRIBUTE = 1
const unsigned short COMPONENT_TYPE_GROUP = 2
const unsigned short COMPONENT_TYPE_ANY = 3
readonly attribute AString name
readonly attribute unsigned short componentType
readonly attribute AString targetNamespace

Protected Attributes

nsString mRef
nsString mRefNS
nsCOMPtr< nsISchemaAttributemAttribute
nsString mDefaultValue
nsString mFixedValue
PRUint16 mUse
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 447 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 198 of file nsSchemaAttributes.cpp.

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

Definition at line 205 of file nsSchemaAttributes.cpp.

{
}

Member Function Documentation

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;
}
NS_IMETHODIMP nsSchemaAttributeRef::SetConstraints ( const nsAString &  aDefaultValue,
const nsAString &  aFixedValue 
)

Definition at line 327 of file nsSchemaAttributes.cpp.

{
  mDefaultValue.Assign(aDefaultValue);
  mFixedValue.Assign(aFixedValue);

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 337 of file nsSchemaAttributes.cpp.

{
  mUse = aUse;

  return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 289 of file nsISchema.idl.

Definition at line 287 of file nsISchema.idl.

Definition at line 288 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaAttributeComponent::componentType [inherited]

Definition at line 292 of file nsISchema.idl.

readonly attribute AString nsISchemaAttribute::defaultValue [inherited]

Definition at line 303 of file nsISchema.idl.

readonly attribute AString nsISchemaAttribute::fixedValue [inherited]

Definition at line 304 of file nsISchema.idl.

Definition at line 466 of file nsSchemaPrivate.h.

Definition at line 467 of file nsSchemaPrivate.h.

Definition at line 468 of file nsSchemaPrivate.h.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 465 of file nsSchemaPrivate.h.

Definition at line 465 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

Definition at line 469 of file nsSchemaPrivate.h.

readonly attribute AString nsISchemaAttributeComponent::name [inherited]

Definition at line 291 of file nsISchema.idl.

readonly attribute AString nsISchemaComponent::targetNamespace [inherited]

Definition at line 75 of file nsISchema.idl.

Definition at line 301 of file nsISchema.idl.

readonly attribute unsigned short nsISchemaAttribute::use [inherited]

Definition at line 305 of file nsISchema.idl.

const unsigned short nsISchemaAttribute::USE_OPTIONAL = 1 [inherited]

Definition at line 297 of file nsISchema.idl.

const unsigned short nsISchemaAttribute::USE_PROHIBITED = 2 [inherited]

Definition at line 298 of file nsISchema.idl.

const unsigned short nsISchemaAttribute::USE_REQUIRED = 3 [inherited]

Definition at line 299 of file nsISchema.idl.


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