All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::xsd::Selector Class Reference

It models the selector element of an XML Schema. More...

#include <Selector.h>

Inheritance diagram for te::xsd::Selector:
te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

AnnotationgetAnnotation () 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 Selector element. More...
 
Selectoroperator= (const Selector &rhs)
 Assignment operator. More...
 
 Selector (std::string *xpath, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 Selector (const Selector &rhs)
 Copy constructor. 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 Selector element. More...
 
 ~Selector ()
 Destructor. More...
 

Private Attributes

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...
 

Detailed Description

It models the selector element of an XML Schema.

Note
Parent elements: key, keyref, unique.

Definition at line 44 of file Selector.h.

Constructor & Destructor Documentation

te::xsd::Selector::Selector ( std::string *  xpath,
Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
idIt specifies a unique ID for the element. It may be a NULL value.
xpathIt 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.

Definition at line 32 of file Selector.cpp.

References m_xpath.

te::xsd::Selector::Selector ( const Selector rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 40 of file Selector.cpp.

References m_xpath.

te::xsd::Selector::~Selector ( )

Destructor.

Definition at line 48 of file Selector.cpp.

Member Function Documentation

te::xsd::Annotation * te::xsd::Annotated::getAnnotation ( ) const
inherited

It returns the associated annotation.

Returns
The associated annotation.

Definition at line 30 of file Annotated.cpp.

References te::xsd::Annotated::m_annotation.

std::string * te::xsd::Identifiable::getId ( ) const
inherited

It returns a pointer (may be NULL) to the object id.

Definition at line 35 of file Identifiable.cpp.

std::string * te::xsd::Selector::getXPath ( ) const

It returns the xpath expression of the Selector element.

Returns
The xpath expression.

Definition at line 58 of file Selector.cpp.

te::xsd::Selector & te::xsd::Selector::operator= ( const Selector rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.

Definition at line 53 of file Selector.cpp.

void te::xsd::Annotated::setAnnotation ( Annotation ann)
inherited

It sets the associated annotation.

Parameters
annThe 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.

Referenced by te::xsd::serialize::ReadAnnotated().

void te::xsd::Identifiable::setId ( std::string *  id)
inherited

it sets the id.

Parameters
idThe 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::Selector::setXPath ( std::string *  xpath)

It sets the xpath expression of the Selector element.

Parameters
xpathIt specifies the xpath expression of the Selector element.
Note
The Selector object will take the ownership of the given pointer.

Definition at line 63 of file Selector.cpp.

Member Data Documentation

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.

Referenced by Selector().


The documentation for this class was generated from the following files: