81 switch (constraint->variety()) {
85 newConstraint->setValue(constraint->value());
86 newConstraint->setLexicalForm(constraint->lexicalForm());
#define QT_END_NAMESPACE
This macro expands to.
The attribute has a default value set.
void setUseType(UseType type)
void setValue(const QString &value)
The attribute use has a fixed value set.
The attribute can be there but doesn't need to.
The QString class provides a Unicode character string.
The attribute use has a default value set.
XsdAttribute::Ptr attribute() const
static ValueConstraint::Ptr fromAttributeValueConstraint(const XsdAttribute::ValueConstraint::Ptr &constraint)
void setVariety(Variety variety)
#define QT_BEGIN_NAMESPACE
This macro expands to.
XsdAttribute::Ptr m_attribute
void setValueConstraint(const ValueConstraint::Ptr &constraint)
The attribute must be there.
The namespace for the internal API of QtXmlPatterns.
void setAttribute(const XsdAttribute::Ptr &attribute)
QString lexicalForm() const
ValueConstraint::Ptr valueConstraint() const
virtual bool isAttributeUse() const
ValueConstraint::Ptr m_valueConstraint
The attribute has a fixed value set.
void setLexicalForm(const QString &form)