QtBase  v6.3.1
Public Member Functions | Friends | Related Functions | List of all members
QXmlStreamNamespaceDeclaration Class Reference

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

#include <qxmlstream.h>

Public Member Functions

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

Friends

class QXmlStreamReaderPrivate
 

Related Functions

(Note that these are not member functions.)

 QXmlStreamNamespaceDeclarations
 

Detailed Description

The QXmlStreamNamespaceDeclaration class represents a namespace declaration.

\inmodule QtCore

Since
4.3 \reentrant

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

Definition at line 140 of file qxmlstream.h.

Constructor & Destructor Documentation

◆ QXmlStreamNamespaceDeclaration() [1/2]

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( )

Creates an empty namespace declaration.

Definition at line 2475 of file qxmlstream.cpp.

◆ QXmlStreamNamespaceDeclaration() [2/2]

QXmlStreamNamespaceDeclaration::QXmlStreamNamespaceDeclaration ( const QString prefix,
const QString namespaceUri 
)
Since
4.4

Creates a namespace declaration with prefix and namespaceUri.

Definition at line 2484 of file qxmlstream.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ namespaceUri()

QStringView QXmlStreamNamespaceDeclaration::namespaceUri ( ) const
inline

Returns the namespaceUri.

Definition at line 149 of file qxmlstream.h.

Here is the caller graph for this function:

◆ operator!=()

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

Definition at line 153 of file qxmlstream.h.

Here is the call graph for this function:

◆ operator==()

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

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

Definition at line 150 of file qxmlstream.h.

Here is the call graph for this function:

◆ prefix()

QStringView QXmlStreamNamespaceDeclaration::prefix ( ) const
inline

Returns the prefix.

Definition at line 148 of file qxmlstream.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ QXmlStreamNamespaceDeclarations()

Synonym for QList<QXmlStreamNamespaceDeclaration>.

Definition at line 158 of file qxmlstream.h.

◆ QXmlStreamReaderPrivate

friend class QXmlStreamReaderPrivate
friend

Definition at line 143 of file qxmlstream.h.


The documentation for this class was generated from the following files: