diff options
Diffstat (limited to 'doc/html/tqxmlattributes.html')
-rw-r--r-- | doc/html/tqxmlattributes.html | 200 |
1 files changed, 200 insertions, 0 deletions
diff --git a/doc/html/tqxmlattributes.html b/doc/html/tqxmlattributes.html new file mode 100644 index 000000000..5f162b19c --- /dev/null +++ b/doc/html/tqxmlattributes.html @@ -0,0 +1,200 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/xml/tqxml.cpp:647 --> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<title>TQXmlAttributes Class</title> +<style type="text/css"><!-- +fn { margin-left: 1cm; text-indent: -1cm; } +a:link { color: #004faf; text-decoration: none } +a:visited { color: #672967; text-decoration: none } +body { background: #ffffff; color: black; } +--></style> +</head> +<body> + +<table border="0" cellpadding="0" cellspacing="0" width="100%"> +<tr bgcolor="#E5E5E5"> +<td valign=center> + <a href="index.html"> +<font color="#004faf">Home</font></a> + | <a href="classes.html"> +<font color="#004faf">All Classes</font></a> + | <a href="mainclasses.html"> +<font color="#004faf">Main Classes</font></a> + | <a href="annotated.html"> +<font color="#004faf">Annotated</font></a> + | <a href="groups.html"> +<font color="#004faf">Grouped Classes</font></a> + | <a href="functions.html"> +<font color="#004faf">Functions</font></a> +</td> +<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQXmlAttributes Class Reference<br><small>[<a href="xml.html">XML module</a>]</small></h1> + +<p>The TQXmlAttributes class provides XML attributes. +<a href="#details">More...</a> +<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when TQt is built with thread support.</p> +<p><tt>#include <<a href="tqxml-h.html">tqxml.h</a>></tt> +<p><a href="tqxmlattributes-members.html">List of all member functions.</a> +<h2>Public Members</h2> +<ul> +<li class=fn><a href="#TQXmlAttributes"><b>TQXmlAttributes</b></a> ()</li> +<li class=fn>virtual <a href="#~TQXmlAttributes"><b>~TQXmlAttributes</b></a> ()</li> +<li class=fn>int <a href="#index"><b>index</b></a> ( const TQString & qName ) const</li> +<li class=fn>int <a href="#index-2"><b>index</b></a> ( const TQString & uri, const TQString & localPart ) const</li> +<li class=fn>int <a href="#length"><b>length</b></a> () const</li> +<li class=fn>int <a href="#count"><b>count</b></a> () const</li> +<li class=fn>TQString <a href="#localName"><b>localName</b></a> ( int index ) const</li> +<li class=fn>TQString <a href="#qName"><b>qName</b></a> ( int index ) const</li> +<li class=fn>TQString <a href="#uri"><b>uri</b></a> ( int index ) const</li> +<li class=fn>TQString <a href="#type"><b>type</b></a> ( int index ) const</li> +<li class=fn>TQString <a href="#type-2"><b>type</b></a> ( const TQString & qName ) const</li> +<li class=fn>TQString <a href="#type-3"><b>type</b></a> ( const TQString & uri, const TQString & localName ) const</li> +<li class=fn>TQString <a href="#value"><b>value</b></a> ( int index ) const</li> +<li class=fn>TQString <a href="#value-2"><b>value</b></a> ( const TQString & qName ) const</li> +<li class=fn>TQString <a href="#value-3"><b>value</b></a> ( const TQString & uri, const TQString & localName ) const</li> +<li class=fn>void <a href="#clear"><b>clear</b></a> ()</li> +<li class=fn>void <a href="#append"><b>append</b></a> ( const TQString & qName, const TQString & uri, const TQString & localPart, const TQString & value )</li> +</ul> +<hr><a name="details"></a><h2>Detailed Description</h2> + + + +The TQXmlAttributes class provides XML attributes. + +<p> + +<p> If attributes are reported by <a href="tqxmlcontenthandler.html#startElement">TQXmlContentHandler::startElement</a>() +this class is used to pass the attribute values. +<p> Use <a href="#index">index</a>() to locate the position of an attribute in the list, +<a href="#count">count</a>() to retrieve the number of attributes, and <a href="#clear">clear</a>() to +remove the attributes. New attributes can be added with <a href="#append">append</a>(). +Use <a href="#type">type</a>() to get an attribute's type and <a href="#value">value</a>() to get its +value. The attribute's name is available from <a href="#localName">localName</a>() or +<a href="#qName">qName</a>(), and its namespace URI from <a href="#uri">uri</a>(). +<p> <p>See also <a href="xml-tools.html">XML</a>. + +<hr><h2>Member Function Documentation</h2> +<h3 class=fn><a name="TQXmlAttributes"></a>TQXmlAttributes::TQXmlAttributes () +</h3> + +<p> Constructs an empty attribute list. + +<h3 class=fn><a name="~TQXmlAttributes"></a>TQXmlAttributes::~TQXmlAttributes ()<tt> [virtual]</tt> +</h3> + +<p> Destroys the attributes object. + +<h3 class=fn>void <a name="append"></a>TQXmlAttributes::append ( const <a href="ntqstring.html">TQString</a> & qName, const <a href="ntqstring.html">TQString</a> & uri, const <a href="ntqstring.html">TQString</a> & localPart, const <a href="ntqstring.html">TQString</a> & value ) +</h3> +Appends a new attribute entry to the list of attributes. The +qualified name of the attribute is <em>qName</em>, the namespace URI is +<em>uri</em> and the local name is <em>localPart</em>. The value of the +attribute is <em>value</em>. +<p> <p>See also <a href="#qName">qName</a>(), <a href="#uri">uri</a>(), <a href="#localName">localName</a>(), and <a href="#value">value</a>(). + +<h3 class=fn>void <a name="clear"></a>TQXmlAttributes::clear () +</h3> +Clears the list of attributes. +<p> <p>See also <a href="#append">append</a>(). + +<h3 class=fn>int <a name="count"></a>TQXmlAttributes::count () const +</h3> + +<p> Returns the number of attributes in the list. This function is +equivalent to <a href="#length">length</a>(). + +<h3 class=fn>int <a name="index"></a>TQXmlAttributes::index ( const <a href="ntqstring.html">TQString</a> & qName ) const +</h3> +Looks up the index of an attribute by the qualified name <em>qName</em>. +<p> Returns the index of the attribute or -1 if it wasn't found. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<h3 class=fn>int <a name="index-2"></a>TQXmlAttributes::index ( const <a href="ntqstring.html">TQString</a> & uri, const <a href="ntqstring.html">TQString</a> & localPart ) const +</h3> +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +<p> Looks up the index of an attribute by a namespace name. +<p> <em>uri</em> specifies the namespace URI, or an empty string if the name +has no namespace URI. <em>localPart</em> specifies the attribute's local +name. +<p> Returns the index of the attribute, or -1 if it wasn't found. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<h3 class=fn>int <a name="length"></a>TQXmlAttributes::length () const +</h3> +Returns the number of attributes in the list. +<p> <p>See also <a href="#count">count</a>(). + +<p>Example: <a href="tagreader-with-features-example.html#x1967">xml/tagreader-with-features/structureparser.cpp</a>. +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="localName"></a>TQXmlAttributes::localName ( int index ) const +</h3> +Looks up an attribute's local name for the attribute at position +<em>index</em>. If no namespace processing is done, the local name is +<a href="ntqstring.html#TQString-null">TQString::null</a>. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="qName"></a>TQXmlAttributes::qName ( int index ) const +</h3> +Looks up an attribute's XML 1.0 qualified name for the attribute +at position <em>index</em>. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<p>Example: <a href="ntqlistview.html#x2106">xml/tagreader-with-features/structureparser.cpp</a>. +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="type"></a>TQXmlAttributes::type ( int index ) const +</h3> +Looks up an attribute's type for the attribute at position <em>index</em>. +<p> Currently only "CDATA" is returned. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="type-2"></a>TQXmlAttributes::type ( const <a href="ntqstring.html">TQString</a> & qName ) const +</h3> +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +<p> Looks up an attribute's type for the qualified name <em>qName</em>. +<p> Currently only "CDATA" is returned. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="type-3"></a>TQXmlAttributes::type ( const <a href="ntqstring.html">TQString</a> & uri, const <a href="ntqstring.html">TQString</a> & localName ) const +</h3> +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +<p> Looks up an attribute's type by namespace name. +<p> <em>uri</em> specifies the namespace URI and <em>localName</em> specifies the +local name. If the name has no namespace URI, use an empty string +for <em>uri</em>. +<p> Currently only "CDATA" is returned. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="uri"></a>TQXmlAttributes::uri ( int index ) const +</h3> +Looks up an attribute's namespace URI for the attribute at +position <em>index</em>. If no namespace processing is done or if the +attribute has no namespace, the namespace URI is <a href="ntqstring.html#TQString-null">TQString::null</a>. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<p>Example: <a href="ntqlistview.html#x2107">xml/tagreader-with-features/structureparser.cpp</a>. +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="value"></a>TQXmlAttributes::value ( int index ) const +</h3> +Looks up an attribute's value for the attribute at position <em>index</em>. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="value-2"></a>TQXmlAttributes::value ( const <a href="ntqstring.html">TQString</a> & qName ) const +</h3> +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +<p> Looks up an attribute's value for the qualified name <em>qName</em>. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="value-3"></a>TQXmlAttributes::value ( const <a href="ntqstring.html">TQString</a> & uri, const <a href="ntqstring.html">TQString</a> & localName ) const +</h3> +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +<p> Looks up an attribute's value by namespace name. +<p> <em>uri</em> specifies the namespace URI, or an empty string if the name +has no namespace URI. <em>localName</em> specifies the attribute's local +name. +<p> See also the <a href="xml.html#sax2Namespaces">namespace description</a>. + +<!-- eof --> +<hr><p> +This file is part of the <a href="index.html">TQt toolkit</a>. +Copyright © 1995-2007 +<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center> +<table width=100% cellspacing=0 border=0><tr> +<td>Copyright © 2007 +<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a> +<td align=right><div align=right>TQt 3.3.8</div> +</table></div></address></body> +</html> |