te::xsd::SimpleType Class Reference

It models a XML Schema SimpleType element. More...

#include <SimpleType.h>

Inheritance diagram for te::xsd::SimpleType:
te::xsd::Type te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

Type * clone () const
 
Annotation * getAnnotation () const
 It returns the associated annotation. More...
 
SimpleTypeConstructor * getConstructor () const
 It returns the constructor of the element. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
std::string * getName () const
 It returns the name of the element. More...
 
SimpleType & operator= (const SimpleType &rhs)
 Assignment operator. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setConstructor (SimpleTypeConstructor *c)
 It sets the constructor of the element. More...
 
void setId (std::string *id)
 it sets the id. More...
 
void setName (std::string *name)
 It sets the name of the element. More...
 
 SimpleType (Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 SimpleType (const SimpleType &rhs)
 Copy constructor. More...
 
 ~SimpleType ()
 Destructor. More...
 

Private Attributes

SimpleTypeConstructor * m_constructor
 restriction | list | union. More...
 
std::string * m_name
 It specifies a name for the element. Required if the simpleType element is a child of the schema element, otherwise it is not allowed. More...
 

Detailed Description

It models a XML Schema SimpleType element.

The simpleType element defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.

See also
Annotated, Identifiable

Definition at line 54 of file SimpleType.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
annAn annotation.
idIt specifies a unique ID for the element.
Note
The SimpleType object will take the ownership of the annotation and id.
te::xsd::SimpleType::SimpleType ( const SimpleType &  rhs)

Copy constructor.

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

Destructor.

Member Function Documentation

Type* te::xsd::SimpleType::clone ( ) const
virtual

Implements te::xsd::Type.

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

It returns the associated annotation.

Returns
The associated annotation.
SimpleTypeConstructor* te::xsd::SimpleType::getConstructor ( ) const

It returns the constructor of the element.

Returns
The constructor of the element - (restriction | list | union).
std::string* te::xsd::Identifiable::getId ( ) const
inherited

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

std::string* te::xsd::SimpleType::getName ( ) const

It returns the name of the element.

Returns
The name of the element.
SimpleType& te::xsd::SimpleType::operator= ( const SimpleType &  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::SimpleType::setConstructor ( SimpleTypeConstructor *  c)

It sets the constructor of the element.

Parameters
cIt specifies the constructor of the element.
Note
The SimpleType object 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::SimpleType::setName ( std::string *  name)

It sets the name of the element.

Parameters
nameIt specifies the element name.
Note
The SimpleType object will take the ownership of the given pointer.

Member Data Documentation

SimpleTypeConstructor* te::xsd::SimpleType::m_constructor
private

restriction | list | union.

Definition at line 124 of file SimpleType.h.

std::string* te::xsd::SimpleType::m_name
private

It specifies a name for the element. Required if the simpleType element is a child of the schema element, otherwise it is not allowed.

Definition at line 123 of file SimpleType.h.


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