Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QXmlStreamAttribute Class Reference

The QXmlStreamAttribute class represents a single XML attribute More...

 #include <QXmlStreamAttribute>

Note: All functions in this class are reentrant.

This class was introduced in Qt 4.3.

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 ()
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= ( 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 ()

Destructs an attribute.

bool QXmlStreamAttribute::isDefault () const

Returns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false.

QStringRef QXmlStreamAttribute::name () const

Returns the attribute's local name.

QStringRef QXmlStreamAttribute::namespaceUri () const

Returns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace.

QStringRef QXmlStreamAttribute::prefix () const

Returns the attribute's namespace prefix.

This function was introduced in Qt 4.4.

See also name() and qualifiedName().

QStringRef QXmlStreamAttribute::qualifiedName () const

Returns the attribute's qualified name.

A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix(), followed by colon, followed by the attribute's local name(). Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualifiedName(), but the resolved namespaceUri() and the attribute's local name().

QStringRef QXmlStreamAttribute::value () const

Returns the attribute's value.

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

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

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

Assigns other to this attribute.

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

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

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web