Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2459

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QXmlContentHandler" doc="/**
&lt;p&gt;The &lt;a href=&quot;QXmlContentHandler.html#QXmlContentHandler()&quot;&gt;&lt;tt&gt;QXmlContentHandler&lt;/tt&gt;&lt;/a&gt; class provides an interface to report the logical content of XML data.&lt;/p&gt;
&lt;p&gt;If the application needs to be informed of basic parsing events, it can implement this interface and activate it using QXmlReader::setContentHandler(). The reader can then report basic document-related events like the start and end of elements and character data through this interface.&lt;/p&gt;
&lt;p&gt;The order of events in this interface is very important, and mirrors the order of information in the document itself. For example, all of an element's content (character data, processing instructions, and sub-elements) appears, in order, between the &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt; event and the corresponding &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; event.&lt;/p&gt;
&lt;p&gt;The class &lt;a href=&quot;QXmlDefaultHandler.html&quot;&gt;&lt;tt&gt;QXmlDefaultHandler&lt;/tt&gt;&lt;/a&gt; provides a default implementation for this interface; subclassing from the &lt;a href=&quot;QXmlDefaultHandler.html&quot;&gt;&lt;tt&gt;QXmlDefaultHandler&lt;/tt&gt;&lt;/a&gt; class is very convenient if you only want to be informed of some parsing events.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QXmlContentHandler.html#startDocument()&quot;&gt;&lt;tt&gt;startDocument&lt;/tt&gt;&lt;/a&gt; function is called at the start of the document, and &lt;a href=&quot;QXmlContentHandler.html#endDocument()&quot;&gt;&lt;tt&gt;endDocument&lt;/tt&gt;&lt;/a&gt; is called at the end. Before parsing begins &lt;a href=&quot;QXmlContentHandler.html#setDocumentLocator(com.trolltech.qt.xml.QXmlLocator)&quot;&gt;&lt;tt&gt;setDocumentLocator&lt;/tt&gt;&lt;/a&gt; is called. For each element &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt; is called, with &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; being called at the end of each element. The &lt;a href=&quot;QXmlContentHandler.html#characters(java.lang.String)&quot;&gt;&lt;tt&gt;characters&lt;/tt&gt;&lt;/a&gt; function is called with chunks of character data; &lt;a href=&quot;QXmlContentHandler.html#ignorableWhitespace(java.lang.String)&quot;&gt;&lt;tt&gt;ignorableWhitespace&lt;/tt&gt;&lt;/a&gt; is called with chunks of whitespace and &lt;a href=&quot;QXmlContentHandler.html#processingInstruction(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;processingInstruction&lt;/tt&gt;&lt;/a&gt; is called with processing instructions. If an entity is skipped &lt;a href=&quot;QXmlContentHandler.html#skippedEntity(java.lang.String)&quot;&gt;&lt;tt&gt;skippedEntity&lt;/tt&gt;&lt;/a&gt; is called. At the beginning of prefix-URI scopes &lt;a href=&quot;QXmlContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;startPrefixMapping&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;

@see &lt;a href=&quot;QXmlDTDHandler.html&quot;&gt;&lt;tt&gt;QXmlDTDHandler&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlDeclHandler.html&quot;&gt;&lt;tt&gt;QXmlDeclHandler&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlEntityResolver.html&quot;&gt;&lt;tt&gt;QXmlEntityResolver&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlErrorHandler.html&quot;&gt;&lt;tt&gt;QXmlErrorHandler&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QXmlLexicalHandler.html&quot;&gt;&lt;tt&gt;QXmlLexicalHandler&lt;/tt&gt;&lt;/a&gt;
@see Introduction to SAX2&lt;/tt&gt; */">
    <method name="public QXmlContentHandler()"/>
    <method name="public abstract boolean characters(java.lang.String ch)" doc="/**
