83 m_simpleType = simpleType;
94 m_facetVec.push_back(f);
The restriction element defines restrictions on a simpleType definition.
void addFacet(FacetType fType, const std::string &value)
Adds a new facet to this restriction.
Restriction4SimpleType(QName *base=0, Annotation *ann=0, std::string *id=0)
Constructor.
void setBase(QName *base)
It sets the name of the built-in data type simpleType element that will be restricted.
It models a XML Schema SimpleType element.
A class to deal with XML qualified names.
Restriction4SimpleType & operator=(const Restriction4SimpleType &rhs)
Assignment operator.
QName * getBase() const
It returns the name of the built-in data type simpleType element that will be restricted.
A base class for SympleType elements. List, Union and Restriction4SimpleType is derived from this bas...
SimpleTypeConstructor * clone() const
It creates a clone of the object.
~Restriction4SimpleType()
Destructor.
SimpleTypeConstructor & operator=(const SimpleTypeConstructor &rhs)
Assignment operator not allowed.
This class can be used to model a facet (a constraint in the range of values).
A class to be used to represent XML qualified names.
void setSimpleType(SimpleType *simpleType)
It sets the simpleType element that will be restricted.
FacetType
It enumerates the available facet types.
The restriction element defines restrictions on a simpleType definition.
This class can be used to model a facet (a constraint in the range of values).
A class that models a XSD annotation element.
It models a XML Schema SimpleType element.
const boost::ptr_vector< Facet > & getFacets() const
It returns the list of facets defined on this restriction.
QName * m_base
It specifies the name of the built-in data type simpleType element that will be restricted. (Required)