This is the base class for XML Schema elements that are related to identity constraint. More...
#include <IdentityConstraint.h>
Public Member Functions | |
void | addField (Field *f) |
Adds a new field to this element. More... | |
virtual IdentityConstraint * | clone () const =0 |
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... | |
IdentityConstraint (std::string *name, Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
IdentityConstraint (const IdentityConstraint &rhs) | |
Copy constructor. More... | |
IdentityConstraint & | operator= (const IdentityConstraint &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... | |
virtual | ~IdentityConstraint () |
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... | |
This is the base class for XML Schema elements that are related to identity constraint.
Specifically the classes Key, KeyRef and Unique are derived from this base class.
Definition at line 53 of file IdentityConstraint.h.
te::xsd::IdentityConstraint::IdentityConstraint | ( | std::string * | name, |
Annotation * | ann = 0 , |
||
std::string * | id = 0 |
||
) |
Constructor.
id | It specifies a unique ID for this element. It may be a NULL value. |
name | It specifies the name of this element. It is required a non-NULL value. |
Definition at line 34 of file IdentityConstraint.cpp.
References m_name.
te::xsd::IdentityConstraint::IdentityConstraint | ( | const IdentityConstraint & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
Definition at line 42 of file IdentityConstraint.cpp.
|
virtual |
Destructor.
Definition at line 46 of file IdentityConstraint.cpp.
void te::xsd::IdentityConstraint::addField | ( | Field * | f | ) |
Adds a new field to this element.
f | The field that will be added. |
Definition at line 85 of file IdentityConstraint.cpp.
|
pure virtual |
It clones the object.
Implemented in te::xsd::KeyRef, te::xsd::Key, and te::xsd::Unique.
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
const boost::ptr_vector< te::xsd::Field > & te::xsd::IdentityConstraint::getFields | ( | ) | const |
It returns the list of Fields elements of this element.
Definition at line 67 of file IdentityConstraint.cpp.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
std::string * te::xsd::IdentityConstraint::getName | ( | ) | const |
It returns the name of this element.
Definition at line 57 of file IdentityConstraint.cpp.
te::xsd::Selector * te::xsd::IdentityConstraint::getSelector | ( | ) | const |
It returns the Selector element of this element.
Definition at line 62 of file IdentityConstraint.cpp.
te::xsd::IdentityConstraint & te::xsd::IdentityConstraint::operator= | ( | const IdentityConstraint & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 52 of file IdentityConstraint.cpp.
|
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().
|
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().
void te::xsd::IdentityConstraint::setName | ( | std::string * | name | ) |
It sets a name for this element.
name | A name for this element. Required a non-NULL value. |
Definition at line 72 of file IdentityConstraint.cpp.
void te::xsd::IdentityConstraint::setSelector | ( | Selector * | s | ) |
It sets the Selector element of this element.
s | It specifies the Selector element. |
Definition at line 79 of file IdentityConstraint.cpp.
|
protected |
The list of fields. (Required at least one)
Definition at line 147 of file IdentityConstraint.h.
|
protected |
It specifies the name of this element. (Required)
Definition at line 145 of file IdentityConstraint.h.
Referenced by IdentityConstraint().
|
protected |
It specified the selector element of this. (Required)
Definition at line 146 of file IdentityConstraint.h.