wsdlpull 1.23
|
#include <SimpleType.h>
Public Member Functions | |
Constructors and Destructors | |
SimpleType (const std::string &ns) | |
~SimpleType () | |
Constructors and Destructors | |
std::string | getName () const |
std::string | getNamespace () const |
Qname | getQname () const |
Schema::ContentModelType | getContentModel () const |
int | getTypeId () const |
int | getBaseTypeId () const |
Schema::Derivation | getBaseDerivation () const |
isAnonymous | |
is this an anonymous type ,created inside an element or group
| |
bool | isAnonymous () const |
isSimple | |
IS this a simple type or not
| |
virtual void | setName (std::string) |
virtual void | setContentModel (Schema::ContentModelType) |
virtual void | setTypeId (int) |
virtual void | setAnonymous (bool) |
void | setBaseType (int id, Schema::Derivation type=Schema::Restriction) |
void | setBaseTypeNamespace (std::string ns) |
Various Getter methods | |
enum | { NONE = 0 , LENGTH = 0x1 , MINLEN = 0x2 , MAXLEN = 0x4 , ENUM =0x8 , WSP = 0x10 , MAXINC = 0x20 , MININC = 0x40 , MAXEX =0x80 , MINEX = 0x100 , TOTALDIGITS = 0x200 , FRAC = 0x400 , PATTERN = 0x800 } |
enum | { PRESERVE = 1 , REPLACE , COLLAPSE } |
bool | isList () const |
bool | isUnion () const |
bool | isSimple () const |
bool | isvalidFacet (std::string facet) |
bool | isValidInt (int val) const |
bool | isValidFloat (float val) const |
bool | isValidString (std::string val) const |
bool | getFacetValue (int facet, void *&val) |
const std::list< int > * | unionTypes () const |
void | setUnionType (int id) |
void | setListType (int id) |
void | setFacetValue (std::string facet, std::string val) |
Definition at line 53 of file SimpleType.h.
anonymous enum |
isList
Enumerator | |
---|---|
NONE | |
LENGTH | |
MINLEN | |
MAXLEN | |
ENUM | |
WSP | |
MAXINC | |
MININC | |
MAXEX | |
MINEX | |
TOTALDIGITS | |
FRAC | |
PATTERN |
Definition at line 100 of file SimpleType.h.
anonymous enum |
isList
Enumerator | |
---|---|
PRESERVE | |
REPLACE | |
COLLAPSE |
Definition at line 118 of file SimpleType.h.
Schema::SimpleType::SimpleType | ( | const std::string & | ns | ) |
the | namespace uri of the simple type |
Definition at line 27 of file SimpleType.cpp.
References ENUM, FRAC, LENGTH, MAXEX, MAXINC, MAXLEN, MINEX, MININC, MINLEN, NONE, Schema::facetValueType::numEnums, PATTERN, Schema::XSDType::setContentModel(), Schema::Simple, TOTALDIGITS, WSP, Schema::XSD_ANY, Schema::XSD_ANYTYPE, Schema::XSD_ANYURI, Schema::XSD_BASE64BIN, Schema::XSD_BOOLEAN, Schema::XSD_BYTE, Schema::XSD_DATE, Schema::XSD_DATETIME, Schema::XSD_DECIMAL, Schema::XSD_DOUBLE, Schema::XSD_FLOAT, Schema::XSD_INT, Schema::XSD_INTEGER, Schema::XSD_LONG, Schema::XSD_NCNAME, Schema::XSD_NMTOKEN, Schema::XSD_NMTOKENS, Schema::XSD_POSINT, Schema::XSD_QNAME, Schema::XSD_SHORT, Schema::XSD_STRING, Schema::XSD_TIME, Schema::XSD_TOKEN, Schema::XSD_UINT, Schema::XSD_ULONG, and Schema::XSD_USHORT.
Schema::SimpleType::~SimpleType | ( | ) |
the | namespace uri of the simple type |
Definition at line 76 of file SimpleType.cpp.
|
inline |
isList
Definition at line 141 of file SimpleType.h.
Referenced by Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().
|
inline |
isUnion
Definition at line 148 of file SimpleType.h.
Referenced by Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().
|
inlinevirtual |
bool Schema::SimpleType::isvalidFacet | ( | std::string | facet | ) |
isList
Definition at line 82 of file SimpleType.cpp.
References Schema::XSDType::getBaseTypeId().
bool Schema::SimpleType::isValidInt | ( | int | val | ) | const |
isList
Definition at line 172 of file SimpleType.cpp.
References Schema::XSDType::getBaseTypeId(), LENGTH, Schema::facetValueType::length, Schema::facetValueType::lenRange, MAXEX, Schema::facetValueType::maxex, MAXINC, Schema::facetValueType::maxinc, MAXLEN, Schema::facetValueType::maxlen, MINEX, Schema::facetValueType::minex, MININC, Schema::facetValueType::mininc, MINLEN, Schema::facetValueType::minlen, Schema::facetValueType::valRange, Schema::XSD_INT, and Schema::XSD_INTEGER.
Referenced by Schema::SchemaValidator::validate().
bool Schema::SimpleType::isValidFloat | ( | float | val | ) | const |
isList
Definition at line 242 of file SimpleType.cpp.
Referenced by Schema::SchemaValidator::validate().
bool Schema::SimpleType::isValidString | ( | std::string | val | ) | const |
isList
Definition at line 251 of file SimpleType.cpp.
References ENUM, LENGTH, Schema::facetValueType::length, Schema::facetValueType::lenRange, MAXLEN, Schema::facetValueType::maxlen, MINLEN, Schema::facetValueType::minlen, and PATTERN.
Referenced by Schema::SchemaValidator::validate().
bool Schema::SimpleType::getFacetValue | ( | int | facet, |
void *& | val ) |
isList
Definition at line 316 of file SimpleType.cpp.
References ENUM, FRAC, LENGTH, Schema::facetValueType::length, Schema::facetValueType::lenRange, MAXEX, Schema::facetValueType::maxex, MAXINC, Schema::facetValueType::maxinc, MAXLEN, MINEX, Schema::facetValueType::minex, MININC, Schema::facetValueType::mininc, MINLEN, Schema::facetValueType::minlen, PATTERN, Schema::facetValueType::pattern, Schema::facetValueType::tot, TOTALDIGITS, and Schema::facetValueType::valRange.
|
inline |
|
inline |
|
inline |
isList
Definition at line 155 of file SimpleType.h.
References Schema::XSDType::setBaseType().
void Schema::SimpleType::setFacetValue | ( | std::string | facet, |
std::string | val ) |
isList
Definition at line 98 of file SimpleType.cpp.
References COLLAPSE, ENUM, FRAC, Schema::facetValueType::frac, LENGTH, Schema::facetValueType::length, Schema::facetValueType::lenRange, MAXEX, Schema::facetValueType::maxex, MAXINC, Schema::facetValueType::maxinc, MAXLEN, Schema::facetValueType::maxlen, MINEX, Schema::facetValueType::minex, MININC, Schema::facetValueType::mininc, MINLEN, Schema::facetValueType::minlen, Schema::facetValueType::numEnums, XmlUtils::parseInt(), PATTERN, Schema::facetValueType::pattern, PRESERVE, REPLACE, Schema::facetValueType::tot, TOTALDIGITS, Schema::facetValueType::valRange, WSP, and Schema::facetValueType::wsp.
|
inlineinherited |
getName
Definition at line 148 of file XSDType.h.
Referenced by Schema::SchemaParser::getTypeName().
|
inlineinherited |
getNamespace
Definition at line 236 of file XSDType.h.
Referenced by Schema::SchemaParser::getType(), and Schema::SchemaValidator::validate().
|
inlineinherited |
getQName
Definition at line 155 of file XSDType.h.
References Qname::setNamespace().
Referenced by Schema::TypesTable::addExternalTypeId(), Schema::TypesTable::addType(), and Schema::SchemaValidator::validate().
|
inlineinherited |
getContentModel
Definition at line 164 of file XSDType.h.
Referenced by Schema::SchemaParser::getBasicContentType(), WsdlPull::WsdlInvoker::setInputValue(), WsdlPull::WsdlInvoker::setInputValue(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().
|
inlineinherited |
|
inlineinherited |
getBaseTypeId
Definition at line 185 of file XSDType.h.
Referenced by Schema::TypeContainer::getBaseTypeContainer(), isvalidFacet(), isValidInt(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Definition at line 222 of file XSDType.h.
Referenced by Schema::TypesTable::addType().
|
inlinevirtualinherited |
Definition at line 229 of file XSDType.h.
Referenced by Schema::ComplexType::ComplexType(), and SimpleType().
|
inlinevirtualinherited |
Definition at line 199 of file XSDType.h.
Referenced by Schema::TypesTable::addType().
|
inlinevirtualinherited |
Definition at line 215 of file XSDType.h.
Referenced by Schema::TypesTable::addType().
|
inlineinherited |
Definition at line 206 of file XSDType.h.
Referenced by setListType().
|
inherited |