This class models an extension element that can be used to extend an existing simpleType or complexType element. More...
#include <Extension.h>
Public Member Functions | |
void | addAttribute (AbstractAttribute *a) |
It adds an attribute to this Extension element. More... | |
TypeDerivation * | clone () const |
Extension (QName *base=0, Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
Extension (const Extension &rhs) | |
Copy constructor. More... | |
Annotation * | getAnnotation () const |
It returns the associated annotation. More... | |
AnyAttribute * | getAnyAttribute () 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... | |
QName * | getBase () const |
It returns the name of a built-in data type, simple type or complex type that will be extended. More... | |
Content * | getContent () 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... | |
Extension & | operator= (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 | |
AnyAttribute * | m_anyAttr |
The anyAttribute element. (Optional) More... | |
boost::ptr_vector< AbstractAttribute > | m_attributeVec |
The list of attributes (attributes and attributeGroups). (Optional) More... | |
QName * | m_base |
It specifies the name of a built-in data type, a SimpleType element or a ComplexType element. (Required) More... | |
Content * | m_content |
It can be: group | all | choice | sequence. (Optional) More... | |
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.
te::xsd::Extension::Extension | ( | QName * | base = 0 , |
Annotation * | ann = 0 , |
||
std::string * | id = 0 |
||
) |
Constructor.
id | It specifies a unique ID for the element. It can be a NULL value. |
base | It 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.
rhs | Right-hand-side object. |
Definition at line 46 of file Extension.cpp.
te::xsd::Extension::~Extension | ( | ) |
Destructor.
Definition at line 55 of file Extension.cpp.
void te::xsd::Extension::addAttribute | ( | AbstractAttribute * | a | ) |
It adds an attribute to this Extension element.
a | The attribute that will be added. |
Definition at line 99 of file Extension.cpp.
|
inlinevirtual |
Implements te::xsd::TypeDerivation.
Definition at line 152 of file Extension.h.
|
inherited |
It 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.
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.
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.
Definition at line 67 of file Extension.cpp.
te::xsd::Content * te::xsd::Extension::getContent | ( | ) | const |
It returns the content of Extension element.
Definition at line 72 of file Extension.cpp.
|
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.
rhs | Right-hand-side object. |
Definition at line 62 of file Extension.cpp.
|
inherited |
It sets the associated annotation.
ann | The 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.
a | It specifies the anyAttribute. |
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.
base | The name of a built-in data type, simple type or complex type that will be extended. |
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.
c | The appropriate content to Extension element. |
Definition at line 93 of file Extension.cpp.
|
inherited |
it sets the id.
id | The 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().
|
private |
The anyAttribute element. (Optional)
Definition at line 159 of file Extension.h.
|
private |
The list of attributes (attributes and attributeGroups). (Optional)
Definition at line 158 of file Extension.h.
|
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.
|
private |
It can be: group | all | choice | sequence. (Optional)
Definition at line 157 of file Extension.h.