The restriction element defines restrictions on a simpleType definition.
More...
#include <Restriction4SimpleType.h>
The restriction element defines restrictions on a simpleType definition.
- Note
- Parent elements: simpleType.
Definition at line 52 of file Restriction4SimpleType.h.
te::xsd::Restriction4SimpleType::Restriction4SimpleType |
( |
QName * |
base = 0 , |
|
|
Annotation * |
ann = 0 , |
|
|
std::string * |
id = 0 |
|
) |
| |
Constructor.
- Parameters
-
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. |
- Note
- The List object will take the ownership of the given pointers.
Copy constructor.
- Parameters
-
rhs | Right-hand-side object. |
te::xsd::Restriction4SimpleType::~Restriction4SimpleType |
( |
| ) |
|
void te::xsd::Restriction4SimpleType::addFacet |
( |
FacetType |
fType, |
|
|
const std::string & |
value |
|
) |
| |
Adds a new facet to this restriction.
- Parameters
-
fType | The facet type. |
value | The facet associated value. |
void te::xsd::Restriction4SimpleType::addFacet |
( |
Facet * |
f | ) |
|
Adds a new facet to this restriction.
- Parameters
-
f | The facet that will be added. |
- Note
- The Restriction4SimpleType object will take the ownership of the given pointer.
It creates a clone of the object.
- Returns
- A clone of the object. The caller will take the ownership of the returned pointer.
Implements te::xsd::SimpleTypeConstructor.
Annotation* te::xsd::Annotated::getAnnotation |
( |
| ) |
const |
|
inherited |
It returns the associated annotation.
- Returns
- The associated annotation.
QName* te::xsd::Restriction4SimpleType::getBase |
( |
| ) |
const |
It returns the name of the built-in data type simpleType element that will be restricted.
- Returns
- The name of the built-in data type simpleType element that will be restricted.
const boost::ptr_vector<Facet>& te::xsd::Restriction4SimpleType::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.
Assignment operator.
- Parameters
-
rhs | Right-hand-side object. |
- Returns
- A reference to this object.
void te::xsd::Annotated::setAnnotation |
( |
Annotation * |
ann | ) |
|
|
inherited |
It sets the associated annotation.
- Parameters
-
ann | The annotation to be associated to the object. The annotated class will take the ownership of the given pointer. |
void te::xsd::Restriction4SimpleType::setBase |
( |
QName * |
base | ) |
|
It sets the name of the built-in data type simpleType element that will be restricted.
- Parameters
-
base | The name of the built-in data type simpleType element that will be restricted. |
void te::xsd::Identifiable::setId |
( |
std::string * |
id | ) |
|
|
inherited |
it sets the id.
- Parameters
-
id | The id to be associated to the object. It will take the ownership of the given string. |
void te::xsd::Restriction4SimpleType::setSimpleType |
( |
SimpleType * |
simpleType | ) |
|
It sets the simpleType element that will be restricted.
- Parameters
-
base | The name of the built-in data type simpleType element that will be restricted. |
QName* te::xsd::Restriction4SimpleType::m_base |
|
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.
boost::ptr_vector<Facet> te::xsd::Restriction4SimpleType::m_facetVec |
|
private |
SimpleType* te::xsd::Restriction4SimpleType::m_simpleType |
|
private |
The documentation for this class was generated from the following file: