te::xsd::Field Class Reference

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

#include <Field.h>

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

Public Member Functions

 Field (std::string *xpath, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 Field (const Field &rhs)
 Copy constructor. More...
 
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 Field element. More...
 
Fieldoperator= (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...
 

Detailed Description

It models the field element of an XML Schema.

Note
Parent elements: key, keyref, unique.

Definition at line 47 of file Field.h.

Constructor & Destructor Documentation

te::xsd::Field::Field ( 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 Field object will take the ownership of the given pointers.
te::xsd::Field::Field ( const Field rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.
te::xsd::Field::~Field ( )

Destructor.

Member Function Documentation

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::Field::getXPath ( ) const

It returns the xpath expression of the Field element.

Returns
The xpath expression.
Field& te::xsd::Field::operator= ( const Field rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.
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.
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.
void te::xsd::Field::setXPath ( std::string *  xpath)

It sets the xpath expression of the Field element.

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

Member Data Documentation

std::string* te::xsd::Field::m_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 Field.h.


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