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 |
||
) |
Constructor.
ann | An annotation. |
id | It specifies a unique ID for the element. |
te::xsd::Union::Union | ( | const Union & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
te::xsd::Union::~Union | ( | ) |
Destructor.
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.
|
inherited |
It returns a pointer (may be NULL) to the object id.
const boost::ptr_vector<QName>& te::xsd::Union::getMemberTypes | ( | ) | const |
It returns the list of member types.
const boost::ptr_vector<SimpleType>& te::xsd::Union::getSimpleTypes | ( | ) | const |
It returns the list of simple types defined on this union element.
Assignment operator.
rhs | Right-hand-side object. |
|
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. |
|
inherited |
it sets the id.
id | The id to be associated to the object. It will take the ownership of the given string. |
|
private |
|
private |