This class models a group element in a XML Schema. More...
#include <Group.h>
Public Member Functions | |
Content * | clone () const |
Annotation * | getAnnotation () const |
It returns the associated annotation. More... | |
Content * | getContent () const |
It returns the content of this group. 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... | |
std::string * | getName () const |
It returns the name of the group. More... | |
QName * | getRef () const |
It returns the reference to a name of another group. More... | |
Group (unsigned int minOccurs=1, unsigned int maxOccurs=1, Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
Group (const Group &rhs) | |
Copy constructor. More... | |
Group & | operator= (const Group &rhs) |
Assignment operator. More... | |
void | setAnnotation (Annotation *ann) |
It sets the associated annotation. More... | |
void | setContent (Content *c) |
It sets the group content. It can be one of: all | choice | sequence. 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... | |
void | setName (std::string *name) |
It sets a name for the group. More... | |
void | setRef (QName *ref) |
It sets a reference to a name of another group. More... | |
~Group () | |
Destructor. More... | |
Static Public Attributes | |
static const unsigned int | unbounded = std::numeric_limits<unsigned int>::max() |
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 | |
Content * | m_content |
It can be one of: all | choice | sequence. (Optional) More... | |
std::string * | m_name |
It specifies a name for the group. (Optional) More... | |
QName * | m_ref |
It refers to the name of another group. Name and ref attributes cannot both be present. More... | |
This class models a group element in a XML Schema.
The group element is used to define a group of elements to be used in complex type definitions.
te::xsd::Group::Group | ( | unsigned int | minOccurs = 1 , |
unsigned int | maxOccurs = 1 , |
||
Annotation * | ann = 0 , |
||
std::string * | id = 0 |
||
) |
te::xsd::Group::Group | ( | const Group & | rhs | ) |
|
virtual |
Implements te::xsd::Content.
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
te::xsd::Content * te::xsd::Group::getContent | ( | ) | const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
|
inherited |
It returns the maxOccurs values.
Definition at line 40 of file Occurs.cpp.
|
inherited |
It returns the minOccurs values.
Definition at line 35 of file Occurs.cpp.
References te::xsd::Occurs::m_minOccurs.
std::string * te::xsd::Group::getName | ( | ) | const |
te::xsd::QName * te::xsd::Group::getRef | ( | ) | const |
te::xsd::Group & te::xsd::Group::operator= | ( | const Group & | rhs | ) |
|
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. |
Definition at line 35 of file Annotated.cpp.
Referenced by te::xsd::serialize::ReadAnnotated().
void te::xsd::Group::setContent | ( | Content * | c | ) |
|
inherited |
it sets the id.
id | The id to be associated to the object. It will take the ownership of the given string. |
Definition at line 29 of file Identifiable.cpp.
References te::xsd::Identifiable::m_id.
Referenced by te::xsd::serialize::ReadIdentifiable().
|
inherited |
It sets the maxOccurs value.
maxOccurs | The maxOccurs value. The value can be any number >= 0. |
Definition at line 50 of file Occurs.cpp.
Referenced by te::xsd::serialize::ReadOccurs().
|
inherited |
It sets the minOccurs value.
minOccurs | The minOccurs value. The value can be any number >= 0. |
Definition at line 45 of file Occurs.cpp.
Referenced by te::xsd::serialize::ReadOccurs().
void te::xsd::Group::setName | ( | std::string * | name | ) |
void te::xsd::Group::setRef | ( | QName * | ref | ) |
|
private |
|
protectedinherited |
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 te::xsd::Occurs::operator=().
|
protectedinherited |
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 te::xsd::Occurs::getMinOccurs(), and te::xsd::Occurs::operator=().
|
private |
|
private |
|
staticinherited |
Identifer for "unbounded" max values.
Definition at line 108 of file Occurs.h.
Referenced by te::xsd::serialize::ReadOccurs().