QXmlStreamAttribute Class ReferenceThe QXmlStreamAttribute class represents a single XML attribute More... #include <QXmlStreamAttribute> Замечание: Все функции в этом классе реентерабельны. Класс был добавлен в Qt 4.3. Открытые функции
Подробное описание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(). Описание функций-членов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 )Создаёт копию other. QXmlStreamAttribute::~QXmlStreamAttribute ()Destructs an attribute. bool QXmlStreamAttribute::isDefault () constReturns true if the parser added this attribute with a default value following an ATTLIST declaration in the DTD; otherwise returns false. QStringRef QXmlStreamAttribute::name () constReturns the attribute's local name. QStringRef QXmlStreamAttribute::namespaceUri () constReturns the attribute's resolved namespaceUri, or an empty string reference if the attribute does not have a defined namespace. QStringRef QXmlStreamAttribute::prefix () constReturns the attribute's namespace prefix. Эта функция была введена в Qt 4.4. See also name() and qualifiedName(). QStringRef QXmlStreamAttribute::qualifiedName () constReturns 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 () constReturns the attribute's value. bool QXmlStreamAttribute::operator!= ( const QXmlStreamAttribute & other ) constCompares 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 ) constCompares this attribute with other and returns true if they are equal; otherwise returns false. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |