66 return m_attributeVec;
83 m_simpleType = simpleType;
94 m_facetVec.push_back(f);
99 m_attributeVec.push_back(a);
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.
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.
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...
A class to be used to represent XML qualified names.
FacetType
It enumerates the available facet types.
This class can be used to model a facet (a constraint in the range of values).
~Restriction4SimpleContent()
Destructor.
It models a XML Schema SimpleType element.