It models the unique element in an XML Schema. More...
#include <Unique.h>
Public Member Functions | |
void | addField (Field *f) |
Adds a new field to this element. More... | |
IdentityConstraint * | clone () const |
It clones the object. More... | |
Annotation * | getAnnotation () const |
It returns the associated annotation. More... | |
const boost::ptr_vector< Field > & | getFields () const |
It returns the list of Fields elements of this element. More... | |
std::string * | getId () const |
It returns a pointer (may be NULL) to the object id. More... | |
std::string * | getName () const |
It returns the name of this element. More... | |
Selector * | getSelector () const |
It returns the Selector element of this element. More... | |
Unique & | operator= (const Unique &rhs) |
Assignment operator. More... | |
void | setAnnotation (Annotation *ann) |
It sets the associated annotation. More... | |
void | setId (std::string *id) |
it sets the id. More... | |
void | setName (std::string *name) |
It sets a name for this element. More... | |
void | setSelector (Selector *s) |
It sets the Selector element of this element. More... | |
Unique (std::string *name, Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
Unique (const Unique &rhs) | |
Copy constructor. More... | |
~Unique () | |
Destructor. More... | |
Protected Attributes | |
boost::ptr_vector< Field > | m_fieldVec |
The list of fields. (Required at least one) More... | |
std::string * | m_name |
It specifies the name of this element. (Required) More... | |
Selector * | m_selector |
It specified the selector element of this. (Required) More... | |
It models the unique element in an XML Schema.
The unique element defines that an element or an attribute value must be unique within the scope.
te::xsd::Unique::Unique | ( | std::string * | name, |
Annotation * | ann = 0 , |
||
std::string * | id = 0 |
||
) |
Constructor.
id | It specifies a unique ID for the element. It may be a NULL value. |
name | It specifies the name of the unique element. It is required a non-NULL value. |
te::xsd::Unique::Unique | ( | const Unique & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
te::xsd::Unique::~Unique | ( | ) |
Destructor.
|
inherited |
Adds a new field to this element.
f | The field that will be added. |
|
virtual |
It clones the object.
Implements te::xsd::IdentityConstraint.
|
inherited |
It returns the associated annotation.
|
inherited |
It returns the list of Fields elements of this element.
|
inherited |
It returns a pointer (may be NULL) to the object id.
|
inherited |
It returns the name of this element.
|
inherited |
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 a name for this element.
name | A name for this element. Required a non-NULL value. |
|
inherited |
It sets the Selector element of this element.
s | It specifies the Selector element. |
|
protectedinherited |
The list of fields. (Required at least one)
Definition at line 147 of file IdentityConstraint.h.
|
protectedinherited |
It specifies the name of this element. (Required)
Definition at line 145 of file IdentityConstraint.h.
|
protectedinherited |
It specified the selector element of this. (Required)
Definition at line 146 of file IdentityConstraint.h.