Schema::XSDType Class Reference

#include <XSDType.h>

Inheritance diagram for Schema::XSDType:

Inheritance graph
[legend]
Collaboration diagram for Schema::XSDType:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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
Constructors and Destructors


 XSDType (const std::string &ns)
 XSDType ()
virtual ~XSDType ()
isAnonymous
is this an anonymous type ,created inside an element or group

Returns:
bool


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

Schema::XSDType::XSDType ( const std::string &  ns  )  [inline]

Parameters:
the namespace uri of the type

Definition at line 125 of file XSDType.h.

Schema::XSDType::XSDType (  )  [inline]

Definition at line 136 of file XSDType.h.

virtual Schema::XSDType::~XSDType (  )  [inline, virtual]

Definition at line 48 of file XSDType.h.


Member Function Documentation

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

std::string Schema::XSDType::getNamespace ( void   )  const [inline]

getNamespace

Returns:
namespace this type belongs to

Definition at line 236 of file XSDType.h.

Referenced by Schema::SchemaValidator::validate().

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

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

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

getTypeId

Returns:
the unique type id

Definition at line 171 of file XSDType.h.

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

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

getBaseDerivation

Returns:
Extension or Derivation

Definition at line 192 of file XSDType.h.

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

Definition at line 178 of file XSDType.h.

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

void Schema::XSDType::setName ( std::string  name  )  [inline, virtual]

Definition at line 222 of file XSDType.h.

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

void Schema::XSDType::setContentModel ( Schema::ContentModelType  model  )  [inline, virtual]

Definition at line 229 of file XSDType.h.

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

void Schema::XSDType::setTypeId ( int  id  )  [inline, virtual]

Definition at line 199 of file XSDType.h.

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

void Schema::XSDType::setAnonymous ( bool  flag  )  [inline, virtual]

Definition at line 215 of file XSDType.h.

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

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

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


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

Generated on Sat Jan 10 19:07:17 2009 for wsdlpull by  doxygen 1.5.5