Schema::Element Class Reference

#include <Element.h>

Collaboration diagram for Schema::Element:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Element (const std::string &name, const std::string &elemNs, const std::string &typeNs, int type_id, int minimum=1, int maximum=1, bool qualified=false, std::string def="", std::string fixed="")
 Element (void)
void setType (int id)
std::string getName () const
void setTypeNamespace (const std::string &ns)
std::string getTypeNamespace () const
void setNamespace (const std::string &ns)
std::string getNamespace () const
int getType () const
int getMax () const
int getMin () const
std::string & defaultVal ()
std::string & fixedVal ()
bool isQualified () const
Elementoperator= (const Element &e)
void setMin (int m)
void setMax (int m)
void addConstraint (Constraint *c)
Constraintconstraint ()
const std::list< std::string > & getConstraints ()

Public Attributes

int nOccurrences


Detailed Description

Definition at line 30 of file Element.h.


Constructor & Destructor Documentation

Schema::Element::Element ( const std::string &  name,
const std::string &  elemNs,
const std::string &  typeNs,
int  type_id,
int  minimum = 1,
int  maximum = 1,
bool  qualified = false,
std::string  def = "",
std::string  fixed = "" 
) [inline]

Definition at line 82 of file Element.h.

Schema::Element::Element ( void   )  [inline]

Definition at line 106 of file Element.h.


Member Function Documentation

void Schema::Element::setType ( int  id  )  [inline]

Definition at line 118 of file Element.h.

std::string Schema::Element::getName (  )  const [inline]

Definition at line 125 of file Element.h.

Referenced by Schema::ContentModel::addElement(), and main().

void Schema::Element::setTypeNamespace ( const std::string &  ns  )  [inline]

Definition at line 132 of file Element.h.

std::string Schema::Element::getTypeNamespace (  )  const [inline]

Definition at line 139 of file Element.h.

void Schema::Element::setNamespace ( const std::string &  ns  )  [inline]

Definition at line 232 of file Element.h.

std::string Schema::Element::getNamespace (  )  const [inline]

Definition at line 239 of file Element.h.

int Schema::Element::getType (  )  const [inline]

int Schema::Element::getMax (  )  const [inline]

Definition at line 154 of file Element.h.

Referenced by Schema::ContentModel::addElement().

int Schema::Element::getMin (  )  const [inline]

Definition at line 160 of file Element.h.

std::string & Schema::Element::defaultVal (  )  [inline]

Definition at line 167 of file Element.h.

std::string & Schema::Element::fixedVal (  )  [inline]

Definition at line 174 of file Element.h.

bool Schema::Element::isQualified (  )  const [inline]

Definition at line 181 of file Element.h.

Referenced by operator=().

Element & Schema::Element::operator= ( const Element e  )  [inline]

Definition at line 188 of file Element.h.

References cstr, dval, elemName, elemType, fval, isQualified(), and typeNamespace.

void Schema::Element::setMin ( int  m  )  [inline]

Definition at line 203 of file Element.h.

void Schema::Element::setMax ( int  m  )  [inline]

Definition at line 210 of file Element.h.

void Schema::Element::addConstraint ( Constraint c  )  [inline]

Definition at line 217 of file Element.h.

Constraint * Schema::Element::constraint (  )  [inline]

Definition at line 224 of file Element.h.

const std::list<std::string>& Schema::Element::getConstraints (  ) 


Member Data Documentation

Definition at line 63 of file Element.h.


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

Generated on Sat Jan 10 19:07:16 2009 for wsdlpull by  doxygen 1.5.5