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.
te::xsd::SimpleContent::SimpleContent ( const SimpleContent rhs)

Copy constructor.

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

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.

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

It returns the derivation type of this SimpleContent.

Returns
The derivation type: restriction | extension.
SimpleContent& te::xsd::SimpleContent::operator= ( const SimpleContent 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::SimpleContent::setTypeDerivation ( TypeDerivation dev)

It sets the derivation type of this SimpleContent.

Parameters
devThe derivation type: restriction | extension.

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.


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