A class that models a XSD annotation element. More...
#include <Annotation.h>
Public Member Functions | |
void | add (AnnotationItem *item) |
It inserts the documentation (for human or for machine) into the annotation. More... | |
Annotation (std::string *id=0) | |
Constructor. More... | |
Annotation (const Annotation &rhs) | |
Copy constructor. More... | |
std::string * | getId () const |
It returns a pointer (may be NULL) to the object id. More... | |
const boost::ptr_vector < AnnotationItem > & | getItems () const |
Add a property with non-schema namespace to the attribute. More... | |
Annotation & | operator= (const Annotation &rhs) |
Assignment operator. More... | |
void | setId (std::string *id) |
it sets the id. More... | |
~Annotation () | |
Destructor. More... | |
Private Attributes | |
boost::ptr_vector< AnnotationItem > | m_itemVec |
It returns a map with other properties of the attribute element. More... | |
A class that models a XSD annotation element.
Definition at line 55 of file Annotation.h.
te::xsd::Annotation::Annotation | ( | std::string * | id = 0 | ) |
Constructor.
id | It specifies a unique ID for the annotation. |
Definition at line 34 of file Annotation.cpp.
te::xsd::Annotation::Annotation | ( | const Annotation & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
Definition at line 40 of file Annotation.cpp.
References m_itemVec.
te::xsd::Annotation::~Annotation | ( | ) |
Destructor.
Definition at line 47 of file Annotation.cpp.
void te::xsd::Annotation::add | ( | AnnotationItem * | item | ) |
It inserts the documentation (for human or for machine) into the annotation.
item | Some documentation. |
Definition at line 64 of file Annotation.cpp.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
const boost::ptr_vector< te::xsd::AnnotationItem > & te::xsd::Annotation::getItems | ( | ) | const |
Add a property with non-schema namespace to the attribute.
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)
Definition at line 71 of file Annotation.cpp.
te::xsd::Annotation & te::xsd::Annotation::operator= | ( | const Annotation & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 51 of file Annotation.cpp.
References m_itemVec, and te::xsd::Identifiable::operator=().
|
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().
|
private |
It returns a map with other properties of the attribute element.
Definition at line 118 of file Annotation.h.
Referenced by Annotation(), and operator=().