wsdlpull  1.23
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

§ ComplexType()

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

Definition at line 26 of file ComplexType.cpp.

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

§ ~ComplexType()

Schema::ComplexType::~ComplexType ( )
inline

Definition at line 170 of file ComplexType.h.

Member Function Documentation

§ isSimple()

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

Implements Schema::XSDType.

Definition at line 111 of file ComplexType.h.

§ getContentType()

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

§ getNumAttributes()

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

§ getAttributeType()

int Schema::ComplexType::getAttributeType ( int  index)
inline

Definition at line 125 of file ComplexType.h.

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

§ getAttributeName()

std::string Schema::ComplexType::getAttributeName ( int  index) const
inline

§ getContents()

ContentModel * Schema::ComplexType::getContents ( ) const
inline

§ getAttribute() [1/2]

const Attribute * Schema::ComplexType::getAttribute ( const std::string &  name) const

§ getAttribute() [2/2]

const Attribute * Schema::ComplexType::getAttribute ( int  index) const

Definition at line 102 of file ComplexType.cpp.

§ pAttributeList()

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

Definition at line 139 of file ComplexType.h.

§ setSimpleContentType()

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

Definition at line 147 of file ComplexType.h.

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

§ setContents()

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

§ addAttribute()

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

Definition at line 38 of file ComplexType.cpp.

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

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

§ addAttributeGroupName()

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

Definition at line 53 of file ComplexType.cpp.

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

§ matchAttributeRef()

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

§ matchElementRef()

void Schema::ComplexType::matchElementRef ( const std::string &  name,
Element e 
)

§ checkOccurrences()

bool Schema::ComplexType::checkOccurrences ( void  )

§ resetCounters()

void Schema::ComplexType::resetCounters ( void  )

§ getName()

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

§ getNamespace()

std::string Schema::XSDType::getNamespace ( void  ) const
inlineinherited

§ getQname()

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

§ getContentModel()

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

§ getTypeId()

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

getTypeId

Returns
the unique type id

Definition at line 171 of file XSDType.h.

Referenced by WsdlPull::WsdlInvoker::getServiceEndPoint(), and Schema::SchemaValidator::instance().

§ getBaseTypeId()

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

§ getBaseDerivation()

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

getBaseDerivation

Returns
Extension or Derivation

Definition at line 192 of file XSDType.h.

§ isAnonymous()

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

Definition at line 178 of file XSDType.h.

§ setName()

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

Definition at line 222 of file XSDType.h.

Referenced by Schema::TypesTable::addType(), and Schema::SchemaParser::parseSchemaTag().

§ setContentModel()

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

§ setTypeId()

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

Definition at line 199 of file XSDType.h.

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

§ setAnonymous()

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

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

Definition at line 206 of file XSDType.h.

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

§ setBaseTypeNamespace()

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

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