48 const int length = list.
count();
50 for (
int i = 0; i < length; ++i) {
51 for (
int j = 0; j < length; ++j) {
56 conflictingAttribute = list.
at(i)->attribute();
67 const int length = list.
count();
69 bool hasIdDerivedAttribute =
false;
70 for (
int i = 0; i < length; ++i) {
72 if (hasIdDerivedAttribute)
75 hasIdDerivedAttribute =
true;
84 const int length = list.
count();
86 for (
int i = 0; i < length; ++i) {
89 if (attributeUse->valueConstraint()) {
90 conflictingAttribute = attributeUse->attribute();
160 if (extension == base)
183 for (
int i = 0; i < baseParticles.
count() && i < extensionParticles.
count(); ++i) {
184 if (baseParticles.
at(i) != extensionParticles.
at(i))
199 if (term->isElement()) {
201 }
else if (term->isModelGroup()) {
217 for (
int i = 0; i < elementList.
count(); ++i)
222 for (
int i = 0; i < groupList.
count(); ++i) {
225 for (
int j = 0; j < group->particles().count(); ++j)
233 for (
int i = 0; i < types.
count(); ++i) {
236 if (complexType->contentType()->particle())
263 for (
int i = 0; i < particles.count(); ++i) {
264 if (particles.at(i)->term()->isElement()) {
284 for (
int i = 0; i < particles.count(); ++i) {
285 bool isValid =
false;
286 if (particles.at(i)->term()->isElement()) {
static const AtomicType::Ptr xsID
QSet< T > & unite(const QSet< T > &other)
#define QT_END_NAMESPACE
This macro expands to.
XsdTerm::Ptr term() const
The model group contains elements only.
SchemaType::List anonymousTypes() const
int count(const T &t) const
Returns the number of occurrences of value in the list.
virtual bool isWildcard() const
QSet< XsdElement::Ptr > collectAllElements(const XsdParticle::Ptr &particle)
XsdModelGroup::List elementGroups() const
bool hasConstraintIDAttributeUse(const XsdAttributeUse::List &list, XsdAttribute::Ptr &conflictingAttribute) const
SchemaType::Ptr type() const
unsigned int maximumOccurs() const
virtual bool isElement() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
unsigned int minimumOccurs() const
XsdParticle::List particles() const
virtual bool isComplexType() const
bool elementSequenceAccepted(const XsdModelGroup::Ptr &sequence, const XsdParticle::Ptr &particle) const
const T & at(int i) const
Returns the item at index position i in the list.
The namespace for the internal API of QtXmlPatterns.
const_iterator insert(const T &value)
virtual QXmlName name(const NamePool::Ptr &namePool) const
T & first()
Returns a reference to the first item in the list.
bool maximumOccursUnbounded() const
static bool wxsTypeMatches(const SchemaType::Ptr &type, const SchemaType::Ptr &otherType, QSet< SchemaType::Ptr > &visitedTypes, SchemaType::Ptr &conflictingType)
The element is defined globally as child of the schema object.
virtual bool isModelGroup() const
bool hasDuplicatedAttributeUses(const XsdAttributeUse::List &list, XsdAttribute::Ptr &conflictingAttribute) const
static const QTextHtmlElement elements[Html_NumElements]
bool particleEqualsRecursively(const XsdParticle::Ptr &particle, const XsdParticle::Ptr &otherParticle) const
ModelCompositor compositor() const
bool isValidParticleExtension(const XsdParticle::Ptr &extension, const XsdParticle::Ptr &base) const
static bool wildcardAllowsExpandedName(const QXmlName &name, const XsdWildcard::Ptr &wildcard, const NamePool::Ptr &namePool)
virtual bool isDefinedBySchema() const
SchemaType::List types() const
The model group is a sequence.
virtual QXmlName name(const NamePool::Ptr &np) const =0
Returns the name of the type.
XsdElement::List elements() const
bool hasMultipleIDAttributeUses(const XsdAttributeUse::List &list) const