It models the field element of an XML Schema. More...
#include <Field.h>
Public Member Functions | |
| Field (std::string *xpath, Annotation *ann=0, std::string *id=0) | |
| Constructor. More... | |
| Field (const Field &rhs) | |
| Copy constructor. More... | |
| 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... | |
| std::string * | getXPath () const |
| It returns the xpath expression of the Field element. More... | |
| Field & | operator= (const Field &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 | setXPath (std::string *xpath) |
| It sets the xpath expression of the Field element. More... | |
| ~Field () | |
| Destructor. More... | |
Private Attributes | |
| std::string * | m_xpath |
| It identifies a single element or attribute whose content or value is used for the constraint. (Required) More... | |
It models the field element of an XML Schema.
Definition at line 47 of file attic/src/xsd/Field.h.
| te::xsd::Field::Field | ( | std::string * | xpath, |
| Annotation * | ann = 0, |
||
| std::string * | id = 0 |
||
| ) |
Constructor.
| id | It specifies a unique ID for the element. It may be a NULL value. |
| xpath | It identifies a single element or attribute whose content or value is used for the constraint. It is required a non-NULL value. |
Definition at line 32 of file attic/src/xsd/Field.cpp.
| te::xsd::Field::Field | ( | const Field & | rhs | ) |
Copy constructor.
| rhs | Right-hand-side object. |
Definition at line 39 of file attic/src/xsd/Field.cpp.
| te::xsd::Field::~Field | ( | ) |
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
References te::xsd::Identifiable::m_id.
| std::string * te::xsd::Field::getXPath | ( | ) | const |
It returns the xpath expression of the Field element.
Definition at line 56 of file attic/src/xsd/Field.cpp.
References m_xpath.
| te::xsd::Field & te::xsd::Field::operator= | ( | const Field & | rhs | ) |
Assignment operator.
| rhs | Right-hand-side object. |
Definition at line 51 of file attic/src/xsd/Field.cpp.
|
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. |
Definition at line 35 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
Referenced by te::xsd::serialize::ReadAnnotated().
|
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().
| void te::xsd::Field::setXPath | ( | std::string * | xpath | ) |
|
private |
It identifies a single element or attribute whose content or value is used for the constraint. (Required)
Definition at line 102 of file attic/src/xsd/Field.h.
Referenced by getXPath(), setXPath(), and ~Field().