te::xsd::List Class Reference

It is used to define a simple type element as a list of values. More...

#include <List.h>

Inheritance diagram for te::xsd::List:
te::xsd::SimpleTypeConstructor te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

SimpleTypeConstructorclone () const
 It creates a clone of the object. More...
 
AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
QNamegetItemType () const
 It returns name of a built-in data type or simpleType element defined in this or another schema. More...
 
SimpleTypegetSimpleType () 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...
 
Listoperator= (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

SimpleTypem_internalSimpleType
 Used when the list has an internal simple type. (Optional if m_itemType is present) More...
 
QNamem_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...
 

Detailed Description

It is used to define a simple type element as a list of values.

Definition at line 45 of file List.h.

Constructor & Destructor Documentation

te::xsd::List::List ( Annotation ann = 0,
std::string *  id = 0 
)

Constructor.

Parameters
annAn annotation.
idIt specifies a unique ID for the element.
Note
The List object will take the ownership of the annotation and id.
te::xsd::List::List ( const List rhs)

Copy constructor.

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

Destructor.

Member Function Documentation

SimpleTypeConstructor* te::xsd::List::clone ( ) const
virtual

It creates a clone of the object.

Returns
A clone of the object. The caller will take the ownership of the returned pointer.

Implements te::xsd::SimpleTypeConstructor.

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

It returns the associated annotation.

Returns
The associated annotation.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

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

QName* te::xsd::List::getItemType ( ) const

It returns name of a built-in data type or simpleType element defined in this or another schema.

Returns
The name of a built-in data type or simpleType element defined in this or another schema.
SimpleType* te::xsd::List::getSimpleType ( ) const

It returns list internal simple type.

Returns
The list internal simple type.
List& te::xsd::List::operator= ( const List 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::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.
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.

Parameters
nameThe name of a built-in data type or simpleType element defined in this or another schema.
Note
Setting a reference will turn to NULL the internal simpleType.
The List object will take the ownership of the given pointer.
void te::xsd::List::setSimpleType ( SimpleType a)

It sets the list internal simple type.

Parameters
aThe list internal simple type.
Note
Setting a reference will turn to NULL the itemType.
The List object will take the ownership of the given pointer.

Member Data Documentation

SimpleType* te::xsd::List::m_internalSimpleType
private

Used when the list has an internal simple type. (Optional if m_itemType is present)

Definition at line 117 of file List.h.

QName* te::xsd::List::m_itemType
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.


The documentation for this class was generated from the following file: