This class models a key element from an XML Schema.
More...
#include <Key.h>
This class models a key element from an XML Schema.
- Note
- Parent elements: element.
Definition at line 43 of file Key.h.
te::xsd::Key::Key |
( |
std::string * |
name, |
|
|
Annotation * |
ann = 0 , |
|
|
std::string * |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
id | It specifies a unique ID for the element. It may be a NULL value. |
name | It specifies the name of the key element. It is required a non-NULL value. |
- Note
- The Key object will take the ownership of the id and name pointers.
te::xsd::Key::Key |
( |
const Key & |
rhs | ) |
|
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
void te::xsd::IdentityConstraint::addField |
( |
Field * |
f | ) |
|
|
inherited |
Adds a new field to this element.
- Parameters
-
f | The field that will be added. |
- Note
- The IdentityConstraint object will take the ownership of the given pointer.
Annotation* te::xsd::Annotated::getAnnotation |
( |
| ) |
const |
|
inherited |
It returns the associated annotation.
- Returns
- The associated annotation.
const boost::ptr_vector<Field>& te::xsd::IdentityConstraint::getFields |
( |
| ) |
const |
|
inherited |
It returns the list of Fields elements of this element.
- Returns
- The list of Fields.
std::string* te::xsd::Identifiable::getId |
( |
| ) |
const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
std::string* te::xsd::Key::getName |
( |
| ) |
const |
It returns the key name.
- Returns
- The key name.
Selector* te::xsd::IdentityConstraint::getSelector |
( |
| ) |
const |
|
inherited |
Key& te::xsd::Key::operator= |
( |
const Key & |
rhs | ) |
|
Assignment operator.
- Parameters
-
rhs | Right-hand-side object. |
- Returns
- A reference to this object.
void te::xsd::Annotated::setAnnotation |
( |
Annotation * |
ann | ) |
|
|
inherited |
It sets the associated annotation.
- Parameters
-
ann | The annotation to be associated to the object. The annotated class will take the ownership of the given pointer. |
void te::xsd::Identifiable::setId |
( |
std::string * |
id | ) |
|
|
inherited |
it sets the id.
- Parameters
-
id | The id to be associated to the object. It will take the ownership of the given string. |
void te::xsd::Key::setName |
( |
std::string * |
name | ) |
|
It sets the key name.
- Parameters
-
- Note
- The key will take the ownership of the given name.
void te::xsd::IdentityConstraint::setSelector |
( |
Selector * |
s | ) |
|
|
inherited |
It sets the Selector element of this element.
- Parameters
-
- Note
- The IdentityConstraint object will take the ownership of the given pointer.
boost::ptr_vector<Field> te::xsd::IdentityConstraint::m_fieldVec |
|
protectedinherited |
std::string* te::xsd::IdentityConstraint::m_name |
|
protectedinherited |
Selector* te::xsd::IdentityConstraint::m_selector |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/Key.h