QXmlStreamNamespaceDeclaration Class

The QXmlStreamNamespaceDeclaration class represents a namespace declaration. More...

Header: #include <QXmlStreamNamespaceDeclaration>
qmake: QT += core
Since: Qt 4.3

Note: All functions in this class are reentrant.

Public Functions

QXmlStreamNamespaceDeclaration()
QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration &other)
QXmlStreamNamespaceDeclaration(QXmlStreamNamespaceDeclaration &&other)
QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)
~QXmlStreamNamespaceDeclaration()
QStringRef namespaceUri() const
QStringRef prefix() const
bool operator!=(const QXmlStreamNamespaceDeclaration &other) const
QXmlStreamNamespaceDeclaration &operator=(QXmlStreamNamespaceDeclaration &&other)
QXmlStreamNamespaceDeclaration &operator=(const QXmlStreamNamespaceDeclaration &other)
bool operator==(const QXmlStreamNamespaceDeclaration &other) const

Detailed Description

The QXmlStreamNamespaceDeclaration class represents a namespace declaration.

An namespace declaration consists of a prefix() and a namespaceUri().

Member Function Documentation

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration()

Creates an empty namespace declaration.

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration &other)

Creates a copy of other.

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(QXmlStreamNamespaceDeclaration &&other)

Move-copy constructor.

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)

Creates a namespace declaration with prefix and namespaceUri.

This function was introduced in Qt 4.4.

QXmlStreamNamespaceDeclaration::~QXmlStreamNamespaceDeclaration()

Destructs this namespace declaration.

QStringRef QXmlStreamNamespaceDeclaration::namespaceUri() const

Returns the namespaceUri.

QStringRef QXmlStreamNamespaceDeclaration::prefix() const

Returns the prefix.

bool QXmlStreamNamespaceDeclaration::operator!=(const QXmlStreamNamespaceDeclaration &other) const

Compares this namespace declaration with other and returns true if they are not equal; otherwise returns false.

QXmlStreamNamespaceDeclaration &QXmlStreamNamespaceDeclaration::operator=(QXmlStreamNamespaceDeclaration &&other)

Move-assignment operator.

QXmlStreamNamespaceDeclaration &QXmlStreamNamespaceDeclaration::operator=(const QXmlStreamNamespaceDeclaration &other)

Assigns other to this namespace declaration.

bool QXmlStreamNamespaceDeclaration::operator==(const QXmlStreamNamespaceDeclaration &other) const

Compares this namespace declaration with other and returns true if they are equal; otherwise returns false.

Related Non-Members

typedef QXmlStreamNamespaceDeclarations

Synonym for QVector<QXmlStreamNamespaceDeclaration>.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.