&lt;p&gt;The reader calls this function when it has parsed a chunk of character data (either normal character data or character data inside a CDATA section; if you need to distinguish between those two types you must use QXmlLexicalHandler::startCDATA() and QXmlLexicalHandler::endCDATA()). The character data is reported in &lt;tt&gt;ch&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Some readers report whitespace in element content using the &lt;a href=&quot;QXmlContentHandler.html#ignorableWhitespace(java.lang.String)&quot;&gt;&lt;tt&gt;ignorableWhitespace&lt;/tt&gt;&lt;/a&gt; function rather than using this one.&lt;/p&gt;
&lt;p&gt;A reader may report the character data of an element in more than one chunk; e.g&amp;#x2e; a reader might want to report &amp;quot;a&amp;lt;b&amp;quot; in three &lt;a href=&quot;QXmlContentHandler.html#characters(java.lang.String)&quot;&gt;&lt;tt&gt;characters&lt;/tt&gt;&lt;/a&gt; events (&amp;quot;a &amp;quot;, &amp;quot;&amp;lt;&amp;quot; and &amp;quot; b&amp;quot;).&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;
 */"/>
    <method name="public abstract boolean endDocument()" doc="/**
&lt;p&gt;The reader calls this function after it has finished parsing. It is called just once, and is the last handler function called. It is called after the reader has read all input or has abandoned parsing because of a fatal error.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#startDocument()&quot;&gt;&lt;tt&gt;startDocument&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public abstract boolean endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)" doc="/**
&lt;p&gt;The reader calls this function when it has parsed an end element tag with the qualified name &lt;tt&gt;qName&lt;/tt&gt;, the local name &lt;tt&gt;localName&lt;/tt&gt; and the namespace URI &lt;tt&gt;namespaceURI&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt;
@see Namespace Support via Features&lt;/tt&gt; */"/>
    <method name="public abstract boolean endPrefixMapping(java.lang.String prefix)" doc="/**
&lt;p&gt;The reader calls this function to signal the end of a prefix mapping for the prefix &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;startPrefixMapping&lt;/tt&gt;&lt;/a&gt;
@see Namespace Support via Features&lt;/tt&gt; */"/>
    <method name="public abstract java.lang.String errorString()" doc="/**
&lt;p&gt;The reader calls this function to get an error string, e.g&amp;#x2e; if any of the handler functions returns false.&lt;/p&gt;
 */"/>
    <method name="public abstract boolean ignorableWhitespace(java.lang.String ch)" doc="/**
&lt;p&gt;Some readers may use this function to report each chunk of whitespace in element content. The whitespace is reported in &lt;tt&gt;ch&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;
 */"/>
    <method name="public abstract boolean processingInstruction(java.lang.String target, java.lang.String data)" doc="/**
&lt;p&gt;The reader calls this function when it has parsed a processing instruction.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;target&lt;/tt&gt; is the target name of the processing instruction and &lt;tt&gt;data&lt;/tt&gt; is the data in the processing instruction.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;
 */"/>
    <method name="public abstract void setDocumentLocator(com.trolltech.qt.xml.QXmlLocator locator)" doc="/**
&lt;p&gt;The reader calls this function before it starts parsing the document. The argument &lt;tt&gt;locator&lt;/tt&gt; is a pointer to a &lt;a href=&quot;QXmlLocator.html&quot;&gt;&lt;tt&gt;QXmlLocator&lt;/tt&gt;&lt;/a&gt; which allows the application to get the parsing position within the document.&lt;/p&gt;
&lt;p&gt;Do not destroy the &lt;tt&gt;locator&lt;/tt&gt;; it is destroyed when the reader is destroyed. (Do not use the &lt;tt&gt;locator&lt;/tt&gt; after the reader is destroyed).&lt;/p&gt;
 */"/>
    <method name="public abstract boolean skippedEntity(java.lang.String name)" doc="/**
