It is used to define a simple type element as a list of values. More...
#include <List.h>
Public Member Functions | |
| 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... | |
| QName * | getItemType () const |
| It returns name of a built-in data type or simpleType element defined in this or another schema. More... | |
| SimpleType * | getSimpleType () const |
| It returns list internal simple type. More... | |
| List (Annotation *ann=0, std::string *id=0) | |
| Constructor. More... | |
| List (const List &rhs) | |
| Copy constructor. More... | |
| List & | operator= (const List &rhs) |
| Assignment operator. More... | |
| void | setAnnotation (Annotation *ann) |
| It sets the associated annotation. More... | |
| void | setId (std::string *id) |
| it sets the id. More... | |
| void | setItemType (QName *name) |
| It sets the name of a built-in data type or simpleType element defined in this or another schema. More... | |
| void | setSimpleType (SimpleType *a) |
| It sets the list internal simple type. More... | |
| ~List () | |
| Destructor. More... | |
Private Attributes | |
| SimpleType * | m_internalSimpleType |
| Used when the list has an internal simple type. (Optional if m_itemType is present) More... | |
| QName * | m_itemType |
| It specifies the name of a built-in data type or simpleType element defined in this or another schema. This attribute is not allowed if the content contains a simpleType element, otherwise it is required. More... | |
It is used to define a simple type element as a list of values.
| te::xsd::List::List | ( | Annotation * | ann = 0, |
| std::string * | id = 0 |
||
| ) |
| te::xsd::List::List | ( | const List & | rhs | ) |
Copy constructor.
| rhs | Right-hand-side object. |
Definition at line 32 of file List.cpp.
References te::xsd::SimpleType::clone(), m_internalSimpleType, and m_itemType.
|
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.
| te::xsd::QName * te::xsd::List::getItemType | ( | ) | const |
| te::xsd::SimpleType * te::xsd::List::getSimpleType | ( | ) | const |
| te::xsd::List & te::xsd::List::operator= | ( | const List & | rhs | ) |
Assignment operator.
| rhs | Right-hand-side object. |
Definition at line 45 of file List.cpp.
References te::xsd::SimpleType::clone(), m_internalSimpleType, m_itemType, 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().
| void te::xsd::List::setItemType | ( | QName * | name | ) |
It sets the name of a built-in data type or simpleType element defined in this or another schema.
| name | The name of a built-in data type or simpleType element defined in this or another schema. |
| void te::xsd::List::setSimpleType | ( | SimpleType * | a | ) |
|
private |
Used when the list has an internal simple type. (Optional if m_itemType is present)
Definition at line 117 of file List.h.
Referenced by List(), and operator=().
|
private |
It specifies the name of a built-in data type or simpleType element defined in this or another schema. This attribute is not allowed if the content contains a simpleType element, otherwise it is required.
Definition at line 116 of file List.h.
Referenced by List(), and operator=().