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. |
te::xsd::SimpleContent::SimpleContent | ( | const SimpleContent & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
te::xsd::SimpleContent::~SimpleContent | ( | ) |
Destructor.
|
inherited |
It returns the associated annotation.
|
inherited |
It returns a pointer (may be NULL) to the object id.
TypeDerivation* te::xsd::SimpleContent::getTypeDerivation | ( | ) | const |
It returns the derivation type of this SimpleContent.
SimpleContent& te::xsd::SimpleContent::operator= | ( | const SimpleContent & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
|
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. |
|
inherited |
it sets the id.
id | The id to be associated to the object. It will take the ownership of the given string. |
void te::xsd::SimpleContent::setTypeDerivation | ( | TypeDerivation * | dev | ) |
It sets the derivation type of this SimpleContent.
dev | The derivation type: restriction | extension. |
|
private |
It can be: restriction (Restriction4SimpleContent) | extension. (Required)
Definition at line 100 of file SimpleContent.h.