This restriction class defines restrictions on a simpleContent. More...
#include <Restriction4SimpleContent.h>
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... | |
TypeDerivation * | clone () const |
Annotation * | getAnnotation () const |
It returns the associated annotation. More... | |
AnyAttribute * | getAnyAttribute () 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... | |
QName * | getBase () 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... | |
Restriction4SimpleContent & | operator= (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 | |
AnyAttribute * | m_anyAttr |
The anyAttribute element. (Optional) More... | |
boost::ptr_vector < AbstractAttribute > | m_attributeVec |
The list of attributes (attributes and attributeGroups). (Optional) More... | |
QName * | m_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< Facet > | m_facetVec |
The list of facets. (Optional) More... | |
SimpleType * | m_simpleType |
Optional. More... | |
This restriction class defines restrictions on a simpleContent.
Definition at line 54 of file Restriction4SimpleContent.h.
te::xsd::Restriction4SimpleContent::Restriction4SimpleContent | ( | std::string * | id, |
QName * | base | ||
) |
Constructor.
id | It specifies a unique ID for the element. It can be a NULL value. |
base | The name of a built-in data type simpleType element defined in a schema. It can not be a NULL value. |
Definition at line 37 of file Restriction4SimpleContent.cpp.
te::xsd::Restriction4SimpleContent::Restriction4SimpleContent | ( | const Restriction4SimpleContent & | rhs | ) |
Copy constructor.
rhs | Right-hand-side object. |
te::xsd::Restriction4SimpleContent::~Restriction4SimpleContent | ( | ) |
Destructor.
Definition at line 47 of file Restriction4SimpleContent.cpp.
void te::xsd::Restriction4SimpleContent::addAttribute | ( | AbstractAttribute * | a | ) |
It adds an attribute to this restriction.
a | The attribute that will be added. |
Definition at line 97 of file Restriction4SimpleContent.cpp.
void te::xsd::Restriction4SimpleContent::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 Restriction4SimpleContent.cpp.
void te::xsd::Restriction4SimpleContent::addFacet | ( | Facet * | f | ) |
Adds a new facet to this restriction.
f | The facet that will be added. |
Definition at line 92 of file Restriction4SimpleContent.cpp.
|
inlinevirtual |
Implements te::xsd::TypeDerivation.
Definition at line 173 of file Restriction4SimpleContent.h.
|
inherited |
It returns the associated annotation.
Definition at line 30 of file Annotated.cpp.
References te::xsd::Annotated::m_annotation.
te::xsd::AnyAttribute * te::xsd::Restriction4SimpleContent::getAnyAttribute | ( | ) | const |
It returns the anyAttribute defined on this restriction.
Definition at line 69 of file Restriction4SimpleContent.cpp.
const boost::ptr_vector< te::xsd::AbstractAttribute > & te::xsd::Restriction4SimpleContent::getAttributes | ( | ) | const |
It returns the list of attributes of this restriction.
Definition at line 64 of file Restriction4SimpleContent.cpp.
te::xsd::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.
Definition at line 54 of file Restriction4SimpleContent.cpp.
const boost::ptr_vector< te::xsd::Facet > & te::xsd::Restriction4SimpleContent::getFacets | ( | ) | const |
It returns the list of facets defined on this restriction.
Definition at line 59 of file Restriction4SimpleContent.cpp.
|
inherited |
It returns a pointer (may be NULL) to the object id.
Definition at line 35 of file Identifiable.cpp.
Restriction4SimpleContent& te::xsd::Restriction4SimpleContent::operator= | ( | const Restriction4SimpleContent & | rhs | ) |
Assignment operator.
rhs | Right-hand-side object. |
|
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::Restriction4SimpleContent::setAnyAttribute | ( | AnyAttribute * | a | ) |
It sets the anyAttribute to this restriction.
a | It specifies the anyAttribute. |
Definition at line 102 of file Restriction4SimpleContent.cpp.
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.
base | The name of a built-in data type, simple type or complex type that will be restricted. |
Definition at line 74 of file Restriction4SimpleContent.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::Restriction4SimpleContent::setSimpleType | ( | SimpleType * | simpleType | ) |
It sets the restriction internal simple type.
simpleType | The restriction internal simple type. |
Definition at line 80 of file Restriction4SimpleContent.cpp.
|
private |
The anyAttribute element. (Optional)
Definition at line 181 of file Restriction4SimpleContent.h.
|
private |
The list of attributes (attributes and attributeGroups). (Optional)
Definition at line 180 of file Restriction4SimpleContent.h.
|
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.
|
private |
The list of facets. (Optional)
Definition at line 179 of file Restriction4SimpleContent.h.
|
private |
Optional.
Definition at line 178 of file Restriction4SimpleContent.h.