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 |
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 |
||
) |
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::Group::Group | ( | const Group & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
te::xsd::Group::~Group | ( | ) |
Destructor.
|
virtual |
Implements te::xsd::Content.
|
inherited |
It returns the associated annotation.
Content* te::xsd::Group::getContent | ( | ) | const |
It returns the content of this group.
|
inherited |
It returns a pointer (may be NULL) to the object id.
|
inherited |
It returns the maxOccurs values.
|
inherited |
It returns the minOccurs values.
std::string* te::xsd::Group::getName | ( | ) | const |
It returns the name of the group.
QName* te::xsd::Group::getRef | ( | ) | const |
It returns the reference to a name of another group.
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. |
void te::xsd::Group::setContent | ( | Content * | c | ) |
It sets the group content. It can be one of: all | choice | sequence.
c | The appropriate content to group. |
|
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. |
void te::xsd::Group::setName | ( | std::string * | name | ) |
It sets a name for the group.
name | The group name. |
void te::xsd::Group::setRef | ( | QName * | ref | ) |
It sets a reference to a name of another group.
ref | A reference to a name of another group. |
|
private |
|
protectedinherited |
|
protectedinherited |
|
private |
|
private |
|
staticinherited |