wsdlpull  1.23
List of all members
Schema::XSDType Class Referenceabstract

#include <XSDType.h>

Inheritance diagram for Schema::XSDType:
Schema::ComplexType Schema::SimpleType

Constructors and Destructors

 XSDType (const std::string &ns)
 
 XSDType ()
 
virtual ~ XSDType ()
 
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
 

isSimple

IS this a simple type or not

Returns
bool
virtual bool isSimple () const =0
 
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)
 

Detailed Description

Definition at line 37 of file XSDType.h.

Constructor & Destructor Documentation

◆ XSDType() [1/2]

Schema::XSDType::XSDType ( const std::string &  ns)
inline
Parameters
thenamespace uri of the type

Definition at line 125 of file XSDType.h.

◆ XSDType() [2/2]

Schema::XSDType::XSDType ( )
inline
Parameters
thenamespace uri of the type

Definition at line 136 of file XSDType.h.

◆ ~ XSDType()

virtual Schema::XSDType::~ XSDType ( )
inlinevirtual
Parameters
thenamespace uri of the type

Definition at line 48 of file XSDType.h.

Member Function Documentation

◆ getName()

std::string Schema::XSDType::getName ( ) const
inline

getName

Returns
NCName of the type

Definition at line 148 of file XSDType.h.

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

◆ getNamespace()

std::string Schema::XSDType::getNamespace ( ) const
inline

getNamespace

Returns
namespace this type belongs to

Definition at line 236 of file XSDType.h.

Referenced by Schema::SchemaParser::getType(), and Schema::SchemaValidator::validate().

◆ getQname()

Qname Schema::XSDType::getQname ( ) const
inline

getQName

Returns
QName (namespace qualified name)of the simple type

Definition at line 155 of file XSDType.h.

References Qname::setNamespace().

Referenced by Schema::TypesTable::addExternalTypeId(), Schema::TypesTable::addType(), and Schema::SchemaValidator::validate().

◆ getContentModel()

Schema::ContentModelType Schema::XSDType::getContentModel ( ) const
inline

getContentModel

Returns
content model which is simple,complex or mixed or none

Definition at line 164 of file XSDType.h.

Referenced by Schema::SchemaParser::getBasicContentType(), WsdlPull::WsdlInvoker::setInputValue(), and Schema::SchemaValidator::validate().

◆ getTypeId()

int Schema::XSDType::getTypeId ( ) const
inline

getTypeId

Returns
the unique type id

Definition at line 171 of file XSDType.h.

◆ getBaseTypeId()

int Schema::XSDType::getBaseTypeId ( ) const
inline

getBaseTypeId

Returns
the unique type id of this type's base type default is anyType

Definition at line 185 of file XSDType.h.

Referenced by Schema::TypeContainer::getBaseTypeContainer(), Schema::SimpleType::isvalidFacet(), Schema::SimpleType::isValidInt(), and Schema::SchemaValidator::validate().

◆ getBaseDerivation()

Schema::Derivation Schema::XSDType::getBaseDerivation ( ) const
inline

getBaseDerivation

Returns
Extension or Derivation

Definition at line 192 of file XSDType.h.

◆ isAnonymous()

bool Schema::XSDType::isAnonymous ( ) const
inline

Definition at line 178 of file XSDType.h.

◆ isSimple()

virtual bool Schema::XSDType::isSimple ( ) const
pure virtual

◆ setName()

void Schema::XSDType::setName ( std::string  name)
inlinevirtual

Definition at line 222 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setContentModel()

void Schema::XSDType::setContentModel ( Schema::ContentModelType  model)
inlinevirtual

Definition at line 229 of file XSDType.h.

Referenced by Schema::ComplexType::ComplexType(), and Schema::SimpleType::SimpleType().

◆ setTypeId()

void Schema::XSDType::setTypeId ( int  id)
inlinevirtual

Definition at line 199 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setAnonymous()

void Schema::XSDType::setAnonymous ( bool  flag)
inlinevirtual

Definition at line 215 of file XSDType.h.

Referenced by Schema::TypesTable::addType().

◆ setBaseType()

void Schema::XSDType::setBaseType ( int  id,
Schema::Derivation  type = Schema::Restriction 
)
inline

Definition at line 206 of file XSDType.h.

Referenced by Schema::SimpleType::setListType().

◆ setBaseTypeNamespace()

void Schema::XSDType::setBaseTypeNamespace ( std::string  ns)

The documentation for this class was generated from the following file: