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

This class models an extension element that can be used to extend an existing simpleType or complexType element. More...

#include <Extension.h>

Inheritance diagram for te::xsd::Extension:
te::xsd::TypeDerivation te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

void addAttribute (AbstractAttribute *a)
 It adds an attribute to this Extension element. More...
 
TypeDerivationclone () const
 
 Extension (QName *base=0, Annotation *ann=0, std::string *id=0)
 Constructor. More...
 
 Extension (const Extension &rhs)
 Copy constructor. More...
 
AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
AnyAttributegetAnyAttribute () const
 It returns the anyAttribute defined on this Extension element. More...
 
const boost::ptr_vector
< AbstractAttribute > & 
getAttributes () const
 It returns the list of attributes of this Extension element. More...
 
QNamegetBase () const
 It returns the name of a built-in data type, simple type or complex type that will be extended. More...
 
ContentgetContent () const
 It returns the content of Extension element. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
Extensionoperator= (const Extension &rhs)
 Assignment operator. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setAnyAttribute (AnyAttribute *a)
 It sets the anyAttribute to Extension element. More...
 
void setBase (QName *base)
 It sets the name of a built-in data type, simple type or complex type that will be extended. More...
 
void setContent (Content *c)
 It sets the content of this Extension element. It can be one of: group | all | choice | sequence. More...
 
void setId (std::string *id)
 it sets the id. More...
 
 ~Extension ()
 Destructor. More...
 

Private Attributes

AnyAttributem_anyAttr
 The anyAttribute element. (Optional) More...
 
boost::ptr_vector
< AbstractAttribute
m_attributeVec
 The list of attributes (attributes and attributeGroups). (Optional) More...
 
QNamem_base
 It specifies the name of a built-in data type, a SimpleType element or a ComplexType element. (Required) More...
 
Contentm_content
 It can be: group | all | choice | sequence. (Optional) More...
 

Detailed Description

This class models an extension element that can be used to extend an existing simpleType or complexType element.

Definition at line 52 of file Extension.h.

Constructor & Destructor Documentation

te::xsd::Extension::Extension ( QName base = 0,
Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
idIt specifies a unique ID for the element. It can be a NULL value.
baseIt specifies the name of a built-in data type, a SimpleType element or a ComplexType element. It can not be a NULL value.

Definition at line 37 of file Extension.cpp.

te::xsd::Extension::Extension ( const Extension rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 46 of file Extension.cpp.

te::xsd::Extension::~Extension ( )

Destructor.

Definition at line 55 of file Extension.cpp.

Member Function Documentation

void te::xsd::Extension::addAttribute ( AbstractAttribute a)

It adds an attribute to this Extension element.

Parameters
aThe attribute that will be added.
Note
The Extension object will take the ownership of the given pointer.

Definition at line 99 of file Extension.cpp.

TypeDerivation* te::xsd::Extension::clone ( ) const
inlinevirtual

Implements te::xsd::TypeDerivation.

Definition at line 152 of file Extension.h.

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.

te::xsd::AnyAttribute * te::xsd::Extension::getAnyAttribute ( ) const

It returns the anyAttribute defined on this Extension element.

Returns
The anyAttribute.

Definition at line 82 of file Extension.cpp.

const boost::ptr_vector< te::xsd::AbstractAttribute > & te::xsd::Extension::getAttributes ( ) const

It returns the list of attributes of this Extension element.

Returns
The list of attributes.

Definition at line 77 of file Extension.cpp.

te::xsd::QName * te::xsd::Extension::getBase ( ) const

It returns the name of a built-in data type, simple type or complex type that will be extended.

Returns
The name of a built-in data type, simple type or complex type that will be extended.

Definition at line 67 of file Extension.cpp.

te::xsd::Content * te::xsd::Extension::getContent ( ) const

It returns the content of Extension element.

Returns
The content of this Extension element.

Definition at line 72 of file Extension.cpp.

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::Extension & te::xsd::Extension::operator= ( const Extension rhs)

Assignment operator.

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

Definition at line 62 of file Extension.cpp.

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::Extension::setAnyAttribute ( AnyAttribute a)

It sets the anyAttribute to Extension element.

Parameters
aIt specifies the anyAttribute.
Note
The Extension object will take the ownership of the given pointer.

Definition at line 104 of file Extension.cpp.

void te::xsd::Extension::setBase ( QName base)

It sets the name of a built-in data type, simple type or complex type that will be extended.

Parameters
baseThe name of a built-in data type, simple type or complex type that will be extended.
Note
The Extension object will take the ownership of the given pointer.

Definition at line 87 of file Extension.cpp.

void te::xsd::Extension::setContent ( Content c)

It sets the content of this Extension element. It can be one of: group | all | choice | sequence.

Parameters
cThe appropriate content to Extension element.
Note
The Extension object will take the ownership of the given pointer.

Definition at line 93 of file Extension.cpp.

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

Member Data Documentation

AnyAttribute* te::xsd::Extension::m_anyAttr
private

The anyAttribute element. (Optional)

Definition at line 159 of file Extension.h.

boost::ptr_vector<AbstractAttribute> te::xsd::Extension::m_attributeVec
private

The list of attributes (attributes and attributeGroups). (Optional)

Definition at line 158 of file Extension.h.

QName* te::xsd::Extension::m_base
private

It specifies the name of a built-in data type, a SimpleType element or a ComplexType element. (Required)

Definition at line 156 of file Extension.h.

Content* te::xsd::Extension::m_content
private

It can be: group | all | choice | sequence. (Optional)

Definition at line 157 of file Extension.h.


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