All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::xsd::Occurs Class Reference

A base class for XSD classes that have occurs attributes. More...

#include <Occurs.h>

Inheritance diagram for te::xsd::Occurs:
te::xsd::All te::xsd::Any te::xsd::Choice te::xsd::Element te::xsd::Group te::xsd::Sequence

Public Member Functions

const unsigned int getMaxOccurs () const
 It returns the maxOccurs values. More...
 
const unsigned int getMinOccurs () const
 It returns the minOccurs values. More...
 
void setMaxOccurs (unsigned int maxOccurs)
 It sets the maxOccurs value. More...
 
void setMinOccurs (unsigned int minOccurs)
 It sets the minOccurs value. More...
 

Static Public Attributes

static const unsigned int unbounded = std::numeric_limits<unsigned int>::max()
 Identifer for "unbounded" max values. More...
 

Protected Member Functions

 Occurs (unsigned int minOccurs=1, unsigned int maxOccurs=1)
 Constructor. More...
 
 Occurs (const Occurs &rhs)
 Copy constructor. More...
 
Occursoperator= (const Occurs &rhs)
 Assignment operator. More...
 
 ~Occurs ()
 Destructor. More...
 

Protected Attributes

unsigned int m_maxOccurs
 It specifies the maximum number of times the any element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1. (Optional) More...
 
unsigned int m_minOccurs
 It specifies the minimum number of times the any element can occur in the parent element. The value can be any number >= 0. Default value is 1. (Optional) More...
 

Detailed Description

A base class for XSD classes that have occurs attributes.

See also
All, Any, Choice, Group, LocalElement, Sequence

Definition at line 43 of file Occurs.h.

Constructor & Destructor Documentation

te::xsd::Occurs::Occurs ( unsigned int  minOccurs = 1,
unsigned int  maxOccurs = 1 
)
protected

Constructor.

Parameters
minOccursThe minimum number of times the element can occur.
maxOccursThe maximum number of times the element can occur.

Definition at line 55 of file Occurs.cpp.

te::xsd::Occurs::Occurs ( const Occurs rhs)
protected

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 61 of file Occurs.cpp.

te::xsd::Occurs::~Occurs ( )
protected

Destructor.

Definition at line 67 of file Occurs.cpp.

Member Function Documentation

const unsigned int te::xsd::Occurs::getMaxOccurs ( ) const

It returns the maxOccurs values.

Returns
The maxOccurs value.

Definition at line 40 of file Occurs.cpp.

const unsigned int te::xsd::Occurs::getMinOccurs ( ) const

It returns the minOccurs values.

Returns
The minOccurs value.

Definition at line 35 of file Occurs.cpp.

References m_minOccurs.

te::xsd::Occurs & te::xsd::Occurs::operator= ( const Occurs rhs)
protected

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.

Definition at line 71 of file Occurs.cpp.

References m_maxOccurs, and m_minOccurs.

Referenced by te::xsd::Any::operator=(), te::xsd::All::operator=(), and te::xsd::Choice::operator=().

void te::xsd::Occurs::setMaxOccurs ( unsigned int  maxOccurs)

It sets the maxOccurs value.

Parameters
maxOccursThe maxOccurs value. The value can be any number >= 0.
Note
If you want to set no limit on the maximum number, use the value "unbounded" defined as te::xsd::Occurs::unbounded.

Definition at line 50 of file Occurs.cpp.

Referenced by te::xsd::serialize::ReadOccurs().

void te::xsd::Occurs::setMinOccurs ( unsigned int  minOccurs)

It sets the minOccurs value.

Parameters
minOccursThe minOccurs value. The value can be any number >= 0.

Definition at line 45 of file Occurs.cpp.

Referenced by te::xsd::serialize::ReadOccurs().

Member Data Documentation

unsigned int te::xsd::Occurs::m_maxOccurs
protected

It specifies the maximum number of times the any element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1. (Optional)

Definition at line 113 of file Occurs.h.

Referenced by operator=().

unsigned int te::xsd::Occurs::m_minOccurs
protected

It specifies the minimum number of times the any element can occur in the parent element. The value can be any number >= 0. Default value is 1. (Optional)

Definition at line 112 of file Occurs.h.

Referenced by getMinOccurs(), and operator=().

const unsigned int te::xsd::Occurs::unbounded = std::numeric_limits<unsigned int>::max()
static

Identifer for "unbounded" max values.

Definition at line 108 of file Occurs.h.

Referenced by te::xsd::serialize::ReadOccurs().


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