⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attributesimpl.html

📁 This crimson.jar for java,is s used for parse the file xml
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setAttribute(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">setAttribute</A></B>(int&nbsp;index,             java.lang.String&nbsp;uri,             java.lang.String&nbsp;localName,             java.lang.String&nbsp;qName,             java.lang.String&nbsp;type,             java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an attribute in the list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setAttributes(org.xml.sax.Attributes)">setAttributes</A></B>(<A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A>&nbsp;atts)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy an entire Attributes object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setLocalName(int, java.lang.String)">setLocalName</A></B>(int&nbsp;index,             java.lang.String&nbsp;localName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the local name of a specific attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setQName(int, java.lang.String)">setQName</A></B>(int&nbsp;index,         java.lang.String&nbsp;qName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the qualified name of a specific attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setType(int, java.lang.String)">setType</A></B>(int&nbsp;index,        java.lang.String&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the type of a specific attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setURI(int, java.lang.String)">setURI</A></B>(int&nbsp;index,       java.lang.String&nbsp;uri)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the Namespace URI of a specific attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/xml/sax/helpers/AttributesImpl.html#setValue(int, java.lang.String)">setValue</A></B>(int&nbsp;index,         java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of a specific attribute.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AttributesImpl()"><!-- --></A><H3>AttributesImpl</H3><PRE>public <B>AttributesImpl</B>()</PRE><DL><DD>Construct a new, empty AttributesImpl object.</DL><HR><A NAME="AttributesImpl(org.xml.sax.Attributes)"><!-- --></A><H3>AttributesImpl</H3><PRE>public <B>AttributesImpl</B>(<A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A>&nbsp;atts)</PRE><DL><DD>Copy an existing Attributes object. <p>This constructor is especially useful inside a <A HREF="../../../../org/xml/sax/ContentHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)"><CODE>startElement</CODE></A> event.</p><DD><DL><DT><B>Parameters:</B><DD><CODE>atts</CODE> - The existing Attributes object.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</B>()</PRE><DL><DD>Return the number of attributes in the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getLength()">getLength</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of attributes in the list.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getLength()"><CODE>Attributes.getLength()</CODE></A></DL></DD></DL><HR><A NAME="getURI(int)"><!-- --></A><H3>getURI</H3><PRE>public java.lang.String <B>getURI</B>(int&nbsp;index)</PRE><DL><DD>Return an attribute's Namespace URI.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getURI(int)">getURI</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute's index (zero-based).<DT><B>Returns:</B><DD>The Namespace URI, the empty string if none is         available, or null if the index is out of range.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getURI(int)"><CODE>Attributes.getURI(int)</CODE></A></DL></DD></DL><HR><A NAME="getLocalName(int)"><!-- --></A><H3>getLocalName</H3><PRE>public java.lang.String <B>getLocalName</B>(int&nbsp;index)</PRE><DL><DD>Return an attribute's local name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getLocalName(int)">getLocalName</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute's index (zero-based).<DT><B>Returns:</B><DD>The attribute's local name, the empty string if          none is available, or null if the index if out of range.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getLocalName(int)"><CODE>Attributes.getLocalName(int)</CODE></A></DL></DD></DL><HR><A NAME="getQName(int)"><!-- --></A><H3>getQName</H3><PRE>public java.lang.String <B>getQName</B>(int&nbsp;index)</PRE><DL><DD>Return an attribute's qualified (prefixed) name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getQName(int)">getQName</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute's index (zero-based).<DT><B>Returns:</B><DD>The attribute's qualified name, the empty string if          none is available, or null if the index is out of bounds.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getQName(int)"><CODE>Attributes.getQName(int)</CODE></A></DL></DD></DL><HR><A NAME="getType(int)"><!-- --></A><H3>getType</H3><PRE>public java.lang.String <B>getType</B>(int&nbsp;index)</PRE><DL><DD>Return an attribute's type by index.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getType(int)">getType</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute's index (zero-based).<DT><B>Returns:</B><DD>The attribute's type, "CDATA" if the type is unknown, or null         if the index is out of bounds.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getType(int)"><CODE>Attributes.getType(int)</CODE></A></DL></DD></DL><HR><A NAME="getValue(int)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>(int&nbsp;index)</PRE><DL><DD>Return an attribute's value by index.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getValue(int)">getValue</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The attribute's index (zero-based).<DT><B>Returns:</B><DD>The attribute's value or null if the index is out of bounds.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getValue(int)"><CODE>Attributes.getValue(int)</CODE></A></DL></DD></DL><HR><A NAME="getIndex(java.lang.String, java.lang.String)"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>(java.lang.String&nbsp;uri,                    java.lang.String&nbsp;localName)</PRE><DL><DD>Look up an attribute's index by Namespace name. <p>In many cases, it will be more efficient to look up the name once and use the index query methods rather than using the name query methods repeatedly.</p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String, java.lang.String)">getIndex</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - The attribute's Namespace URI, or the empty        string if none is available.<DD><CODE>localName</CODE> - The attribute's local name.<DT><B>Returns:</B><DD>The attribute's index, or -1 if none matches.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String, java.lang.String)"><CODE>Attributes.getIndex(java.lang.String,java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getIndex(java.lang.String)"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>(java.lang.String&nbsp;qName)</PRE><DL><DD>Look up an attribute's index by qualified (prefixed) name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String)">getIndex</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>qName</CODE> - The qualified name.<DT><B>Returns:</B><DD>The attribute's index, or -1 if none matches.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getIndex(java.lang.String)"><CODE>Attributes.getIndex(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getType(java.lang.String, java.lang.String)"><!-- --></A><H3>getType</H3><PRE>public java.lang.String <B>getType</B>(java.lang.String&nbsp;uri,                                java.lang.String&nbsp;localName)</PRE><DL><DD>Look up an attribute's type by Namespace-qualified name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String, java.lang.String)">getType</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI, or the empty string for a name        with no explicit Namespace URI.<DD><CODE>localName</CODE> - The local name.<DT><B>Returns:</B><DD>The attribute's type, or null if there is no         matching attribute.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String, java.lang.String)"><CODE>Attributes.getType(java.lang.String,java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getType(java.lang.String)"><!-- --></A><H3>getType</H3><PRE>public java.lang.String <B>getType</B>(java.lang.String&nbsp;qName)</PRE><DL><DD>Look up an attribute's type by qualified (prefixed) name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String)">getType</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>qName</CODE> - The qualified name.<DT><B>Returns:</B><DD>The attribute's type, or null if there is no         matching attribute.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getType(java.lang.String)"><CODE>Attributes.getType(java.lang.String)</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -