te::xsd::SimpleTypeConstructor Class Referenceabstract

A base class for SympleType elements. List, Union and Restriction4SimpleType is derived from this base class. More...

#include <SimpleTypeConstructor.h>

Inheritance diagram for te::xsd::SimpleTypeConstructor:
te::xsd::Identifiable te::xsd::Annotated te::xsd::List te::xsd::Restriction4SimpleType te::xsd::Union

Public Member Functions

virtual SimpleTypeConstructorclone () const =0
 It creates a clone of the object. 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...
 
SimpleTypeConstructoroperator= (const SimpleTypeConstructor &rhs)
 Assignment operator not allowed. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setId (std::string *id)
 it sets the id. More...
 
 SimpleTypeConstructor (Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 SimpleTypeConstructor (const SimpleTypeConstructor &rhs)
 Copy constructor. More...
 
virtual ~SimpleTypeConstructor ()
 Virtual destructor. More...
 

Detailed Description

A base class for SympleType elements. List, Union and Restriction4SimpleType is derived from this base class.

Definition at line 42 of file SimpleTypeConstructor.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
annAn annotation.
idIt specifies a unique ID for the element. It can be a NULL value.
Note
The SimpleTypeConstructor object will take the ownership of the annotation and id.
te::xsd::SimpleTypeConstructor::SimpleTypeConstructor ( const SimpleTypeConstructor rhs)

Copy constructor.

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

Virtual destructor.

Member Function Documentation

virtual SimpleTypeConstructor* te::xsd::SimpleTypeConstructor::clone ( ) const
pure virtual

It creates a clone of the object.

Returns
A clone of the object. The caller will take the ownership of the returned pointer.

Implemented in te::xsd::Restriction4SimpleType, te::xsd::Union, and te::xsd::List.

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.

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

Assignment operator not allowed.

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.

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