It models the selector element of an XML Schema.
More...
#include <Selector.h>
|
std::string * | m_xpath |
| It specifies an XPath expression, relative to the element being declared, that identifies the child elements to which the identity constraint applies. (Required) More...
|
|
It models the selector element of an XML Schema.
- Note
- Parent elements: key, keyref, unique.
Definition at line 44 of file Selector.h.
te::xsd::Selector::Selector |
( |
std::string * |
xpath, |
|
|
Annotation * |
ann = 0 , |
|
|
std::string * |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
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. |
- Note
- The Selector object will take the ownership of the given pointers.
te::xsd::Selector::Selector |
( |
const Selector & |
rhs | ) |
|
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
te::xsd::Selector::~Selector |
( |
| ) |
|
Annotation* te::xsd::Annotated::getAnnotation |
( |
| ) |
const |
|
inherited |
It returns the associated annotation.
- Returns
- The associated annotation.
std::string* te::xsd::Identifiable::getId |
( |
| ) |
const |
|
inherited |
It returns a pointer (may be NULL) to the object id.
std::string* te::xsd::Selector::getXPath |
( |
| ) |
const |
It returns the xpath expression of the Selector element.
- Returns
- The xpath expression.
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::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::Selector::setXPath |
( |
std::string * |
xpath | ) |
|
It sets the xpath expression of the Selector element.
- Parameters
-
xpath | It specifies the xpath expression of the Selector element. |
- Note
- The Selector object will take the ownership of the given pointer.
std::string* te::xsd::Selector::m_xpath |
|
private |
It specifies an XPath expression, relative to the element being declared, that identifies the child elements to which the identity constraint applies. (Required)
Definition at line 99 of file Selector.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/xsd/Selector.h