<class name="QXmlNamespaceSupport" doc="/** <p>The <a href="QXmlNamespaceSupport.html#QXmlNamespaceSupport()"><tt>QXmlNamespaceSupport</tt></a> class is a helper class for XML readers which want to include namespace support.</p> <p>You can set the prefix for the current namespace with <a href="QXmlNamespaceSupport.html#setPrefix(java.lang.String, java.lang.String)"><tt>setPrefix</tt></a>, and get the list of current prefixes (or those for a given URI) with <a href="QXmlNamespaceSupport.html#prefixes()"><tt>prefixes</tt></a>. The namespace URI is available from <a href="QXmlNamespaceSupport.html#uri(java.lang.String)"><tt>uri</tt></a>. Use <a href="QXmlNamespaceSupport.html#pushContext()"><tt>pushContext</tt></a> to start a new namespace context, and <a href="QXmlNamespaceSupport.html#popContext()"><tt>popContext</tt></a> to return to the previous namespace context. Use splitName() or processName() to split a name into its prefix and local name.</p> @see Namespace Support via Features</tt> */"> <method name="public QXmlNamespaceSupport()" doc="/** <p>Constructs a <a href="QXmlNamespaceSupport.html#QXmlNamespaceSupport()"><tt>QXmlNamespaceSupport</tt></a>.</p> */"/> <method name="public final void popContext()" doc="/** <p>Reverts to the previous namespace context.</p> <p>Normally, you should pop the context at the end of each XML element. After popping the context, all namespace prefix mappings that were previously in force are restored.</p> @see <a href="QXmlNamespaceSupport.html#pushContext()"><tt>pushContext</tt></a> */"/> <method name="public final java.lang.String prefix(java.lang.String arg__1)" doc="/** <p>Returns one of the prefixes mapped to the namespace URI <tt>arg__1</tt>.</p> <p>If more than one prefix is currently mapped to the same URI, this function makes an arbitrary selection; if you want all of the prefixes, use <a href="QXmlNamespaceSupport.html#prefixes()"><tt>prefixes</tt></a> instead.</p> <p>Note: to check for a default prefix, use the <a href="QXmlNamespaceSupport.html#uri(java.lang.String)"><tt>uri</tt></a> function with an argument of &quot;&quot;.</p> @see <a href="QXmlNamespaceSupport.html#setPrefix(java.lang.String, java.lang.String)"><tt>setPrefix</tt></a> */"/> <method name="public final java.util.List<java.lang.String> prefixes(java.lang.String arg__1)" doc="/** <p>Returns a list of all prefixes currently declared for the namespace URI <tt>arg__1</tt>.</p> <p>The &quot;xml:&quot; prefix is included. If you only want one prefix that is mapped to the namespace URI, and you don't care which one you get, use the <a href="QXmlNamespaceSupport.html#prefix(java.lang.String)"><tt>prefix</tt></a> function instead.</p> <p>Note: The empty (default) prefix is never included in this list; to check for the presence of a default namespace, call <a href="QXmlNamespaceSupport.html#uri(java.lang.String)"><tt>uri</tt></a> with &quot;&quot; as the argument.</p> */"/> <method name="public final java.util.List<java.lang.String> prefixes()" doc="/** <p>Returns a list of all the prefixes currently declared.</p> <p>If there is a default prefix, this function does not return it in the list; check for the default prefix using <a href="QXmlNamespaceSupport.html#uri(java.lang.String)"><tt>uri</tt></a> with an argument of &quot;&quot;.</p> */"/> <method name="public final void pushContext()" doc="/** <p>Starts a new namespace context.</p> <p>Normally, you should push a new context at the beginning of each XML element: the new context automatically inherits the declarations of its parent context, and it also keeps track of which declarations were made within this context.</p> @see <a href="QXmlNamespaceSupport.html#popContext()"><tt>popContext</tt></a> */"/> <method name="public final void reset()" doc="/** <p>Resets this namespace support object ready for reuse.</p> */"/> <method name="public final void setPrefix(java.lang.String arg__1, java.lang.String arg__2)" doc="/** <p>This function declares a prefix <tt>arg__1</tt> in the current namespace context to be the namespace URI <tt>arg__2</tt>. The prefix remains in force until this context is popped, unless it is shadowed in a descendant context.</p> <p>Note that there is an asymmetry in this library. <a href="QXmlNamespaceSupport.html#prefix(java.lang.String)"><tt>prefix</tt></a> does not return the default &quot;&quot; prefix, even if you have declared one; to check for a default prefix, you must look it up explicitly using <a href="QXmlNamespaceSupport.html#uri(java.lang.String)"><tt>uri</tt></a>. This asymmetry exists to make it easier to look up prefixes for attribute names, where the default prefix is not allowed.</p> @see <a href="QXmlNamespaceSupport.html#prefix(java.lang.String)"><tt>prefix</tt></a> */"/> <method name="public final java.lang.String uri(java.lang.String arg__1)" doc="/** <p>Looks up the prefix <tt>arg__1</tt> in the current context and returns the currently-mapped namespace URI. Use the empty string (&quot;&quot;) for the default namespace.</p> */"/> </class>