A class that models a XSD annotation element.
More...
#include <Annotation.h>
A class that models a XSD annotation element.
- See also
- AnnotationItem, AppInfo, Documentation, Identifiable, Annotated, Attribute
- Note
- Parent element: any element.
Definition at line 55 of file Annotation.h.
te::xsd::Annotation::Annotation |
( |
std::string * |
id = 0 | ) |
|
Constructor.
- Parameters
-
id | It specifies a unique ID for the annotation. |
- Note
- The annotation will take the ownership of the id.
te::xsd::Annotation::Annotation |
( |
const Annotation & |
rhs | ) |
|
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
te::xsd::Annotation::~Annotation |
( |
| ) |
|
It inserts the documentation (for human or for machine) into the annotation.
- Parameters
-
- Precondition
- Don't inform a NULL pointer
- Note
- The annotation will take the ownership of the given item.
std::string* te::xsd::Identifiable::getId |
( |
| ) |
const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
const boost::ptr_vector<AnnotationItem>& te::xsd::Annotation::getItems |
( |
| ) |
const |
Add a property with non-schema namespace to the attribute.
- Parameters
-
key | The name of the property. |
value | The value of the property. |
Returns a pointer to the vector of Annotation's items (AppInfos and/or Documentations)
Assignment operator.
- Parameters
-
rhs | Right-hand-side object. |
- Returns
- A reference to this object.
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. |
It returns a map with other properties of the attribute element.
- Returns
- Other properties of the attribute element as a key-value map.The list of comments for humans or for machines. (Optional)
Definition at line 118 of file Annotation.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/Annotation.h