All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 25 of file List.cpp.

te::xsd::List::List ( const List rhs)

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 32 of file List.cpp.

References te::xsd::SimpleType::clone(), m_internalSimpleType, and m_itemType.

te::xsd::List::~List ( )

Destructor.

Definition at line 39 of file List.cpp.

Member Function Documentation

te::xsd::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.

Definition at line 91 of file List.cpp.

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

It returns the associated annotation.

Returns
The associated annotation.

Definition at line 30 of file Annotated.cpp.

References te::xsd::Annotated::m_annotation.

std::string * te::xsd::Identifiable::getId ( ) const
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

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.

Definition at line 63 of file List.cpp.

te::xsd::SimpleType * te::xsd::List::getSimpleType ( ) const

It returns list internal simple type.

Returns
The list internal simple type.

Definition at line 68 of file List.cpp.

te::xsd::List & te::xsd::List::operator= ( const List rhs)

Assignment operator.

Parameters
rhsRight-hand-side object.
Returns
A reference to this object.

Definition at line 45 of file List.cpp.

References te::xsd::SimpleType::clone(), m_internalSimpleType, m_itemType, and te::xsd::SimpleTypeConstructor::operator=().

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.

Definition at line 35 of file Annotated.cpp.

Referenced by te::xsd::serialize::ReadAnnotated().

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.

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.

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.

Definition at line 73 of file List.cpp.

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.

Definition at line 82 of file List.cpp.

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.

Referenced by List(), and operator=().

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.

Referenced by List(), and operator=().


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