#include <TypesTable.h>
Public Member Functions | |
TypesTable () | |
~TypesTable () | |
void | clean () |
int | addType (XSDType *type) |
int | addExtType (XSDType *type, int id) |
int | getTypeId (const Qname &name, bool create=false) |
std::string | getAtomicTypeName (Schema::Type t) const |
int | addExternalTypeId (const Qname &type, const XSDType *pType) |
int | getNumExtRefs () |
Qname & | getExtRefName (int index) |
int | getExtRefType (int index) |
void | resolveForwardElementRefs (const std::string &name, Element &e) |
void | resolveForwardAttributeRefs (const std::string &name, Attribute &a) |
int | getCompleteXpath (int elemId, std::string &childName, int *xPath, int limits, int &offset) |
XSDType * | getTypePtr (int id) const |
int | getNumTypes (void) const |
bool | detectUndefinedTypes (void) |
void | setTargetNamespace (std::string Uri) |
std::string | getTargetNamespace (void) |
void | printUndefinedTypes (std::ostream &out) |
Classes | |
struct | extRefs |
Definition at line 35 of file TypesTable.h.
Schema::TypesTable::TypesTable | ( | ) |
Definition at line 29 of file TypesTable.cpp.
References 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_HEXBIN, 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::TypesTable::~TypesTable | ( | ) |
void Schema::TypesTable::clean | ( | ) |
Definition at line 89 of file TypesTable.cpp.
References getTypePtr().
Referenced by Schema::SchemaParser::~SchemaParser(), and ~TypesTable().
int Schema::TypesTable::addType | ( | XSDType * | type | ) |
Definition at line 103 of file TypesTable.cpp.
References Qname::getLocalName(), Schema::XSDType::getQname(), Schema::XSDType::setAnonymous(), Schema::XSDType::setName(), Schema::XSDType::setTypeId(), and Schema::XSD_ANYURI.
int Schema::TypesTable::addExtType | ( | XSDType * | type, | |
int | id | |||
) |
Definition at line 215 of file TypesTable.cpp.
References Schema::XSD_ANYURI.
Referenced by Schema::SchemaParser::finalize().
int Schema::TypesTable::getTypeId | ( | const Qname & | name, | |
bool | create = false | |||
) |
Definition at line 151 of file TypesTable.cpp.
References Qname::getLocalName(), Qname::getNamespace(), Schema::SchemaUri, Schema::XSD_INVALID, and Schema::XSD_STRING.
Referenced by Schema::SchemaParser::getTypeId().
std::string Schema::TypesTable::getAtomicTypeName | ( | Schema::Type | t | ) | const |
Definition at line 196 of file TypesTable.cpp.
References Schema::XSDType::getQname().
Referenced by Schema::SchemaParser::getTypeId().
int Schema::TypesTable::getNumExtRefs | ( | ) | [inline] |
Qname& Schema::TypesTable::getExtRefName | ( | int | index | ) | [inline] |
int Schema::TypesTable::getExtRefType | ( | int | index | ) | [inline] |
void Schema::TypesTable::resolveForwardElementRefs | ( | const std::string & | name, | |
Element & | e | |||
) |
void Schema::TypesTable::resolveForwardAttributeRefs | ( | const std::string & | name, | |
Attribute & | a | |||
) |
int Schema::TypesTable::getCompleteXpath | ( | int | elemId, | |
std::string & | childName, | |||
int * | xPath, | |||
int | limits, | |||
int & | offset | |||
) |
XSDType * Schema::TypesTable::getTypePtr | ( | int | id | ) | const |
Definition at line 350 of file TypesTable.cpp.
References Schema::XSD_ANYURI.
Referenced by clean(), Schema::SchemaParser::getType(), and Schema::SchemaParser::getTypeName().
int Schema::TypesTable::getNumTypes | ( | void | ) | const [inline] |
bool Schema::TypesTable::detectUndefinedTypes | ( | void | ) |
void Schema::TypesTable::setTargetNamespace | ( | std::string | Uri | ) | [inline] |
std::string Schema::TypesTable::getTargetNamespace | ( | void | ) | [inline] |
Definition at line 86 of file TypesTable.h.
void Schema::TypesTable::printUndefinedTypes | ( | std::ostream & | out | ) |
Referenced by Schema::SchemaParser::finalize().