Schema::ContentModel Class Reference

#include <ContentModel.h>

List of all members.

Public Types

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

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)

Classes

union  ContentType


Detailed Description

Definition at line 36 of file ContentModel.h.


Member Typedef Documentation

typedef std::pair<ContentType,ContentDiscriminator> Schema::ContentModel::ContentHolder

Definition at line 53 of file ContentModel.h.

typedef std::list<ContentHolder> Schema::ContentModel::Contents

Definition at line 54 of file ContentModel.h.

typedef std::list<ContentHolder>::iterator Schema::ContentModel::ContentsIterator

Definition at line 55 of file ContentModel.h.


Member Enumeration Documentation

enum Schema::ContentModel::ContentDiscriminator

Enumerator:
Particle 
ParticleGroup 
Container 

Definition at line 47 of file ContentModel.h.


Constructor & Destructor Documentation

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

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]

Definition at line 84 of file ContentModel.h.

ContentModel::ContentsIterator Schema::ContentModel::begin (  )  [inline]

Definition at line 91 of file ContentModel.h.

Referenced by Schema::TypeContainer::getChildContainer(), Schema::TypeContainer::getValue(), matchforwardRef(), and ~ContentModel().

ContentModel::ContentsIterator Schema::ContentModel::end (  )  [inline]

Definition at line 98 of file ContentModel.h.

Referenced by Schema::TypeContainer::getChildContainer(), Schema::TypeContainer::getValue(), matchforwardRef(), and ~ContentModel().

void Schema::ContentModel::addElement ( const Element e  ) 

Definition at line 27 of file ContentModel.cpp.

References Schema::All, Schema::ContentModel::ContentType::e, Schema::Element::getMax(), Schema::Element::getName(), Schema::Element::getType(), Particle, and Schema::XSD_ANY.

void Schema::ContentModel::addGroup ( const Group e,
bool  own = false 
)

Definition at line 51 of file ContentModel.cpp.

References Schema::All, Schema::ContentModel::ContentType::g, Schema::Group::getContents(), ParticleGroup, and Schema::Group::setContents().

void Schema::ContentModel::addContentModel ( const ContentModel c  ) 

Definition at line 66 of file ContentModel.cpp.

References Schema::All, Schema::ContentModel::ContentType::c, and Container.

void Schema::ContentModel::setMin ( const int &  m  )  [inline]

Definition at line 122 of file ContentModel.h.

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

Definition at line 130 of file ContentModel.h.

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.

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:
Generated on Mon Jul 19 21:20:20 2010 for wsdlpull by  doxygen 1.4.7