Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 1321

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QXmlStreamAttribute Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QXmlStreamAttribute Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QXmlStreamAttribute class represents a single XML attribute
<a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-2">__init__</a></b> (<i>self</i>, QString&#160;<i>qualifiedName</i>, QString&#160;<i>value</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-3">__init__</a></b> (<i>self</i>, QString&#160;<i>namespaceUri</i>, QString&#160;<i>name</i>, QString&#160;<i>value</i>)</li><li><div class="fn" /><b><a href="qxmlstreamattribute.html#QXmlStreamAttribute-4">__init__</a></b> (<i>self</i>, QXmlStreamAttribute)</li><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#isDefault">isDefault</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#name">name</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#prefix">prefix</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a></b> (<i>self</i>)</li><li><div class="fn" />QStringRef <b><a href="qxmlstreamattribute.html#value">value</a></b> (<i>self</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#__eq__">__eq__</a></b> (<i>self</i>, QXmlStreamAttribute&#160;<i>other</i>)</li><li><div class="fn" />bool <b><a href="qxmlstreamattribute.html#__ne__">__ne__</a></b> (<i>self</i>, QXmlStreamAttribute&#160;<i>other</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QXmlStreamAttribute class represents a single XML
attribute</p>
<p>An attribute consists of an optionally empty <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>(), a
<a href="qxmlstreamattribute.html#name">name</a>(), a <a href="qxmlstreamattribute.html#value">value</a>(), and an <a href="qxmlstreamattribute.html#isDefault">isDefault</a>() attribute.</p>
<p>The raw XML attribute name is returned as <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QXmlStreamAttribute" />QXmlStreamAttribute.__init__ (<i>self</i>)</h3><p>Creates an empty attribute.</p>


<h3 class="fn"><a name="QXmlStreamAttribute-2" />QXmlStreamAttribute.__init__ (<i>self</i>, QString&#160;<i>qualifiedName</i>, QString&#160;<i>value</i>)</h3><p>Constructs an attribute with qualified name <i>qualifiedName</i>
and value <i>value</i>.</p>


<h3 class="fn"><a name="QXmlStreamAttribute-3" />QXmlStreamAttribute.__init__ (<i>self</i>, QString&#160;<i>namespaceUri</i>, QString&#160;<i>name</i>, QString&#160;<i>value</i>)</h3><p>Constructs an attribute in the namespace described with
<i>namespaceUri</i> with <i>name</i> and value <i>value</i>.</p>


<h3 class="fn"><a name="QXmlStreamAttribute-4" />QXmlStreamAttribute.__init__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a>)</h3><p>Creates a copy of <i>other</i>.</p>


<h3 class="fn"><a name="isDefault" />bool QXmlStreamAttribute.isDefault (<i>self</i>)</h3><p>Returns true if the parser added this attribute with a default
value following an ATTLIST declaration in the DTD; otherwise
returns false.</p>


<h3 class="fn"><a name="name" />QStringRef QXmlStreamAttribute.name (<i>self</i>)</h3><p>Returns the attribute's local name.</p>


<h3 class="fn"><a name="namespaceUri" />QStringRef QXmlStreamAttribute.namespaceUri (<i>self</i>)</h3><p>Returns the attribute's resolved namespaceUri, or an empty
string reference if the attribute does not have a defined
namespace.</p>


<h3 class="fn"><a name="prefix" />QStringRef QXmlStreamAttribute.prefix (<i>self</i>)</h3><p>Returns the attribute's namespace prefix.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qxmlstreamattribute.html#name">name</a>() and <a href="qxmlstreamattribute.html#qualifiedName">qualifiedName</a>().</p>


<h3 class="fn"><a name="qualifiedName" />QStringRef QXmlStreamAttribute.qualifiedName (<i>self</i>)</h3><p>Returns the attribute's qualified name.</p>
<p>A qualified name is the raw name of an attribute in the XML
data. It consists of the namespace <a href="qxmlstreamattribute.html#prefix">prefix</a>(), followed by colon,
followed by the attribute's local <a href="qxmlstreamattribute.html#name">name</a>(). 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 <a href="qxmlstreamattribute.html#namespaceUri">namespaceUri</a>() and the
attribute's local <a href="qxmlstreamattribute.html#name">name</a>().</p>


<h3 class="fn"><a name="value" />QStringRef QXmlStreamAttribute.value (<i>self</i>)</h3><p>Returns the attribute's value.</p>


<h3 class="fn"><a name="__eq__" />bool QXmlStreamAttribute.__eq__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a>&#160;<i>other</i>)</h3><h3 class="fn"><a name="__ne__" />bool QXmlStreamAttribute.__ne__ (<i>self</i>, <a href="qxmlstreamattribute.html">QXmlStreamAttribute</a>&#160;<i>other</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>