#include <TypeContainer.h>
Public Member Functions | |
TypeContainer (int typeId, const SchemaParser *sp) | |
TypeContainer (ContentModel *cm, const SchemaParser *sp, int typeId) | |
~TypeContainer () | |
TypeContainer * | getAttributeContainer (std::string attName, bool create=false) |
TypeContainer * | getBaseTypeContainer (bool create=false) |
TypeContainer * | getChildContainer (std::string elemName, bool create=false) |
TypeContainer * | getChildContainer (ContentModel *cm, bool create=false) |
void * | getValue () |
void | rewind () |
resets the access counters so that all access starts from first child | |
void * | getValue (const std::string &name, Schema::Type &type) |
const SchemaParser * | schemaParser () const |
bool | isValueValid () const |
int | getTypeId () const |
ContentModel * | getContentModel () 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) |
Definition at line 43 of file TypeContainer.h.
Schema::TypeContainer::TypeContainer | ( | int | typeId, | |
const SchemaParser * | sp | |||
) |
This is a union so setting one pointer will set all to 0
Definition at line 27 of file TypeContainer.cpp.
Referenced by getAttributeContainer(), getBaseTypeContainer(), and getChildContainer().
Schema::TypeContainer::TypeContainer | ( | ContentModel * | cm, | |
const SchemaParser * | sp, | |||
int | typeId | |||
) |
This is a union so setting one pointer will set all to 0
Definition at line 44 of file TypeContainer.cpp.
Schema::TypeContainer::~TypeContainer | ( | ) |
Definition at line 62 of file TypeContainer.cpp.
TypeContainer * Schema::TypeContainer::getAttributeContainer | ( | std::string | attName, | |
bool | create = false | |||
) |
Definition at line 94 of file TypeContainer.cpp.
References Schema::ComplexType::getAttributeName(), Schema::ComplexType::getAttributeType(), Schema::ComplexType::getNumAttributes(), Schema::SchemaParser::getType(), Schema::XSDType::isSimple(), and TypeContainer().
Referenced by getValue(), and Schema::SchemaValidator::validate().
TypeContainer * Schema::TypeContainer::getBaseTypeContainer | ( | bool | create = false |
) |
Definition at line 202 of file TypeContainer.cpp.
References Schema::XSDType::getBaseTypeId(), Schema::SchemaParser::getType(), TypeContainer(), and Schema::XSD_ANYTYPE.
Referenced by Schema::SchemaValidator::validate().
TypeContainer * Schema::TypeContainer::getChildContainer | ( | std::string | elemName, | |
bool | create = false | |||
) |
Definition at line 127 of file TypeContainer.cpp.
References Schema::ContentModel::begin(), Schema::Containers::count, Schema::ContentModel::end(), getChildContainer(), Schema::Containers::num, Schema::ContentModel::Particle, Schema::Containers::tc, and TypeContainer().
Referenced by getChildContainer(), getValue(), rewind(), and Schema::SchemaValidator::validate().
TypeContainer * Schema::TypeContainer::getChildContainer | ( | ContentModel * | cm, | |
bool | create = false | |||
) |
Definition at line 215 of file TypeContainer.cpp.
References getChildContainer(), and TypeContainer().
void * Schema::TypeContainer::getValue | ( | ) |
Definition at line 255 of file TypeContainer.cpp.
References Schema::SchemaParser::getBasicContentType(), Schema::XSD_BOOLEAN, Schema::XSD_DECIMAL, Schema::XSD_DOUBLE, Schema::XSD_FLOAT, Schema::XSD_INT, Schema::XSD_INTEGER, Schema::XSD_LONG, Schema::XSD_POSINT, Schema::XSD_QNAME, and Schema::XSD_ULONG.
Referenced by getValue().
void Schema::TypeContainer::rewind | ( | ) |
resets the access counters so that all access starts from first child
Definition at line 506 of file TypeContainer.cpp.
References Schema::ContentModel::begin(), Schema::ContentModel::end(), Schema::SchemaParser::getBasicContentType(), getChildContainer(), Schema::ComplexType::getContents(), Schema::SchemaParser::getType(), Schema::SchemaParser::isBasicType(), Schema::ContentModel::Particle, and rewind().
Referenced by rewind().
void * Schema::TypeContainer::getValue | ( | const std::string & | name, | |
Schema::Type & | type | |||
) |
Definition at line 566 of file TypeContainer.cpp.
References Schema::ContentModel::begin(), Schema::ContentModel::end(), getAttributeContainer(), Schema::SchemaParser::getBasicContentType(), getChildContainer(), Schema::ComplexType::getContents(), Schema::SchemaParser::getType(), getValue(), Schema::SchemaParser::isBasicType(), and Schema::ContentModel::Particle.
const SchemaParser * Schema::TypeContainer::schemaParser | ( | ) | const |
Definition at line 291 of file TypeContainer.cpp.
bool Schema::TypeContainer::isValueValid | ( | ) | const [inline] |
Definition at line 260 of file TypeContainer.h.
Referenced by WsdlPull::WsdlInvoker::setInputValue().
int Schema::TypeContainer::getTypeId | ( | ) | const [inline] |
ContentModel * Schema::TypeContainer::getContentModel | ( | ) | const [inline] |
Definition at line 237 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | const std::string & | sValue, | |
bool | valid = true | |||
) | [inline] |
void Schema::TypeContainer::setValue | ( | int | iValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 155 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | char | cValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 164 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | long | lValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 173 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | unsigned long | ulValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 182 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | float | fValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 191 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | double | dbValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 201 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | bool | bValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 211 of file TypeContainer.h.
void Schema::TypeContainer::setValue | ( | Qname & | qnValue, | |
bool | valid = true | |||
) | [inline] |
Definition at line 221 of file TypeContainer.h.
void Schema::TypeContainer::setValAsString | ( | const std::string & | v | ) | [inline] |
Definition at line 244 of file TypeContainer.h.
void Schema::TypeContainer::print | ( | std::ostream & | os | ) |
Definition at line 340 of file TypeContainer.cpp.
References Schema::SchemaParser::getBasicContentType(), print(), Schema::XSD_ANY, Schema::XSD_INVALID, and Schema::XSD_SCHEMA.
Referenced by main(), Schema::operator<<(), print(), and WsdlPull::WsdlInvoker::setInputValue().
friend class SchemaValidator [friend] |
Definition at line 99 of file TypeContainer.h.
std::ostream& operator<< | ( | std::ostream & | os, | |
TypeContainer & | tc | |||
) | [friend] |
Definition at line 365 of file TypeContainer.cpp.
bool Schema::TypeContainer::printTypeNames_ = true [static] |
Definition at line 98 of file TypeContainer.h.
std::string* Schema::TypeContainer::sValue |
Definition at line 112 of file TypeContainer.h.
Definition at line 113 of file TypeContainer.h.
unsigned int* Schema::TypeContainer::uiValue |
Definition at line 114 of file TypeContainer.h.
Definition at line 115 of file TypeContainer.h.
unsigned long* Schema::TypeContainer::ulValue |
Definition at line 116 of file TypeContainer.h.
Definition at line 117 of file TypeContainer.h.
unsigned short* Schema::TypeContainer::usValue |
Definition at line 118 of file TypeContainer.h.
Definition at line 119 of file TypeContainer.h.
double* Schema::TypeContainer::dbValue |
Definition at line 120 of file TypeContainer.h.
Definition at line 121 of file TypeContainer.h.
Definition at line 122 of file TypeContainer.h.
Definition at line 127 of file TypeContainer.h.