wsdlpull 1.23
Public Member Functions | Public Attributes | List of all members
Schema::Element Class Reference

#include <Element.h>

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

◆ Element() [1/2]

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.

◆ Element() [2/2]

Schema::Element::Element ( void  )
inline

Definition at line 106 of file Element.h.

Member Function Documentation

◆ setType()

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

Definition at line 118 of file Element.h.

◆ getName()

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

Definition at line 125 of file Element.h.

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

◆ setTypeNamespace()

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

Definition at line 132 of file Element.h.

◆ getTypeNamespace()

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

Definition at line 139 of file Element.h.

◆ setNamespace()

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

Definition at line 232 of file Element.h.

◆ getNamespace()

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

Definition at line 239 of file Element.h.

◆ getType()

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

◆ getMax()

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

Definition at line 154 of file Element.h.

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

◆ getMin()

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

Definition at line 160 of file Element.h.

◆ defaultVal()

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

Definition at line 167 of file Element.h.

◆ fixedVal()

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

Definition at line 174 of file Element.h.

◆ isQualified()

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

Definition at line 181 of file Element.h.

Referenced by operator=().

◆ operator=()

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

Definition at line 188 of file Element.h.

References isQualified().

◆ setMin()

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

Definition at line 203 of file Element.h.

◆ setMax()

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

Definition at line 210 of file Element.h.

◆ addConstraint()

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

Definition at line 217 of file Element.h.

◆ constraint()

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

Definition at line 224 of file Element.h.

◆ getConstraints()

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

Member Data Documentation

◆ nOccurrences

int Schema::Element::nOccurrences

Definition at line 63 of file Element.h.


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