wsdlpull  1.23
Public Member Functions | Static Public Attributes | Friends | List of all members
Schema::TypeContainer Class Reference

#include <TypeContainer.h>

Public Member Functions

 TypeContainer (int typeId, const SchemaParser *sp)
 
 TypeContainer (ContentModel *cm, const SchemaParser *sp, int typeId)
 
 ~TypeContainer ()
 
TypeContainergetAttributeContainer (std::string attName, bool create=false)
 
TypeContainergetBaseTypeContainer (bool create=false)
 
TypeContainergetChildContainer (std::string elemName, bool create=false)
 
TypeContainergetChildContainer (ContentModel *cm, bool create=false)
 
void * getValue ()
 
void rewind ()
 resets the access counters so that all access starts from first child More...
 
void * getValue (const std::string &name, Schema::Type &type)
 
const SchemaParserschemaParser () const
 
bool isValueValid () const
 
int getTypeId () const
 
ContentModelgetContentModel () const
 
void setValue (const std::string &sValue, bool valid=true)
 
void setValue (int iValue, bool valid=true)
 
void setValue (char cValue, bool valid=true)
 
void setValue (long lValue, bool valid=true)
 
void setValue (unsigned long ulValue, bool valid=true)
 
void setValue (float fValue, bool valid=true)
 
void setValue (double dbValue, bool valid=true)
 
void setValue (bool bValue, bool valid=true)
 
void setValue (Qname &qnValue, bool valid=true)
 
void setValAsString (const std::string &v)
 
void print (std::ostream &os)
 

Static Public Attributes

static bool printTypeNames_ = true
 

Friends

class SchemaValidator
 
std::ostream & operator<< (std::ostream &os, TypeContainer &tc)
 

Detailed Description

Definition at line 43 of file TypeContainer.h.

Constructor & Destructor Documentation

§ TypeContainer() [1/2]

Schema::TypeContainer::TypeContainer ( int  typeId,
const SchemaParser sp 
)

§ TypeContainer() [2/2]

Schema::TypeContainer::TypeContainer ( ContentModel cm,
const SchemaParser sp,
int  typeId 
)

Definition at line 44 of file TypeContainer.cpp.

§ ~TypeContainer()

Schema::TypeContainer::~TypeContainer ( )

Definition at line 62 of file TypeContainer.cpp.

Member Function Documentation

§ getAttributeContainer()

TypeContainer * Schema::TypeContainer::getAttributeContainer ( std::string  attName,
bool  create = false 
)

§ getBaseTypeContainer()

TypeContainer * Schema::TypeContainer::getBaseTypeContainer ( bool  create = false)

§ getChildContainer() [1/2]

TypeContainer * Schema::TypeContainer::getChildContainer ( std::string  elemName,
bool  create = false 
)

§ getChildContainer() [2/2]

TypeContainer * Schema::TypeContainer::getChildContainer ( ContentModel cm,
bool  create = false 
)

Definition at line 215 of file TypeContainer.cpp.

References getChildContainer(), and TypeContainer().

§ getValue() [1/2]

void * Schema::TypeContainer::getValue ( )

§ rewind()

void Schema::TypeContainer::rewind ( )

§ getValue() [2/2]

void * Schema::TypeContainer::getValue ( const std::string &  name,
Schema::Type type 
)

§ schemaParser()

const SchemaParser * Schema::TypeContainer::schemaParser ( ) const

§ isValueValid()

bool Schema::TypeContainer::isValueValid ( ) const
inline

§ getTypeId()

int Schema::TypeContainer::getTypeId ( ) const
inline

Definition at line 230 of file TypeContainer.h.

Referenced by Schema::SchemaValidator::validate().

§ getContentModel()

ContentModel * Schema::TypeContainer::getContentModel ( ) const
inline

Definition at line 237 of file TypeContainer.h.

§ setValue() [1/9]

void Schema::TypeContainer::setValue ( const std::string &  sValue,
bool  valid = true 
)
inline

Definition at line 146 of file TypeContainer.h.

Referenced by Schema::SchemaValidator::validate().

§ setValue() [2/9]

void Schema::TypeContainer::setValue ( int  iValue,
bool  valid = true 
)
inline

Definition at line 155 of file TypeContainer.h.

§ setValue() [3/9]

void Schema::TypeContainer::setValue ( char  cValue,
bool  valid = true 
)
inline

Definition at line 164 of file TypeContainer.h.

§ setValue() [4/9]

void Schema::TypeContainer::setValue ( long  lValue,
bool  valid = true 
)
inline

Definition at line 173 of file TypeContainer.h.

§ setValue() [5/9]

void Schema::TypeContainer::setValue ( unsigned long  ulValue,
bool  valid = true 
)
inline

Definition at line 182 of file TypeContainer.h.

§ setValue() [6/9]

void Schema::TypeContainer::setValue ( float  fValue,
bool  valid = true 
)
inline

Definition at line 191 of file TypeContainer.h.

§ setValue() [7/9]

void Schema::TypeContainer::setValue ( double  dbValue,
bool  valid = true 
)
inline

Definition at line 201 of file TypeContainer.h.

§ setValue() [8/9]

void Schema::TypeContainer::setValue ( bool  bValue,
bool  valid = true 
)
inline

Definition at line 211 of file TypeContainer.h.

§ setValue() [9/9]

void Schema::TypeContainer::setValue ( Qname qnValue,
bool  valid = true 
)
inline

Definition at line 221 of file TypeContainer.h.

§ setValAsString()

void Schema::TypeContainer::setValAsString ( const std::string &  v)
inline

Definition at line 244 of file TypeContainer.h.

Referenced by Schema::SchemaValidator::validate().

§ print()

void Schema::TypeContainer::print ( std::ostream &  os)

Friends And Related Function Documentation

§ SchemaValidator

friend class SchemaValidator
friend

Definition at line 99 of file TypeContainer.h.

§ operator<<

std::ostream& operator<< ( std::ostream &  os,
TypeContainer tc 
)
friend

Definition at line 365 of file TypeContainer.cpp.

Member Data Documentation

§ printTypeNames_

bool Schema::TypeContainer::printTypeNames_ = true
static

Definition at line 98 of file TypeContainer.h.

Referenced by Schema::operator<<().

§ sValue

std::string* Schema::TypeContainer::sValue

Definition at line 112 of file TypeContainer.h.

§ iValue

int* Schema::TypeContainer::iValue

Definition at line 113 of file TypeContainer.h.

§ uiValue

unsigned int* Schema::TypeContainer::uiValue

Definition at line 114 of file TypeContainer.h.

§ lValue

long* Schema::TypeContainer::lValue

Definition at line 115 of file TypeContainer.h.

§ ulValue

unsigned long* Schema::TypeContainer::ulValue

Definition at line 116 of file TypeContainer.h.

§ shValue

short* Schema::TypeContainer::shValue

Definition at line 117 of file TypeContainer.h.

§ usValue

unsigned short* Schema::TypeContainer::usValue

Definition at line 118 of file TypeContainer.h.

§ fValue

float* Schema::TypeContainer::fValue

Definition at line 119 of file TypeContainer.h.

§ dbValue

double* Schema::TypeContainer::dbValue

Definition at line 120 of file TypeContainer.h.

§ bValue

bool* Schema::TypeContainer::bValue

Definition at line 121 of file TypeContainer.h.

§ cValue

char* Schema::TypeContainer::cValue

Definition at line 122 of file TypeContainer.h.

§ qnValue

Qname* Schema::TypeContainer::qnValue

Definition at line 127 of file TypeContainer.h.


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