Back to index

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

#include <nsSchemaPrivate.h>

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

List of all members.

Public Member Functions

 nsSchemaAttribute (nsSchema *aSchema, const nsAString &aName)
virtual ~nsSchemaAttribute ()
NS_DECL_ISUPPORTS
NS_IMPL_NSISCHEMACOMPONENT_USING_BASE
NS_DECL_NSISCHEMAATTRIBUTECOMPONENT
NS_DECL_NSISCHEMAATTRIBUTE
NS_IMETHOD 
SetType (nsISchemaSimpleType *aType)
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 mName
nsCOMPtr< nsISchemaSimpleTypemType
nsString mDefaultValue
nsString mFixedValue
PRUint16 mUse
nsSchemamSchema
PRPackedBool mIsResolved
PRPackedBool mIsCleared

Detailed Description

Definition at line 422 of file nsSchemaPrivate.h.


Constructor & Destructor Documentation

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

Definition at line 46 of file nsSchemaAttributes.cpp.

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

Definition at line 52 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 nsSchemaAttribute::SetConstraints ( const nsAString &  aDefaultValue,
const nsAString &  aFixedValue 
)

Definition at line 176 of file nsSchemaAttributes.cpp.

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

  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 166 of file nsSchemaAttributes.cpp.

{
  NS_ENSURE_ARG(aType);
  
  mType = aType;

  return NS_OK;
}

Here is the caller graph for this function:

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

Definition at line 443 of file nsSchemaPrivate.h.

Definition at line 123 of file nsSchemaPrivate.h.

Definition at line 122 of file nsSchemaPrivate.h.

Definition at line 440 of file nsSchemaPrivate.h.

nsSchema* nsSchemaComponentBase::mSchema [protected, inherited]

Definition at line 120 of file nsSchemaPrivate.h.

Definition at line 441 of file nsSchemaPrivate.h.

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