<class name="QXmlAttributes" doc="/** <p>The <a href="QXmlAttributes.html#QXmlAttributes()"><tt>QXmlAttributes</tt></a> class provides XML attributes.</p> <p>If attributes are reported by QXmlContentHandler::startElement() this class is used to pass the attribute values.</p> <p>Use <a href="QXmlAttributes.html#index(java.lang.String)"><tt>index</tt></a> to locate the position of an attribute in the list, <a href="QXmlAttributes.html#count()"><tt>count</tt></a> to retrieve the number of attributes, and <a href="QXmlAttributes.html#clear()"><tt>clear</tt></a> to remove the attributes. New attributes can be added with <a href="QXmlAttributes.html#append(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><tt>append</tt></a>. Use <a href="QXmlAttributes.html#type(java.lang.String, java.lang.String)"><tt>type</tt></a> to get an attribute's type and <a href="QXmlAttributes.html#value(int)"><tt>value</tt></a> to get its value. The attribute's name is available from <a href="QXmlAttributes.html#localName(int)"><tt>localName</tt></a> or <a href="QXmlAttributes.html#qName(int)"><tt>qName</tt></a>, and its namespace URI from <a href="QXmlAttributes.html#uri(int)"><tt>uri</tt></a>.</p> */"> <method name="public QXmlAttributes()" doc="/** <p>Constructs an empty attribute list.</p> */"/> <method name="public final void append(java.lang.String qName, java.lang.String uri, java.lang.String localPart, java.lang.String value)" doc="/** <p>Appends a new attribute entry to the list of attributes. The qualified name of the attribute is <tt>qName</tt>, the namespace URI is <tt>uri</tt> and the local name is <tt>localPart</tt>. The value of the attribute is <tt>value</tt>.</p> @see <a href="QXmlAttributes.html#qName(int)"><tt>qName</tt></a> @see <a href="QXmlAttributes.html#uri(int)"><tt>uri</tt></a> @see <a href="QXmlAttributes.html#localName(int)"><tt>localName</tt></a> @see <a href="QXmlAttributes.html#value(int)"><tt>value</tt></a> */"/> <method name="public final void clear()" doc="/** <p>Clears the list of attributes.</p> @see <a href="QXmlAttributes.html#append(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><tt>append</tt></a> */"/> <method name="public final int count()" doc="/** <p>Returns the number of attributes in the list. This function is equivalent to <a href="QXmlAttributes.html#length()"><tt>length</tt></a>.</p> */"/> <method name="public final int index(java.lang.String uri, java.lang.String localPart)" doc="/** <p>Looks up the index of an attribute by a namespace name.</p> <p><tt>uri</tt> specifies the namespace URI, or an empty string if the name has no namespace URI. <tt>localPart</tt> specifies the attribute's local name.</p> <p>Returns the index of the attribute, or -1 if it wasn't found.</p> @see Namespace Support via Features</tt> */"/> <method name="public final int index(java.lang.String qName)" doc="/** <p>Looks up the index of an attribute by the qualified name <tt>qName</tt>.</p> <p>Returns the index of the attribute or -1 if it wasn't found.</p> @see Namespace Support via Features</tt> */"/> <method name="public final int length()" doc="/** <p>Returns the number of attributes in the list.</p> @see <a href="QXmlAttributes.html#count()"><tt>count</tt></a> */"/> <method name="public final java.lang.String localName(int index)" doc="/** <p>Looks up an attribute's local name for the attribute at position <tt>index</tt>. If no namespace processing is done, the local name is an empty string.</p> @see Namespace Support via Features</tt> */"/> <method name="public final java.lang.String qName(int index)" doc="/** <p>Looks up an attribute's XML 1.0 qualified name for the attribute at position <tt>index</tt>.</p> @see Namespace Support via Features</tt> */"/> <method name="public final java.lang.String type(int index)" doc="/** <p>Looks up an attribute's type for the attribute at position <tt>index</tt>.</p> <p>Currently only &quot;CDATA&quot; is returned.</p> */"/> <method name="public final java.lang.String type(java.lang.String qName)" doc="/** <p>Looks up an attribute's type for the qualified name <tt>qName</tt>.</p> <p>Currently only &quot;CDATA&quot; is returned.</p> */"/> <method name="public final java.lang.String type(java.lang.String uri, java.lang.String localName)" doc="/** <p>Looks up an attribute's type by namespace name.</p> <p><tt>uri</tt> specifies the namespace URI and <tt>localName</tt> specifies the local name. If the name has no namespace URI, use an empty string for <tt>uri</tt>.</p> <p>Currently only &quot;CDATA&quot; is returned.</p> */"/> <method name="public final java.lang.String uri(int index)" doc="/** <p>Looks up an attribute's namespace URI for the attribute at position <tt>index</tt>. If no namespace processing is done or if the attribute has no namespace, the namespace URI is an empty string.</p> @see Namespace Support via Features</tt> */"/> <method name="public final java.lang.String value(java.lang.String uri, java.lang.String localName)" doc="/** <p>Returns an attribute's value by namespace name.</p> <p><tt>uri</tt> specifies the namespace URI, or an empty string if the name has no namespace URI. <tt>localName</tt> specifies the attribute's local name.</p> */"/> <method name="public final java.lang.String value(java.lang.String qName)" doc="/** <p>Returns an attribute's value for the qualified name <tt>qName</tt>, or an empty string if no attribute exists for the name given.</p> @see Namespace Support via Features</tt> */"/> <method name="public final java.lang.String value(int index)" doc="/** <p>Returns an attribute's value for the attribute at position <tt>index</tt>. The index must be a valid position (i.e&#x2e;, 0 &lt;= <tt>index</tt> &lt; <a href="QXmlAttributes.html#count()"><tt>count</tt></a>).</p> */"/> </class>