#include <SchemaValidator.h>

Public Member Functions | ||||||||||
Constructors and Destructors  | ||||||||||
| SchemaValidator (const SchemaParser *sp, std::ostream &os=std::cout) | ||||||||||
| ~SchemaValidator () | ||||||||||
validate  | ||||||||||
This is the main function to validate any type with its instance 
 
 
  | ||||||||||
| TypeContainer * | validate (XmlPullParser *xpp, int typeId, TypeContainer *ipTc=0) | |||||||||
| TypeContainer * | validate (const std::string &val, int typeId, TypeContainer *ipTc=0, XmlPullParser *xpp=0) | |||||||||
| TypeContainer * | validate (void *value, int typeId, TypeContainer *ipTc=0, XmlPullParser *xpp=0) | |||||||||
instance  | ||||||||||
This method generates instance of a type 
 
  | ||||||||||
| bool | instance (const std::string &tag, Schema::Type type_id) | |||||||||
Definition at line 34 of file SchemaValidator.h.
| Schema::SchemaValidator::SchemaValidator | ( | const SchemaParser * | sp, | |
| std::ostream & |  os = std::cout | |||
| ) | 
The constructor for SchemaValidator
| pointer | to the schema parser instance for the schema | |
| output | stream to write generated instances | 
Definition at line 31 of file SchemaValidator.cpp.
| Schema::SchemaValidator::~SchemaValidator | ( | ) | 
Definition at line 40 of file SchemaValidator.cpp.
| TypeContainer * Schema::SchemaValidator::validate | ( | XmlPullParser * | xpp, | |
| int | typeId, | |||
| TypeContainer * |  ipTc = 0 | |||
| ) | 
Definition at line 55 of file SchemaValidator.cpp.
References Schema::SchemaParserException::col, Schema::Complex, XmlPullParser::END_TAG, XmlPullParser::ENTITY_REF, Schema::ComplexType::getAttribute(), Schema::TypeContainer::getAttributeContainer(), XmlPullParser::getAttributeCount(), XmlPullParser::getAttributeName(), XmlPullParser::getAttributeNamespace(), XmlPullParser::getAttributeValue(), Schema::TypeContainer::getBaseTypeContainer(), Schema::XSDType::getBaseTypeId(), Schema::TypeContainer::getChildContainer(), XmlPullParser::getColumnNumber(), Schema::XSDType::getContentModel(), Schema::ComplexType::getContents(), Schema::ComplexType::getContentType(), XmlPullParser::getEventType(), Schema::SchemaParser::getImportedSchemaParser(), XmlPullParser::getLineNumber(), XmlPullParser::getName(), Schema::SchemaParser::getNamespace(), Schema::XSDType::getNamespace(), Schema::XSDType::getQname(), XmlPullParser::getText(), Schema::Attribute::getType(), Schema::SchemaParser::getType(), Schema::TypeContainer::getTypeId(), Schema::SchemaParser::isBasicType(), Schema::SchemaParser::isImported(), Schema::XSDType::isSimple(), Schema::SchemaParserException::line, XmlPullParser::nextTag(), XmlPullParser::nextToken(), Schema::SchemaParser::parseSchemaTag(), Schema::Simple, XmlPullParser::skipSubTree(), Schema::TypeContainer::sParser_, XmlPullParser::TEXT, Schema::TypeContainer::typeId_, Schema::XSD_ANY, Schema::XSD_ANYTYPE, and Schema::XSD_SCHEMA.
Referenced by WsdlPull::Soap::handleElement(), main(), and WsdlPull::WsdlInvoker::setInputValue().
| TypeContainer* Schema::SchemaValidator::validate | ( | const std::string & | val, | |
| int | typeId, | |||
| TypeContainer * |  ipTc = 0,  | 
        |||
| XmlPullParser * |  xpp = 0 | |||
| ) | 
| TypeContainer * Schema::SchemaValidator::validate | ( | void * | value, | |
| int | typeId, | |||
| TypeContainer * |  ipTc = 0,  | 
        |||
| XmlPullParser * |  xpp = 0 | |||
| ) | 
Definition at line 491 of file SchemaValidator.cpp.
References Schema::SchemaParser::getBasicContentType(), Schema::SchemaParser::getType(), Schema::SimpleType::isList(), Schema::XSDType::isSimple(), Schema::SimpleType::isUnion(), Schema::SimpleType::isValidFloat(), Schema::SimpleType::isValidInt(), Schema::SimpleType::isValidString(), Schema::TypeContainer::setValue(), Schema::XSD_BOOLEAN, Schema::XSD_BYTE, Schema::XSD_DECIMAL, Schema::XSD_DOUBLE, Schema::XSD_FLOAT, Schema::XSD_INT, Schema::XSD_INTEGER, Schema::XSD_LONG, Schema::XSD_POSINT, Schema::XSD_QNAME, Schema::XSD_STRING, and Schema::XSD_ULONG.
| bool Schema::SchemaValidator::instance | ( | const std::string & | tag, | |
| Schema::Type | type_id | |||
| ) | 
Definition at line 894 of file SchemaValidator.cpp.
References Schema::SchemaParser::getNamespace(), Schema::SchemaInstaceUri, XmlSerializer::setPrefix(), and XmlSerializer::startDocument().
Referenced by main().
 1.5.5