te::xsd::Restriction4SimpleContent Class Reference

This restriction class defines restrictions on a simpleContent. More...

#include <Restriction4SimpleContent.h>

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

Public Member Functions

void addAttribute (AbstractAttribute *a)
 It adds an attribute to this restriction. More...
 
void addFacet (FacetType fType, const std::string &value)
 Adds a new facet to this restriction. More...
 
void addFacet (Facet *f)
 Adds a new facet 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...
 
const boost::ptr_vector< AbstractAttribute > & getAttributes () const
 It returns the list of attributes of 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...
 
const boost::ptr_vector< Facet > & getFacets () const
 It returns the list of facets defined on this restriction. More...
 
std::string * getId () const
 It returns a pointer (may be NULL) to the object id. More...
 
Restriction4SimpleContentoperator= (const Restriction4SimpleContent &rhs)
 Assignment operator. More...
 
 Restriction4SimpleContent (std::string *id, QName *base)
 Constructor. More...
 
 Restriction4SimpleContent (const Restriction4SimpleContent &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 setId (std::string *id)
 it sets the id. More...
 
void setSimpleType (SimpleType *simpleType)
 It sets the restriction internal simple type. More...
 
 ~Restriction4SimpleContent ()
 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...
 
boost::ptr_vector< Facetm_facetVec
 The list of facets. (Optional) More...
 
SimpleTypem_simpleType
 Optional. More...
 

Detailed Description

This restriction class defines restrictions on a simpleContent.

Definition at line 54 of file Restriction4SimpleContent.h.

Constructor & Destructor Documentation

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

Constructor.

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

Copy constructor.

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

Destructor.

Member Function Documentation

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

It adds an attribute to this restriction.

Parameters
aThe attribute that will be added.
Note
The Restriction4SimpleContent object will take the ownership of the given pointer.
void te::xsd::Restriction4SimpleContent::addFacet ( FacetType  fType,
const std::string &  value 
)

Adds a new facet to this restriction.

Parameters
fTypeThe facet type.
valueThe facet associated value.
void te::xsd::Restriction4SimpleContent::addFacet ( Facet f)

Adds a new facet to this restriction.

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

Implements te::xsd::TypeDerivation.

Definition at line 173 of file Restriction4SimpleContent.h.

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

It returns the associated annotation.

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

It returns the anyAttribute defined on this restriction.

Returns
The anyAttribute.
const boost::ptr_vector<AbstractAttribute>& te::xsd::Restriction4SimpleContent::getAttributes ( ) const

It returns the list of attributes of this restriction.

Returns
The list of attributes of this restriction.
QName* te::xsd::Restriction4SimpleContent::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.
const boost::ptr_vector<Facet>& te::xsd::Restriction4SimpleContent::getFacets ( ) const

It returns the list of facets defined on this restriction.

Returns
The list of facets defined on this restriction.
std::string* te::xsd::Identifiable::getId ( ) const
inherited

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

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

It sets the anyAttribute to this restriction.

Parameters
aIt specifies the anyAttribute.
Note
The Restriction4SimpleContent object will take the ownership of the given pointer.
void te::xsd::Restriction4SimpleContent::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 Restriction4SimpleContent 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.
void te::xsd::Restriction4SimpleContent::setSimpleType ( SimpleType simpleType)

It sets the restriction internal simple type.

Parameters
simpleTypeThe restriction internal simple type.
Note
The Restriction4SimpleContent object will take the ownership of the given pointer.

Member Data Documentation

AnyAttribute* te::xsd::Restriction4SimpleContent::m_anyAttr
private

The anyAttribute element. (Optional)

Definition at line 181 of file Restriction4SimpleContent.h.

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

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

Definition at line 180 of file Restriction4SimpleContent.h.

QName* te::xsd::Restriction4SimpleContent::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 177 of file Restriction4SimpleContent.h.

boost::ptr_vector<Facet> te::xsd::Restriction4SimpleContent::m_facetVec
private

The list of facets. (Optional)

Definition at line 179 of file Restriction4SimpleContent.h.

SimpleType* te::xsd::Restriction4SimpleContent::m_simpleType
private

Optional.

Definition at line 178 of file Restriction4SimpleContent.h.


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