It models an XML Schema complexContent element. More...
#include <ComplexContent.h>
Public Member Functions | |
ComplexContent (TypeDerivation *dev=0, Annotation *ann=0, std::string *id=0) | |
Constructor. More... | |
ComplexContent (const ComplexContent &rhs) | |
Copy constructor. 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... | |
TypeDerivation * | getTypeDerivation () const |
It returns the derivation type of this ComplexContent. More... | |
bool | isMixed () |
If the ComplexContent is mixed or not. More... | |
ComplexContent & | operator= (const ComplexContent &rhs) |
Assignment operator. More... | |
void | setAnnotation (Annotation *ann) |
It sets the associated annotation. More... | |
void | setAsMixed (bool v) |
It specifies whether character data is allowed to appear between the child elements of this complexType element. More... | |
void | setId (std::string *id) |
it sets the id. More... | |
void | setTypeDerivation (TypeDerivation *t) |
It sets the derivation type of this ComplexContent: (restriction | extension). More... | |
~ComplexContent () | |
Destructor. More... | |
Private Attributes | |
TypeDerivation * | m_derivation |
It can be: restriction (Restriction4ComplexContent) | extension. (Required) More... | |
bool | m_mixed |
It specifies whether character data is allowed to appear between the child elements of this complexType element. Default is false. (Optional) More... | |
It models an XML Schema complexContent element.
The ComplexContent element defines extensions or restrictions on a complex type that contains mixed content or elements only.
Definition at line 49 of file ComplexContent.h.
te::xsd::ComplexContent::ComplexContent | ( | TypeDerivation * | dev = 0 , |
Annotation * | ann = 0 , |
||
std::string * | id = 0 |
||
) |
Constructor.
dev | It specifies the element content and can be: restriction | extension. |
ann | An annotation. |
id | It specifies a unique ID for the element. |
Definition at line 28 of file ComplexContent.cpp.
te::xsd::ComplexContent::ComplexContent | ( | const ComplexContent & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
Definition at line 36 of file ComplexContent.cpp.
References te::xsd::TypeDerivation::clone(), and m_derivation.
te::xsd::ComplexContent::~ComplexContent | ( | ) |
Destructor.
Definition at line 45 of file ComplexContent.cpp.
|
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::TypeDerivation * te::xsd::ComplexContent::getTypeDerivation | ( | ) | const |
It returns the derivation type of this ComplexContent.
Definition at line 73 of file ComplexContent.cpp.
bool te::xsd::ComplexContent::isMixed | ( | ) |
If the ComplexContent is mixed or not.
Definition at line 68 of file ComplexContent.cpp.
te::xsd::ComplexContent & te::xsd::ComplexContent::operator= | ( | const ComplexContent & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
Definition at line 50 of file ComplexContent.cpp.
References te::xsd::TypeDerivation::clone(), m_derivation, m_mixed, te::xsd::Identifiable::operator=(), and te::xsd::Annotated::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().
void te::xsd::ComplexContent::setAsMixed | ( | bool | v | ) |
It specifies whether character data is allowed to appear between the child elements of this complexType element.
v | True indicates that character data is allowed to appear between the child elements of this complexType element. |
Definition at line 78 of file ComplexContent.cpp.
|
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::ComplexContent::setTypeDerivation | ( | TypeDerivation * | t | ) |
It sets the derivation type of this ComplexContent: (restriction | extension).
t | The derivation type of this ComplexContent. |
Definition at line 83 of file ComplexContent.cpp.
|
private |
It can be: restriction (Restriction4ComplexContent) | extension. (Required)
Definition at line 116 of file ComplexContent.h.
Referenced by ComplexContent(), and operator=().
|
private |
It specifies whether character data is allowed to appear between the child elements of this complexType element. Default is false. (Optional)
Definition at line 115 of file ComplexContent.h.
Referenced by operator=().