te::xsd::Restriction4ComplexContent Class Reference

The restriction class can be used to define restrictions on a complexContent. More...

#include <Restriction4ComplexContent.h>

Inheritance diagram for te::xsd::Restriction4ComplexContent:
te::xsd::TypeDerivation te::xsd::Identifiable te::xsd::Annotated

Public Member Functions

void addAttribute (AbstractAttribute *a)
 It adds an attribute to this restriction. More...
 
TypeDerivationclone () const
 
AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
AnyAttributegetAnyAttribute () const
 It returns the anyAttribute defined on this restriction. More...
 
QNamegetBase () const
 It returns the name of a built-in data type, simple type or complex type that will be restricted. More...
 
ContentgetContent () const
 It returns the content of this restriction. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
Restriction4ComplexContentoperator= (const Restriction4ComplexContent &rhs)
 Assignment operator. More...
 
 Restriction4ComplexContent (std::string *id, QName *base)
 Constructor. More...
 
 Restriction4ComplexContent (const Restriction4ComplexContent &rhs)
 Copy constructor. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 
void setAnyAttribute (AnyAttribute *a)
 It sets the anyAttribute to this restriction. More...
 
void setBase (QName *base)
 It sets the name of a built-in data type, simple type or complex type that will be restricted. More...
 
void setContent (Content *c)
 It sets the group content. It can be one of: group |all | choice | sequence. More...
 
void setId (std::string *id)
 it sets the id. More...
 
 ~Restriction4ComplexContent ()
 Destructor. More...
 

Private Attributes

AnyAttributem_anyAttr
 The anyAttribute element. (Optional) More...
 
boost::ptr_vector< AbstractAttributem_attributeVec
 The list of attributes (attributes and attributeGroups). (Optional) More...
 
QNamem_base
 It specifies the name of a built-in data type, simpleType element, or complexType element defined in this schema or another schema. (Required) More...
 
Contentm_content
 It can be: group |all | choice | sequence. (Optional) More...
 

Detailed Description

The restriction class can be used to define restrictions on a complexContent.

Definition at line 52 of file Restriction4ComplexContent.h.

Constructor & Destructor Documentation

te::xsd::Restriction4ComplexContent::Restriction4ComplexContent ( std::string *  id,
QName base 
)

Constructor.

Parameters
idIt specifies a unique ID for the element. It can be a NULL value.
baseIt specifies the name of a built-in data type, simpleType element, or complexType element defined in this schema or another schema. It can not be a NULL value.
Note
The Restriction4ComplexContent object will take the ownership of the given pointers.
te::xsd::Restriction4ComplexContent::Restriction4ComplexContent ( const Restriction4ComplexContent rhs)

Copy constructor.

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

Destructor.

Member Function Documentation

void te::xsd::Restriction4ComplexContent::addAttribute ( AbstractAttribute a)

It adds an attribute to this restriction.

Parameters
aThe attribute that will be added.
Note
The Restriction4ComplexContent object will take the ownership of the given pointer.
TypeDerivation* te::xsd::Restriction4ComplexContent::clone ( ) const
inlinevirtual

Implements te::xsd::TypeDerivation.

Definition at line 147 of file Restriction4ComplexContent.h.

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

It returns the associated annotation.

Returns
The associated annotation.
AnyAttribute* te::xsd::Restriction4ComplexContent::getAnyAttribute ( ) const

It returns the anyAttribute defined on this restriction.

Returns
The anyAttribute.
QName* te::xsd::Restriction4ComplexContent::getBase ( ) const

It returns the name of a built-in data type, simple type or complex type that will be restricted.

Returns
The name of a built-in data type, simple type or complex type that will be restricted.
Content* te::xsd::Restriction4ComplexContent::getContent ( ) const

It returns the content of this restriction.

Returns
The content of this restriction.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

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

Restriction4ComplexContent& te::xsd::Restriction4ComplexContent::operator= ( const Restriction4ComplexContent 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::Restriction4ComplexContent::setAnyAttribute ( AnyAttribute a)

It sets the anyAttribute to this restriction.

Parameters
aIt specifies the anyAttribute.
Note
The Restriction4ComplexContent object will take the ownership of the given pointer.
void te::xsd::Restriction4ComplexContent::setBase ( QName base)

It sets the name of a built-in data type, simple type or complex type that will be restricted.

Parameters
baseThe name of a built-in data type, simple type or complex type that will be restricted.
Note
The Restriction4ComplexContent object will take the ownership of the given pointer.
void te::xsd::Restriction4ComplexContent::setContent ( Content c)

It sets the group content. It can be one of: group |all | choice | sequence.

Parameters
cThe appropriate content to this restriction.
Note
The Restriction4ComplexContent object 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.

Member Data Documentation

AnyAttribute* te::xsd::Restriction4ComplexContent::m_anyAttr
private

The anyAttribute element. (Optional)

Definition at line 154 of file Restriction4ComplexContent.h.

boost::ptr_vector<AbstractAttribute> te::xsd::Restriction4ComplexContent::m_attributeVec
private

The list of attributes (attributes and attributeGroups). (Optional)

Definition at line 153 of file Restriction4ComplexContent.h.

QName* te::xsd::Restriction4ComplexContent::m_base
private

It specifies the name of a built-in data type, simpleType element, or complexType element defined in this schema or another schema. (Required)

Definition at line 151 of file Restriction4ComplexContent.h.

Content* te::xsd::Restriction4ComplexContent::m_content
private

It can be: group |all | choice | sequence. (Optional)

Definition at line 152 of file Restriction4ComplexContent.h.


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