This class models an extension element that can be used to extend an existing simpleType or complexType element.
More...
#include <Extension.h>
This class models an extension element that can be used to extend an existing simpleType or complexType element.
Definition at line 52 of file Extension.h.
te::xsd::Extension::Extension |
( |
QName * |
base = 0 , |
|
|
Annotation * |
ann = 0 , |
|
|
std::string * |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
id | It specifies a unique ID for the element. It can be a NULL value. |
base | It specifies the name of a built-in data type, a SimpleType element or a ComplexType element. It can not be a NULL value. |
te::xsd::Extension::Extension |
( |
const Extension & |
rhs | ) |
|
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
te::xsd::Extension::~Extension |
( |
| ) |
|
It adds an attribute to this Extension element.
- Parameters
-
a | The attribute that will be added. |
- Note
- The Extension 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.
It returns the anyAttribute defined on this Extension element.
- Returns
- The anyAttribute.
const boost::ptr_vector<AbstractAttribute>& te::xsd::Extension::getAttributes |
( |
| ) |
const |
It returns the list of attributes of this Extension element.
- Returns
- The list of attributes.
QName* te::xsd::Extension::getBase |
( |
| ) |
const |
It returns the name of a built-in data type, simple type or complex type that will be extended.
- Returns
- The name of a built-in data type, simple type or complex type that will be extended.
Content* te::xsd::Extension::getContent |
( |
| ) |
const |
It returns the content of Extension element.
- Returns
- The content of this Extension element.
std::string* te::xsd::Identifiable::getId |
( |
| ) |
const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
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::Extension::setAnyAttribute |
( |
AnyAttribute * |
a | ) |
|
It sets the anyAttribute to Extension element.
- Parameters
-
a | It specifies the anyAttribute. |
- Note
- The Extension object will take the ownership of the given pointer.
void te::xsd::Extension::setBase |
( |
QName * |
base | ) |
|
It sets the name of a built-in data type, simple type or complex type that will be extended.
- Parameters
-
base | The name of a built-in data type, simple type or complex type that will be extended. |
- Note
- The Extension object will take the ownership of the given pointer.
void te::xsd::Extension::setContent |
( |
Content * |
c | ) |
|
It sets the content of this Extension element. It can be one of: group | all | choice | sequence.
- Parameters
-
c | The appropriate content to Extension element. |
- Note
- The Extension 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. |
The anyAttribute element. (Optional)
Definition at line 159 of file Extension.h.
The list of attributes (attributes and attributeGroups). (Optional)
Definition at line 158 of file Extension.h.
QName* te::xsd::Extension::m_base |
|
private |
Content* te::xsd::Extension::m_content |
|
private |
It can be: group | all | choice | sequence. (Optional)
Definition at line 157 of file Extension.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/Extension.h