It defines a simple type as a collection (union) of values from specified simple data types. More...
#include <Union.h>
Public Member Functions | |
void | addMemberType (QName *name) |
It adds a member type to this Union element. More... | |
void | addSimpleType (SimpleType *a) |
It adds an internal simple type element to this Union element. More... | |
SimpleTypeConstructor * | clone () const |
It creates a clone of the object. More... | |
Annotation * | getAnnotation () const |
It returns the associated annotation. More... | |
std::string * | getId () const |
It returns a pointer (may be NULL) to the object id. More... | |
const boost::ptr_vector< QName > & | getMemberTypes () const |
It returns the list of member types. More... | |
const boost::ptr_vector < SimpleType > & | getSimpleTypes () const |
It returns the list of simple types defined on this union element. More... | |
Union & | operator= (const Union &rhs) |
Assignment operator. More... | |
void | setAnnotation (Annotation *ann) |
It sets the associated annotation. More... | |
void | setId (std::string *id) |
it sets the id. More... | |
Union (Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
Union (const Union &rhs) | |
Copy constructor. More... | |
~Union () | |
Destructor. More... | |
Private Attributes | |
boost::ptr_vector< SimpleType > | m_internalSimpleTypeVec |
Used when the union has internal simple types. More... | |
boost::ptr_vector< QName > | m_memberTypeVec |
It specifies a list of built-in data types or simpleType elements defined in a schema. (Optional) More... | |
It defines a simple type as a collection (union) of values from specified simple data types.
te::xsd::Union::Union | ( | Annotation * | ann = 0 , |
std::string * | id = 0 |
||
) |
te::xsd::Union::Union | ( | const Union & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
Definition at line 40 of file Union.cpp.
References m_internalSimpleTypeVec, and m_memberTypeVec.
void te::xsd::Union::addMemberType | ( | QName * | name | ) |
void te::xsd::Union::addSimpleType | ( | SimpleType * | a | ) |
|
virtual |
It creates a clone of the object.
Implements te::xsd::SimpleTypeConstructor.
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
const boost::ptr_vector< te::xsd::QName > & te::xsd::Union::getMemberTypes | ( | ) | const |
const boost::ptr_vector< te::xsd::SimpleType > & te::xsd::Union::getSimpleTypes | ( | ) | const |
te::xsd::Union & te::xsd::Union::operator= | ( | const Union & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 54 of file Union.cpp.
References m_internalSimpleTypeVec, m_memberTypeVec, and te::xsd::SimpleTypeConstructor::operator=().
|
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().
|
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 |
Used when the union has internal simple types.
Definition at line 120 of file Union.h.
Referenced by operator=(), and Union().
|
private |
It specifies a list of built-in data types or simpleType elements defined in a schema. (Optional)
Definition at line 119 of file Union.h.
Referenced by operator=(), and Union().