44 #include <QtCore/QReadLocker> 45 #include <QtCore/QWriteLocker> 52 : m_namePool(namePool)
145 for (
int i = 0; i < types.
count(); ++i) {
160 for (
int i = 0; i < types.
count(); ++i) {
const QString & stringForLocalName(const QXmlName::LocalNameCode code) const
void addElement(const XsdElement::Ptr &element)
QHash< QXmlName, XsdIdentityConstraint::Ptr > m_identityConstraints
#define QT_END_NAMESPACE
This macro expands to.
QString m_targetNamespace
XsdElement::Ptr element(const QXmlName &name) const
XsdAttributeGroup::Ptr attributeGroup(const QXmlName name) const
virtual bool isSimpleType() const
XsdIdentityConstraint::Ptr identityConstraint(const QXmlName &name) const
void addAttributeGroup(const XsdAttributeGroup::Ptr &group)
QHash< QXmlName, XsdAttributeGroup::Ptr > m_attributeGroups
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
SchemaType::List anonymousTypes() const
int count(const T &t) const
Returns the number of occurrences of value in the list.
XsdSimpleType::List simpleTypes() const
The QString class provides a Unicode character string.
XsdModelGroup::List elementGroups() const
QHash< QXmlName, XsdModelGroup::Ptr > m_elementGroups
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
QHash< QXmlName, XsdNotation::Ptr > m_notations
const T value(const Key &key) const
Returns the value associated with the key.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
void addIdentityConstraint(const XsdIdentityConstraint::Ptr &constraint)
QHash< QXmlName, XsdElement::Ptr > m_elements
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void addNotation(const XsdNotation::Ptr ¬ation)
virtual bool isComplexType() const
XsdIdentityConstraint::List identityConstraints() const
const T & at(int i) const
Returns the item at index position i in the list.
XsdModelGroup::Ptr elementGroup(const QXmlName &name) const
XsdNotation::Ptr notation(const QXmlName &name) const
The namespace for the internal API of QtXmlPatterns.
QHash< QXmlName, SchemaType::Ptr > m_types
XsdNotation::List notations() const
QHash< QXmlName, XsdAttribute::Ptr > m_attributes
The QReadLocker class is a convenience class that simplifies locking and unlocking read-write locks f...
XsdComplexType::List complexTypes() const
SchemaType::Ptr type(const QXmlName &name) const
virtual QXmlName name(const NamePool::Ptr &namePool) const
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
QString localName(const QXmlNamePool &query) const
Returns the local name.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
QList< T > values() const
Returns a list containing all the values in the hash, in an arbitrary order.
void addAnonymousType(const SchemaType::Ptr &type)
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
XsdAttribute::List attributes() const
QHash< QXmlName, SchemaType::Ptr > m_anonymousTypes
XsdSchema(const NamePool::Ptr &namePool)
void setTargetNamespace(const QString &targetNamespace)
XsdAttribute::Ptr attribute(const QXmlName &name) const
void addElementGroup(const XsdModelGroup::Ptr &group)
XsdAttributeGroup::List attributeGroups() const
QString targetNamespace() const
void addType(const SchemaType::Ptr &type)
virtual bool isDefinedBySchema() const
SchemaType::List types() const
virtual QXmlName name(const NamePool::Ptr &np) const =0
Returns the name of the type.
XsdElement::List elements() const
void addAttribute(const XsdAttribute::Ptr &attribute)
NamePool::Ptr namePool() const