wsdlpull  1.23
Classes | Public Types | Public Member Functions | List of all members
Schema::ContentModel Class Reference

#include <ContentModel.h>

Classes

union  ContentType
 

Public Types

enum  ContentDiscriminator { Particle, ParticleGroup, Container }
 
typedef std::pair< ContentType, ContentDiscriminatorContentHolder
 
typedef std::list< ContentHolderContents
 
typedef std::list< ContentHolder >::iterator ContentsIterator
 

Public Member Functions

 ContentModel (Schema::Compositor)
 
 ~ContentModel ()
 
Schema::Compositor getCompositor () const
 
ContentsIterator begin ()
 
ContentsIterator end ()
 
void addElement (const Element &e)
 
void addGroup (const Group &e, bool own=false)
 
void addContentModel (const ContentModel *c)
 
void setMin (const int &m)
 
void setMax (const int &m)
 
int getMin () const
 
int getMax () const
 
int getNumParticles () const
 
bool anyContents () const
 
void matchforwardRef (const std::string &name, Element &e)
 

Detailed Description

Definition at line 36 of file ContentModel.h.

Member Typedef Documentation

Definition at line 53 of file ContentModel.h.

Definition at line 54 of file ContentModel.h.

Definition at line 55 of file ContentModel.h.

Member Enumeration Documentation

Enumerator
Particle 
ParticleGroup 
Container 

Definition at line 47 of file ContentModel.h.

Constructor & Destructor Documentation

Schema::ContentModel::ContentModel ( Schema::Compositor  c)

Definition at line 79 of file ContentModel.cpp.

Schema::ContentModel::~ContentModel ( )

Definition at line 89 of file ContentModel.cpp.

References begin(), Container, end(), Particle, and ParticleGroup.

Member Function Documentation

Schema::Compositor Schema::ContentModel::getCompositor ( ) const
inline
ContentModel::ContentsIterator Schema::ContentModel::begin ( )
inline
ContentModel::ContentsIterator Schema::ContentModel::end ( )
inline
void Schema::ContentModel::addElement ( const Element e)
void Schema::ContentModel::addGroup ( const Group e,
bool  own = false 
)
void Schema::ContentModel::addContentModel ( const ContentModel c)
void Schema::ContentModel::setMin ( const int &  m)
inline

Definition at line 122 of file ContentModel.h.

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

void Schema::ContentModel::setMax ( const int &  m)
inline

Definition at line 130 of file ContentModel.h.

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

int Schema::ContentModel::getMin ( ) const
inline

Definition at line 106 of file ContentModel.h.

int Schema::ContentModel::getMax ( ) const
inline

Definition at line 114 of file ContentModel.h.

int Schema::ContentModel::getNumParticles ( ) const
inline

Definition at line 138 of file ContentModel.h.

bool Schema::ContentModel::anyContents ( ) const
inline

Definition at line 145 of file ContentModel.h.

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

void Schema::ContentModel::matchforwardRef ( const std::string &  name,
Element e 
)

Definition at line 103 of file ContentModel.cpp.

References begin(), end(), and Particle.

Referenced by Schema::ComplexType::matchElementRef().


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