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

Copy constructor.

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

Destructor.

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.
TypeDerivation* te::xsd::Extension::clone ( ) const
inlinevirtual

Implements te::xsd::TypeDerivation.

Definition at line 152 of file Extension.h.

Annotation* te::xsd::Annotated::getAnnotation ( ) const
inherited

It returns the associated annotation.

Returns
The associated annotation.
AnyAttribute* te::xsd::Extension::getAnyAttribute ( ) const

It returns the anyAttribute defined on this Extension element.

Returns
The anyAttribute.
const boost::ptr_vector<AbstractAttribute>& te::xsd::Extension::getAttributes ( ) const

It returns the list of attributes of this Extension element.

Returns
The list of attributes.
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.
Content* te::xsd::Extension::getContent ( ) const

It returns the content of Extension element.

Returns
The content of this Extension element.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

It returns a pointer (may be NULL) to the object id.

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

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 file: