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

A class that models an XML Schema simpleContent element. More...

#include <SimpleContent.h>

Inheritance diagram for te::xsd::SimpleContent:
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...
 
TypeDerivationgetTypeDerivation () const
 It returns the derivation type of this SimpleContent. More...
 
SimpleContentoperator= (const SimpleContent &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 setTypeDerivation (TypeDerivation *dev)
 It sets the derivation type of this SimpleContent. More...
 
 SimpleContent (TypeDerivation *dev=0, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 SimpleContent (const SimpleContent &rhs)
 Copy constructor. More...
 
 ~SimpleContent ()
 Destructor. More...
 

Private Attributes

TypeDerivationm_derivation
 It can be: restriction (Restriction4SimpleContent) | extension. (Required) More...
 

Detailed Description

A class that models an XML Schema simpleContent element.

The simpleContent element contains extensions or restrictions on a text-only complex type or on a simple type as content and contains no elements.

Note
Parent elements: complexType.

Definition at line 50 of file SimpleContent.h.

Constructor & Destructor Documentation

te::xsd::SimpleContent::SimpleContent ( TypeDerivation dev = 0,
Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
devIt specifies the element content and can be: restriction | extension.
annAn annotation.
idIt specifies a unique ID for the element.
Note
The SimpleContent object will take the ownership of the pointers.

Definition at line 33 of file SimpleContent.cpp.

te::xsd::SimpleContent::SimpleContent ( const SimpleContent rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 40 of file SimpleContent.cpp.

te::xsd::SimpleContent::~SimpleContent ( )

Destructor.

Definition at line 46 of file SimpleContent.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.

te::xsd::TypeDerivation * te::xsd::SimpleContent::getTypeDerivation ( ) const

It returns the derivation type of this SimpleContent.

Returns
The derivation type: restriction | extension.

Definition at line 67 of file SimpleContent.cpp.

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

Assignment operator.

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

Definition at line 51 of file SimpleContent.cpp.

References te::xsd::TypeDerivation::clone(), m_derivation, te::xsd::Identifiable::operator=(), and te::xsd::Annotated::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().

void te::xsd::SimpleContent::setTypeDerivation ( TypeDerivation dev)

It sets the derivation type of this SimpleContent.

Parameters
devThe derivation type: restriction | extension.

Definition at line 72 of file SimpleContent.cpp.

Member Data Documentation

TypeDerivation* te::xsd::SimpleContent::m_derivation
private

It can be: restriction (Restriction4SimpleContent) | extension. (Required)

Definition at line 100 of file SimpleContent.h.

Referenced by operator=().


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