QXmlStreamAttribute Class
The QXmlStreamAttribute class represents a single XML attribute. More...
Header: | #include <QXmlStreamAttribute> |
qmake: | QT += core |
Since: | Qt 4.3 |
Note: All functions in this class are reentrant.
Public Functions
QXmlStreamAttribute() | |
QXmlStreamAttribute(const QString &qualifiedName, const QString &value) | |
QXmlStreamAttribute(const QString &namespaceUri, const QString &name, const QString &value) | |
QXmlStreamAttribute(const QXmlStreamAttribute &other) | |
QXmlStreamAttribute(QXmlStreamAttribute &&other) | |
~QXmlStreamAttribute() | |
bool | isDefault() const |
QStringRef | name() const |
QStringRef | namespaceUri() const |
QStringRef | prefix() const |
QStringRef | qualifiedName() const |
QStringRef | value() const |
bool | operator!=(const QXmlStreamAttribute &other) const |
QXmlStreamAttribute & | operator=(QXmlStreamAttribute &&other) |
QXmlStreamAttribute & | operator=(const QXmlStreamAttribute &other) |
bool | operator==(const QXmlStreamAttribute &other) const |
Detailed Description
The QXmlStreamAttribute class represents a single XML attribute.
An attribute consists of an optionally empty namespaceUri(), a name(), a value(), and an isDefault() attribute.
The raw XML attribute name is returned as qualifiedName().
Member Function Documentation
QXmlStreamAttribute::QXmlStreamAttribute()
Creates an empty attribute.
QXmlStreamAttribute::QXmlStreamAttribute(const QString &qualifiedName, const QString &value)
Constructs an attribute with qualified name qualifiedName and value value.
QXmlStreamAttribute::QXmlStreamAttribute(const QString &namespaceUri, const QString &name, const QString &value)
Constructs an attribute in the namespace described with namespaceUri with name and value value.
QXmlStreamAttribute::QXmlStreamAttribute(const QXmlStreamAttribute &other)
Creates a copy of other.
QXmlStreamAttribute::QXmlStreamAttribute(QXmlStreamAttribute &&other)
Move-copy constructor.
QXmlStreamAttribute::~QXmlStreamAttribute()
Destructs an attribute.
bool QXmlStreamAttribute::isDefault() const
QStringRef QXmlStreamAttribute::name() const
QStringRef QXmlStreamAttribute::namespaceUri() const
QStringRef QXmlStreamAttribute::prefix() const
QStringRef QXmlStreamAttribute::qualifiedName() const
QStringRef QXmlStreamAttribute::value() const
bool QXmlStreamAttribute::operator!=(const QXmlStreamAttribute &other) const
QXmlStreamAttribute &QXmlStreamAttribute::operator=(QXmlStreamAttribute &&other)
Move-assignment operator.
QXmlStreamAttribute &QXmlStreamAttribute::operator=(const QXmlStreamAttribute &other)
Assigns other to this attribute.