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