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
 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.
te::xsd::Occurs::Occurs ( const Occurs rhs)
protected

Copy constructor.

Parameters
rhsRight-hand-side object.
te::xsd::Occurs::~Occurs ( )
protected

Destructor.

Member Function Documentation

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

It returns the maxOccurs values.

Returns
The maxOccurs value.
const unsigned int te::xsd::Occurs::getMinOccurs ( ) const

It returns the minOccurs values.

Returns
The minOccurs value.
Occurs& te::xsd::Occurs::operator= ( const Occurs rhs)
protected

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.
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.
void te::xsd::Occurs::setMinOccurs ( unsigned int  minOccurs)

It sets the minOccurs value.

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

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.

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.

const unsigned int te::xsd::Occurs::unbounded
static

Identifer for "unbounded" max values.

Definition at line 108 of file Occurs.h.


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