wsdlpull 1.23
|
#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 | ( | ) |
The constructor for SchemaValidator
pointer | to the schema parser instance for the schema |
output | stream to write generated instances |
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::TypeContainer::getAttributeContainer(), Schema::ComplexType::getAttributeName(), Schema::SchemaParserException::line, Schema::Simple, XmlPullParser::TEXT, validate(), Schema::XSD_ANY, Schema::XSD_ANYTYPE, and Schema::XSD_SCHEMA.
Referenced by WsdlPull::Soap::handleElement(), validate(), and validate().
TypeContainer * Schema::SchemaValidator::validate | ( | const std::string & | val, |
int | typeId, | ||
TypeContainer * | ipTc = 0, | ||
XmlPullParser * | xpp = 0 ) |
Definition at line 609 of file SchemaValidator.cpp.
References Schema::ComplexType::getContentType(), Schema::Simple, validate(), and Schema::XSD_INVALID.
TypeContainer * Schema::SchemaValidator::validate | ( | void * | value, |
int | typeId, | ||
TypeContainer * | ipTc = 0, | ||
XmlPullParser * | xpp = 0 ) |
Definition at line 491 of file SchemaValidator.cpp.
References 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::SchemaInstaceUri, XmlSerializer::setPrefix(), and XmlSerializer::startDocument().