This class models a sequence element in a XML Schema. More...
#include <Sequence.h>
Public Member Functions | |
| void | addAny (Any *a) |
| It adds an any to this Sequence element. More... | |
| void | addContent (Content *c) |
| It adds a Content element to this Sequence element. More... | |
| void | addElement (Element *e) |
| It adds an element to this Sequence element. More... | |
| Content * | clone () const |
| Annotation * | getAnnotation () const |
| It returns the associated annotation. More... | |
| const boost::ptr_vector< Any > & | getAnys () const |
| It returns the list of any elements of Choice. More... | |
| const boost::ptr_vector < Content > & | getContents () const |
| It returns the list of Content elements of Choice. More... | |
| const boost::ptr_vector < Element > & | getElements () const |
| It returns the list of elements of All. More... | |
| std::string * | getId () const |
| It returns a pointer (may be NULL) to the object id. More... | |
| const unsigned int | getMaxOccurs () const |
| It returns the maxOccurs values. More... | |
| const unsigned int | getMinOccurs () const |
| It returns the minOccurs values. More... | |
| Sequence & | operator= (const Sequence &rhs) |
| Assignment operator. More... | |
| Sequence (unsigned int minOccurs=1, unsigned int maxOccurs=1, Annotation *ann=0, std::string *id=0) | |
| Constructor. More... | |
| Sequence (const Sequence &rhs) | |
| Copy constructor. More... | |
| void | setAnnotation (Annotation *ann) |
| It sets the associated annotation. More... | |
| void | setId (std::string *id) |
| it sets the id. More... | |
| void | setMaxOccurs (unsigned int maxOccurs) |
| It sets the maxOccurs value. More... | |
| void | setMinOccurs (unsigned int minOccurs) |
| It sets the minOccurs value. More... | |
| ~Sequence () | |
| Destructor. More... | |
Static Public Attributes | |
| static const unsigned int | unbounded |
| Identifer for "unbounded" max values. 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... | |
Private Attributes | |
| boost::ptr_vector< Any > | m_anyVec |
| The list of any elements. More... | |
| boost::ptr_vector< Content > | m_contentVec |
| The list of Contents elements (group | choice | sequence). More... | |
| boost::ptr_vector< Element > | m_elementVec |
| The list of elements. More... | |
This class models a sequence element in a XML Schema.
The sequence element specifies that the child elements must appear in a sequence. Each child element can occur from 0 to any number of times.
Definition at line 58 of file Sequence.h.
| te::xsd::Sequence::Sequence | ( | unsigned int | minOccurs = 1, |
| unsigned int | maxOccurs = 1, |
||
| Annotation * | ann = 0, |
||
| std::string * | id = 0 |
||
| ) |
Constructor.
| id | It specifies a unique ID for the element. It can be a NULL value. |
| minOccurs | The minimum number of times the element can occur. |
| maxOccurs | The maximum number of times the element can occur. |
| te::xsd::Sequence::Sequence | ( | const Sequence & | rhs | ) |
Copy constructor.
| rhs | Right-hand-side object. |
| te::xsd::Sequence::~Sequence | ( | ) |
Destructor.
| void te::xsd::Sequence::addAny | ( | Any * | a | ) |
| void te::xsd::Sequence::addContent | ( | Content * | c | ) |
| void te::xsd::Sequence::addElement | ( | Element * | e | ) |
|
virtual |
Implements te::xsd::Content.
|
inherited |
It returns the associated annotation.
| const boost::ptr_vector<Any>& te::xsd::Sequence::getAnys | ( | ) | const |
It returns the list of any elements of Choice.
| const boost::ptr_vector<Content>& te::xsd::Sequence::getContents | ( | ) | const |
| const boost::ptr_vector<Element>& te::xsd::Sequence::getElements | ( | ) | const |
It returns the list of elements of All.
|
inherited |
It returns a pointer (may be NULL) to the object id.
|
inherited |
It returns the maxOccurs values.
|
inherited |
It returns the minOccurs values.
Assignment operator.
| rhs | Right-hand-side object. |
|
inherited |
It sets the associated annotation.
| ann | The annotation to be associated to the object. The annotated class will take the ownership of the given pointer. |
|
inherited |
it sets the id.
| id | The id to be associated to the object. It will take the ownership of the given string. |
|
inherited |
It sets the maxOccurs value.
| maxOccurs | The maxOccurs value. The value can be any number >= 0. |
|
inherited |
It sets the minOccurs value.
| minOccurs | The minOccurs value. The value can be any number >= 0. |
|
private |
The list of any elements.
Definition at line 148 of file Sequence.h.
|
private |
The list of Contents elements (group | choice | sequence).
Definition at line 147 of file Sequence.h.
|
private |
The list of elements.
Definition at line 146 of file Sequence.h.
|
protectedinherited |
|
protectedinherited |
|
staticinherited |