wsdlpull  1.23
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Schema::ComplexType Class Reference

#include <ComplexType.h>

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

Public Member Functions

 ComplexType (const std::string &)
 
 ~ComplexType ()
 
bool isSimple () const
 
int getContentType () const
 
int getNumAttributes () const
 
int getAttributeType (int index)
 
std::string getAttributeName (int index) const
 
ContentModelgetContents () const
 
const AttributegetAttribute (const std::string &name) const
 
const AttributegetAttribute (int index) const
 
std::list< Attribute > & pAttributeList ()
 
void setSimpleContentType (int id)
 
void setContents (ContentModel *ct)
 
void addAttribute (const Attribute &a, bool fwdRef=false)
 
void addAttributeGroupName (const Qname &qn)
 
void matchAttributeRef (const std::string &name, Attribute &a)
 
void matchElementRef (const std::string &name, Element &e)
 
bool checkOccurrences (void)
 
void resetCounters (void)
 
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

Returns
bool
bool isAnonymous () const
 
isSimple

IS this a simple type or not

Returns
bool
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 34 of file ComplexType.h.

Constructor & Destructor Documentation

Schema::ComplexType::ComplexType ( const std::string &  ns)

Definition at line 26 of file ComplexType.cpp.

References Schema::Complex, and Schema::XSDType::setContentModel().

Schema::ComplexType::~ComplexType ( )
inline

Definition at line 170 of file ComplexType.h.

Member Function Documentation

bool Schema::ComplexType::isSimple ( ) const
inlinevirtual

Implements Schema::XSDType.

Definition at line 111 of file ComplexType.h.

int Schema::ComplexType::getContentType ( ) const
inline
int Schema::ComplexType::getNumAttributes ( ) const
inline

Definition at line 118 of file ComplexType.h.

Referenced by Schema::TypeContainer::getAttributeContainer().

int Schema::ComplexType::getAttributeType ( int  index)
inline
std::string Schema::ComplexType::getAttributeName ( int  index) const
inline
ContentModel * Schema::ComplexType::getContents ( ) const
inline
const Attribute * Schema::ComplexType::getAttribute ( const std::string &  name) const
const Attribute * Schema::ComplexType::getAttribute ( int  index) const

Definition at line 102 of file ComplexType.cpp.

std::list< Attribute > & Schema::ComplexType::pAttributeList ( )
inline

Definition at line 139 of file ComplexType.h.

void Schema::ComplexType::setSimpleContentType ( int  id)
inline

Definition at line 147 of file ComplexType.h.

void Schema::ComplexType::setContents ( ContentModel ct)
inline

Definition at line 163 of file ComplexType.h.

void Schema::ComplexType::addAttribute ( const Attribute a,
bool  fwdRef = false 
)

Definition at line 38 of file ComplexType.cpp.

References getAttribute(), and Schema::Attribute::getName().

void Schema::ComplexType::addAttributeGroupName ( const Qname qn)

Definition at line 53 of file ComplexType.cpp.

void Schema::ComplexType::matchAttributeRef ( const std::string &  name,
Attribute a 
)

Definition at line 69 of file ComplexType.cpp.

References getAttribute().

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

void Schema::ComplexType::matchElementRef ( const std::string &  name,
Element e 
)
bool Schema::ComplexType::checkOccurrences ( void  )
void Schema::ComplexType::resetCounters ( void  )
std::string Schema::XSDType::getName ( ) const
inlineinherited

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
inlineinherited

getNamespace

Returns
namespace this type belongs to

Definition at line 236 of file XSDType.h.

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

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

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
inlineinherited

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
inlineinherited

getTypeId

Returns
the unique type id

Definition at line 171 of file XSDType.h.

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

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
inlineinherited

getBaseDerivation

Returns
Extension or Derivation

Definition at line 192 of file XSDType.h.

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

Definition at line 178 of file XSDType.h.

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

Definition at line 222 of file XSDType.h.

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

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

Definition at line 229 of file XSDType.h.

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

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

Definition at line 199 of file XSDType.h.

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

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

Definition at line 215 of file XSDType.h.

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

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

Definition at line 206 of file XSDType.h.

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

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

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