Schema::TypesTable Class Reference

#include <TypesTable.h>

List of all members.

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 ()
QnamegetExtRefName (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)
XSDTypegetTypePtr (int id) const
int getNumTypes (void) const
bool detectUndefinedTypes (void)
void setTargetNamespace (std::string Uri)
std::string getTargetNamespace (void)
void printUndefinedTypes (std::ostream &out)


Detailed Description

Definition at line 35 of file TypesTable.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 66 of file TypesTable.cpp.

References clean().


Member Function Documentation

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 73 of file TypesTable.cpp.

Referenced by Schema::SchemaParser::getTypeName().

int Schema::TypesTable::addExternalTypeId ( const Qname type,
const XSDType pType 
)

Definition at line 196 of file TypesTable.cpp.

References Schema::XSDType::getQname().

Referenced by Schema::SchemaParser::getTypeId().

int Schema::TypesTable::getNumExtRefs (  )  [inline]

Definition at line 55 of file TypesTable.h.

Referenced by Schema::SchemaParser::finalize().

Qname& Schema::TypesTable::getExtRefName ( int  index  )  [inline]

Definition at line 59 of file TypesTable.h.

Referenced by Schema::SchemaParser::finalize().

int Schema::TypesTable::getExtRefType ( int  index  )  [inline]

Definition at line 63 of file TypesTable.h.

Referenced by Schema::SchemaParser::finalize().

void Schema::TypesTable::resolveForwardElementRefs ( const std::string &  name,
Element e 
)

Definition at line 309 of file TypesTable.cpp.

void Schema::TypesTable::resolveForwardAttributeRefs ( const std::string &  name,
Attribute a 
)

Definition at line 324 of file TypesTable.cpp.

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(), Schema::SchemaParser::getTypeName(), and printUndefinedTypes().

int Schema::TypesTable::getNumTypes ( void   )  const [inline]

Definition at line 77 of file TypesTable.h.

Referenced by Schema::SchemaParser::getNumTypes().

bool Schema::TypesTable::detectUndefinedTypes ( void   ) 

Definition at line 299 of file TypesTable.cpp.

Referenced by Schema::SchemaParser::finalize().

void Schema::TypesTable::setTargetNamespace ( std::string  Uri  )  [inline]

Definition at line 82 of file TypesTable.h.

Referenced by Schema::SchemaParser::parseSchemaTag().

std::string Schema::TypesTable::getTargetNamespace ( void   )  [inline]

Definition at line 86 of file TypesTable.h.

void Schema::TypesTable::printUndefinedTypes ( std::ostream &  out  ) 

Definition at line 339 of file TypesTable.cpp.

References getTypePtr().

Referenced by Schema::SchemaParser::finalize().


The documentation for this class was generated from the following files:
Generated on Mon Jul 19 21:20:30 2010 for wsdlpull by  doxygen 1.4.7