A class that models an XML Schema simpleContent element. More...
#include <SimpleContent.h>
  
 Public Member Functions | |
| Annotation * | getAnnotation () const | 
| It returns the associated annotation.  More... | |
| std::string * | getId () const | 
| It returns a pointer (may be NULL) to the object id.  More... | |
| TypeDerivation * | getTypeDerivation () const | 
| It returns the derivation type of this SimpleContent.  More... | |
| SimpleContent & | operator= (const SimpleContent &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 | setTypeDerivation (TypeDerivation *dev) | 
| It sets the derivation type of this SimpleContent.  More... | |
| SimpleContent (TypeDerivation *dev=0, Annotation *ann=0, std::string *id=0) | |
| Constructor.  More... | |
| SimpleContent (const SimpleContent &rhs) | |
| Copy constructor.  More... | |
| ~SimpleContent () | |
| Destructor.  More... | |
Private Attributes | |
| TypeDerivation * | m_derivation | 
| It can be: restriction (Restriction4SimpleContent) | extension. (Required)  More... | |
A class that models an XML Schema simpleContent element.
The simpleContent element contains extensions or restrictions on a text-only complex type or on a simple type as content and contains no elements.
Definition at line 50 of file SimpleContent.h.
| te::xsd::SimpleContent::SimpleContent | ( | TypeDerivation * | dev = 0,  | 
        
| Annotation * | ann = 0,  | 
        ||
| std::string * | id = 0  | 
        ||
| ) | 
Constructor.
| dev | It specifies the element content and can be: restriction | extension. | 
| ann | An annotation. | 
| id | It specifies a unique ID for the element. | 
Definition at line 33 of file SimpleContent.cpp.
| te::xsd::SimpleContent::SimpleContent | ( | const SimpleContent & | rhs | ) | 
Copy constructor.
| rhs | Right-hand-side object. | 
Definition at line 40 of file SimpleContent.cpp.
| te::xsd::SimpleContent::~SimpleContent | ( | ) | 
Destructor.
Definition at line 46 of file SimpleContent.cpp.
      
  | 
  inherited | 
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
      
  | 
  inherited | 
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
| te::xsd::TypeDerivation * te::xsd::SimpleContent::getTypeDerivation | ( | ) | const | 
It returns the derivation type of this SimpleContent.
Definition at line 67 of file SimpleContent.cpp.
| te::xsd::SimpleContent & te::xsd::SimpleContent::operator= | ( | const SimpleContent & | rhs | ) | 
Assignment operator.
| rhs | Right-hand-side object. | 
Definition at line 51 of file SimpleContent.cpp.
References te::xsd::TypeDerivation::clone(), m_derivation, te::xsd::Identifiable::operator=(), and te::xsd::Annotated::operator=().
      
  | 
  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::SimpleContent::setTypeDerivation | ( | TypeDerivation * | dev | ) | 
It sets the derivation type of this SimpleContent.
| dev | The derivation type: restriction | extension. | 
Definition at line 72 of file SimpleContent.cpp.
      
  | 
  private | 
It can be: restriction (Restriction4SimpleContent) | extension. (Required)
Definition at line 100 of file SimpleContent.h.
Referenced by operator=().