&lt;p&gt;Some readers may skip entities if they have not seen the declarations (e.g&amp;#x2e; because they are in an external DTD). If they do so they report that they skipped the entity called &lt;tt&gt;name&lt;/tt&gt; by calling this function.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;
 */"/>
    <method name="public abstract boolean startDocument()" doc="/**
&lt;p&gt;The reader calls this function when it starts parsing the document. The reader calls this function just once, after the call to &lt;a href=&quot;QXmlContentHandler.html#setDocumentLocator(com.trolltech.qt.xml.QXmlLocator)&quot;&gt;&lt;tt&gt;setDocumentLocator&lt;/tt&gt;&lt;/a&gt;, and before any other functions in this class or in the &lt;a href=&quot;QXmlDTDHandler.html&quot;&gt;&lt;tt&gt;QXmlDTDHandler&lt;/tt&gt;&lt;/a&gt; class are called.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#endDocument()&quot;&gt;&lt;tt&gt;endDocument&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public abstract boolean startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, com.trolltech.qt.xml.QXmlAttributes atts)" doc="/**
&lt;p&gt;The reader calls this function when it has parsed a start element tag.&lt;/p&gt;
&lt;p&gt;There is a corresponding &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; call when the corresponding end element tag is read. The &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; calls are always nested correctly. Empty element tags (e.g&amp;#x2e; &lt;tt&gt;&amp;lt;x/&amp;gt;&lt;/tt&gt;) cause a &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt; call to be immediately followed by an &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; call.&lt;/p&gt;
&lt;p&gt;The attribute list provided only contains attributes with explicit values. The attribute list contains attributes used for namespace declaration (i.e&amp;#x2e; attributes starting with xmlns) only if the namespace-prefix property of the reader is true.&lt;/p&gt;
&lt;p&gt;The argument &lt;tt&gt;namespaceURI&lt;/tt&gt; is the namespace URI, or an empty string if the element has no namespace URI or if no namespace processing is done. &lt;tt&gt;localName&lt;/tt&gt; is the local name (without prefix), or an empty string if no namespace processing is done, &lt;tt&gt;qName&lt;/tt&gt; is the qualified name (with prefix) and &lt;tt&gt;atts&lt;/tt&gt; are the attributes attached to the element. If there are no attributes, &lt;tt&gt;atts&lt;/tt&gt; is an empty attributes object.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt;
@see Namespace Support via Features&lt;/tt&gt; */"/>
    <method name="public abstract boolean startPrefixMapping(java.lang.String prefix, java.lang.String uri)" doc="/**
&lt;p&gt;The reader calls this function to signal the begin of a prefix-URI namespace mapping scope. This information is not necessary for normal namespace processing since the reader automatically replaces prefixes for element and attribute names.&lt;/p&gt;
&lt;p&gt;Note that &lt;a href=&quot;QXmlContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;startPrefixMapping&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QXmlContentHandler.html#endPrefixMapping(java.lang.String)&quot;&gt;&lt;tt&gt;endPrefixMapping&lt;/tt&gt;&lt;/a&gt; calls are not guaranteed to be properly nested relative to each other: all &lt;a href=&quot;QXmlContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;startPrefixMapping&lt;/tt&gt;&lt;/a&gt; events occur before the corresponding &lt;a href=&quot;QXmlContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, com.trolltech.qt.xml.QXmlAttributes)&quot;&gt;&lt;tt&gt;startElement&lt;/tt&gt;&lt;/a&gt; event, and all &lt;a href=&quot;QXmlContentHandler.html#endPrefixMapping(java.lang.String)&quot;&gt;&lt;tt&gt;endPrefixMapping&lt;/tt&gt;&lt;/a&gt; events occur after the corresponding &lt;a href=&quot;QXmlContentHandler.html#endElement(java.lang.String, java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;endElement&lt;/tt&gt;&lt;/a&gt; event, but their order is not otherwise guaranteed.&lt;/p&gt;
&lt;p&gt;The argument &lt;tt&gt;prefix&lt;/tt&gt; is the namespace prefix being declared and the argument &lt;tt&gt;uri&lt;/tt&gt; is the namespace URI the prefix is mapped to.&lt;/p&gt;
&lt;p&gt;If this function returns false the reader stops parsing and reports an error. The reader uses the function &lt;a href=&quot;QXmlContentHandler.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get the error message.&lt;/p&gt;

@see &lt;a href=&quot;QXmlContentHandler.html#endPrefixMapping(java.lang.String)&quot;&gt;&lt;tt&gt;endPrefixMapping&lt;/tt&gt;&lt;/a&gt;
@see Namespace Support via Features&lt;/tt&gt; */"/>
</class>