All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 29 of file SimpleTypeConstructor.cpp.

te::xsd::SimpleTypeConstructor::SimpleTypeConstructor ( const SimpleTypeConstructor rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 35 of file SimpleTypeConstructor.cpp.

te::xsd::SimpleTypeConstructor::~SimpleTypeConstructor ( )
virtual

Virtual destructor.

Definition at line 41 of file SimpleTypeConstructor.cpp.

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.

Referenced by te::xsd::SimpleType::operator=(), and te::xsd::SimpleType::SimpleType().

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.

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

Assignment operator not allowed.

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

Definition at line 45 of file SimpleTypeConstructor.cpp.

References te::xsd::Identifiable::operator=(), and te::xsd::Annotated::operator=().

Referenced by te::xsd::List::operator=(), te::xsd::Union::operator=(), and te::xsd::Restriction4SimpleType::operator=().

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


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