void setSimpleType(SimpleType *simpleType)
It sets the restriction internal simple type.
const boost::ptr_vector< Facet > & getFacets() const
It returns the list of facets defined on this restriction.
AnyAttribute * m_anyAttr
The anyAttribute element. (Optional)
A base class for XSD classes that may allow annotation.
const boost::ptr_vector< AbstractAttribute > & getAttributes() const
It returns the list of attributes of this restriction.
void setAnyAttribute(AnyAttribute *a)
It sets the anyAttribute to this restriction.
boost::ptr_vector< Facet > m_facetVec
The list of facets. (Optional)
This restriction class defines restrictions on a simpleContent.
It models a XML Schema SimpleType element.
A class to deal with XML qualified names.
QName * getBase() const
It returns the name of a built-in data type, simple type or complex type that will be restricted...
This is the base class for XML Schema Attribute classes.
It models an XML anyAttribute element.
This is the base class for XML Schema Attribute classes.
A base class for XSD classes that must provide a unique ID property.
This class can be used to model a facet (a constraint in the range of values).
It models an XML anyAttribute element.
Restriction4SimpleContent(std::string *id, QName *base)
Constructor.
void addAttribute(AbstractAttribute *a)
It adds an attribute to this restriction.
AnyAttribute * getAnyAttribute() const
It returns the anyAttribute defined on this restriction.
void addFacet(FacetType fType, const std::string &value)
Adds a new facet to this restriction.
void setBase(QName *base)
It sets the name of a built-in data type, simple type or complex type that will be restricted...
boost::ptr_vector< AbstractAttribute > m_attributeVec
The list of attributes (attributes and attributeGroups). (Optional)
A class to be used to represent XML qualified names.
QName * m_base
It specifies the name of a built-in data type, simpleType element or complexType element defined in t...
FacetType
It enumerates the available facet types.
This class can be used to model a facet (a constraint in the range of values).
SimpleType * m_simpleType
Optional.
~Restriction4SimpleContent()
Destructor.
It models a XML Schema SimpleType element.