It models a XML Schema SimpleType element.
More...
#include <SimpleType.h>
It models a XML Schema SimpleType element.
The simpleType element defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.
- See also
- Annotated, Identifiable
Definition at line 54 of file SimpleType.h.
te::xsd::SimpleType::SimpleType |
( |
Annotation * |
ann = 0 , |
|
|
std::string * |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
ann | An annotation. |
id | It specifies a unique ID for the element. |
- Note
- The SimpleType object will take the ownership of the annotation and id.
te::xsd::SimpleType::SimpleType |
( |
const SimpleType & |
rhs | ) |
|
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
te::xsd::SimpleType::~SimpleType |
( |
| ) |
|
Type* te::xsd::SimpleType::clone |
( |
| ) |
const |
|
virtual |
Annotation* te::xsd::Annotated::getAnnotation |
( |
| ) |
const |
|
inherited |
It returns the associated annotation.
- Returns
- The associated annotation.
It returns the constructor of the element.
- Returns
- The constructor of the element - (restriction | list | union).
std::string* te::xsd::Identifiable::getId |
( |
| ) |
const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
std::string* te::xsd::SimpleType::getName |
( |
| ) |
const |
It returns the name of the element.
- Returns
- The name of the element.
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. |
It sets the constructor of the element.
- Parameters
-
c | It specifies the constructor of the element. |
- Note
- The SimpleType object 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::SimpleType::setName |
( |
std::string * |
name | ) |
|
It sets the name of the element.
- Parameters
-
name | It specifies the element name. |
- Note
- The SimpleType object will take the ownership of the given pointer.
std::string* te::xsd::SimpleType::m_name |
|
private |
It specifies a name for the element. Required if the simpleType element is a child of the schema element, otherwise it is not allowed.
Definition at line 123 of file SimpleType.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/SimpleType.h