This class models a key element from an XML Schema. More...
#include <Key.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 key name.  More... | |
| Selector * | getSelector () const | 
| It returns the Selector element of this element.  More... | |
| Key (std::string *name, Annotation *ann=0, std::string *id=0) | |
| Constructor.  More... | |
| Key (const Key &rhs) | |
| Copy constructor.  More... | |
| Key & | operator= (const Key &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 the key name.  More... | |
| void | setSelector (Selector *s) | 
| It sets the Selector element of this element.  More... | |
| ~Key () | |
| 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 class models a key element from an XML Schema.
| te::xsd::Key::Key | ( | std::string * | name, | 
| Annotation * | ann = 0,  | 
        ||
| std::string * | id = 0  | 
        ||
| ) | 
| te::xsd::Key::Key | ( | const Key & | rhs | ) | 
      
  | 
  inherited | 
Adds a new field to this element.
| f | The field that will be added. | 
Definition at line 85 of file IdentityConstraint.cpp.
      
  | 
  virtual | 
It clones the object.
Implements te::xsd::IdentityConstraint.
      
  | 
  inherited | 
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
      
  | 
  inherited | 
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::Key::getName | ( | ) | const | 
      
  | 
  inherited | 
It returns the Selector element of this element.
Definition at line 62 of file IdentityConstraint.cpp.
| te::xsd::Key & te::xsd::Key::operator= | ( | const Key & | 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::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::serialize::ReadIdentifiable().
| void te::xsd::Key::setName | ( | std::string * | name | ) | 
      
  | 
  inherited | 
It sets the Selector element of this element.
| s | It specifies the Selector element. | 
Definition at line 79 of file IdentityConstraint.cpp.
      
  | 
  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.
Referenced by te::xsd::IdentityConstraint::IdentityConstraint().
      
  | 
  protectedinherited | 
It specified the selector element of this. (Required)
Definition at line 146 of file IdentityConstraint.h.