Qt 4.8
Namespaces | Functions
qxsdvalidatinginstancereader.cpp File Reference
#include "qxsdvalidatinginstancereader_p.h"
#include "qabstractdatetime_p.h"
#include "qacceltreeresourceloader_p.h"
#include "qbase64binary_p.h"
#include "qboolean_p.h"
#include "qcommonnamespaces_p.h"
#include "qderivedinteger_p.h"
#include "qduration_p.h"
#include "qgenericstaticcontext_p.h"
#include "qhexbinary_p.h"
#include "qnamespaceresolver_p.h"
#include "qpatternplatform_p.h"
#include "qqnamevalue_p.h"
#include "qsourcelocationreflection_p.h"
#include "qvaluefactory_p.h"
#include "qxmlnamepool.h"
#include "qxmlquery_p.h"
#include "qxmlschema_p.h"
#include "qxsdschemahelper_p.h"
#include "qxsdschemamerger_p.h"
#include "qxsdstatemachine_p.h"
#include "qxsdstatemachinebuilder_p.h"
#include "qxsdtypechecker_p.h"
#include "qxsdschemadebugger_p.h"
#include <QtCore/QFile>
#include <QtXmlPatterns/QXmlQuery>
#include <QtXmlPatterns/QXmlResultItems>

Go to the source code of this file.

Namespaces

 QPatternist
 The namespace for the internal API of QtXmlPatterns.
 

Functions

static bool hasIDAttributeUse (const XsdAttributeUse::List &uses)
 

Function Documentation

◆ hasIDAttributeUse()

static bool hasIDAttributeUse ( const XsdAttributeUse::List uses)
static

Definition at line 613 of file qxsdvalidatinginstancereader.cpp.

Referenced by QPatternist::XsdValidatingInstanceReader::validateElementComplexType().

614 {
615  const int count = uses.count();
616  for (int i = 0; i < count; ++i) {
617  if (BuiltinTypes::xsID->wxsTypeMatches(uses.at(i)->attribute()->type()))
618  return true;
619  }
620 
621  return false;
622 }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
static bool wxsTypeMatches(const SchemaType::Ptr &type, const SchemaType::Ptr &otherType, QSet< SchemaType::Ptr > &visitedTypes, SchemaType::Ptr &conflictingType)