wsdlpull 1.23
Loading...
Searching...
No Matches
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)
 
Constructors and Destructors
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()

◆ getNumAttributes()

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

Definition at line 118 of file ComplexType.h.

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

◆ getAttributeType()

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

◆ 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.

◆ setContents()

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

Definition at line 163 of file ComplexType.h.

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

◆ addAttributeGroupName()

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

Definition at line 53 of file ComplexType.cpp.

◆ 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

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

◆ 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

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(), WsdlPull::WsdlInvoker::setInputValue(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

◆ getTypeId()

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

getTypeId

Returns
the unique type id

Definition at line 171 of file XSDType.h.

◆ getBaseTypeId()

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(), Schema::SchemaValidator::validate(), and Schema::SchemaValidator::validate().

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

◆ setContentModel()

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

Definition at line 229 of file XSDType.h.

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

◆ 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::SimpleType::setListType().

◆ setBaseTypeNamespace()

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

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