This is the base class for XML Schema elements that are related to identity constraint.  
 More...
#include <IdentityConstraint.h>
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.
- See also
 - Key, KeyRef, Unique 
 
Definition at line 53 of file IdentityConstraint.h.
 
      
        
          | te::xsd::IdentityConstraint::IdentityConstraint  | 
          ( | 
          std::string *  | 
          name,  | 
        
        
           | 
           | 
          Annotation *  | 
          ann = 0,  | 
        
        
           | 
           | 
          std::string *  | 
          id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | 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. | 
  
   
- Note
 - The IdentityConstraint object will take the ownership of the id and name pointers. 
 
 
 
Copy constructor. 
- Parameters
 - 
  
    | rhs | Right-hand-side object. | 
  
   
 
 
  
  
      
        
          | virtual te::xsd::IdentityConstraint::~IdentityConstraint  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
      
        
          | void te::xsd::IdentityConstraint::addField  | 
          ( | 
          Field *  | 
          f | ) | 
           | 
        
      
 
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 | 
        
      
 
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::IdentityConstraint::getName  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the name of this element. 
- Returns
 - The name of this element. 
 
 
 
      
        
          | Selector* te::xsd::IdentityConstraint::getSelector  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
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::IdentityConstraint::setName  | 
          ( | 
          std::string *  | 
          name | ) | 
           | 
        
      
 
It sets a name for this element. 
- Parameters
 - 
  
    | name | A name for this element. Required a non-NULL value. | 
  
   
- Note
 - The IdentityConstraint object will take the ownership of the given pointer. 
 
 
 
      
        
          | void te::xsd::IdentityConstraint::setSelector  | 
          ( | 
          Selector *  | 
          s | ) | 
           | 
        
      
 
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 | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | std::string* te::xsd::IdentityConstraint::m_name | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | Selector* te::xsd::IdentityConstraint::m_selector | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/IdentityConstraint.h