The restriction element defines restrictions on a simpleType definition. More...
#include <Restriction4SimpleType.h>
Public Member Functions | |
| 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... | |
| SimpleTypeConstructor * | clone () const |
| It creates a clone of the object. More... | |
| Annotation * | getAnnotation () const |
| It returns the associated annotation. More... | |
| QName * | getBase () const |
| It returns the name of the built-in data type simpleType element 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... | |
| Restriction4SimpleType & | operator= (const Restriction4SimpleType &rhs) |
| Assignment operator. More... | |
| Restriction4SimpleType (QName *base=0, Annotation *ann=0, std::string *id=0) | |
| Constructor. More... | |
| Restriction4SimpleType (const Restriction4SimpleType &rhs) | |
| Copy constructor. More... | |
| void | setAnnotation (Annotation *ann) |
| It sets the associated annotation. More... | |
| void | setBase (QName *base) |
| It sets the name of the built-in data type simpleType element that will be restricted. More... | |
| void | setId (std::string *id) |
| it sets the id. More... | |
| void | setSimpleType (SimpleType *simpleType) |
| It sets the simpleType element that will be restricted. More... | |
| ~Restriction4SimpleType () | |
| Destructor. More... | |
Private Attributes | |
| QName * | m_base |
| It specifies the name of the built-in data type simpleType element that will be restricted. (Required) More... | |
| boost::ptr_vector< Facet > | m_facetVec |
| The list of facets. (Optional) More... | |
| SimpleType * | m_simpleType |
| Optional. More... | |
The restriction element defines restrictions on a simpleType definition.
Definition at line 52 of file Restriction4SimpleType.h.
| te::xsd::Restriction4SimpleType::Restriction4SimpleType | ( | QName * | base = 0, |
| Annotation * | ann = 0, |
||
| std::string * | id = 0 |
||
| ) |
Constructor.
| base | The name of a built-in data type simpleType element defined in a schema. |
| ann | An annotation. |
| id | It specifies a unique ID for the element. |
Definition at line 29 of file Restriction4SimpleType.cpp.
| te::xsd::Restriction4SimpleType::Restriction4SimpleType | ( | const Restriction4SimpleType & | rhs | ) |
Copy constructor.
| rhs | Right-hand-side object. |
Definition at line 35 of file Restriction4SimpleType.cpp.
References m_base.
| te::xsd::Restriction4SimpleType::~Restriction4SimpleType | ( | ) |
Destructor.
Definition at line 43 of file Restriction4SimpleType.cpp.
| void te::xsd::Restriction4SimpleType::addFacet | ( | FacetType | fType, |
| const std::string & | value | ||
| ) |
Adds a new facet to this restriction.
| fType | The facet type. |
| value | The facet associated value. |
Definition at line 86 of file Restriction4SimpleType.cpp.
| void te::xsd::Restriction4SimpleType::addFacet | ( | Facet * | f | ) |
Adds a new facet to this restriction.
| f | The facet that will be added. |
Definition at line 92 of file Restriction4SimpleType.cpp.
|
virtual |
It creates a clone of the object.
Implements te::xsd::SimpleTypeConstructor.
Definition at line 97 of file Restriction4SimpleType.cpp.
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
| te::xsd::QName * te::xsd::Restriction4SimpleType::getBase | ( | ) | const |
It returns the name of the built-in data type simpleType element that will be restricted.
Definition at line 64 of file Restriction4SimpleType.cpp.
| const boost::ptr_vector< te::xsd::Facet > & te::xsd::Restriction4SimpleType::getFacets | ( | ) | const |
It returns the list of facets defined on this restriction.
Definition at line 69 of file Restriction4SimpleType.cpp.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
| te::xsd::Restriction4SimpleType & te::xsd::Restriction4SimpleType::operator= | ( | const Restriction4SimpleType & | rhs | ) |
Assignment operator.
| rhs | Right-hand-side object. |
Definition at line 48 of file Restriction4SimpleType.cpp.
References m_base, and te::xsd::SimpleTypeConstructor::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::serialize::ReadAnnotated().
| void te::xsd::Restriction4SimpleType::setBase | ( | QName * | base | ) |
It sets the name of the built-in data type simpleType element that will be restricted.
| base | The name of the built-in data type simpleType element that will be restricted. |
Definition at line 74 of file Restriction4SimpleType.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::serialize::ReadIdentifiable().
| void te::xsd::Restriction4SimpleType::setSimpleType | ( | SimpleType * | simpleType | ) |
It sets the simpleType element that will be restricted.
| base | The name of the built-in data type simpleType element that will be restricted. |
Definition at line 80 of file Restriction4SimpleType.cpp.
|
private |
It specifies the name of the built-in data type simpleType element that will be restricted. (Required)
Definition at line 139 of file Restriction4SimpleType.h.
Referenced by operator=(), and Restriction4SimpleType().
|
private |
The list of facets. (Optional)
Definition at line 141 of file Restriction4SimpleType.h.
|
private |
Optional.
Definition at line 140 of file Restriction4SimpleType.h.