📄 attributelist.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/xml/sax/AttributeList.html#getValue(java.lang.String)">getValue</A></B>(java.lang.String name)</CODE><BR> <B>Deprecated.</B> Return the value of an attribute in the list (by name).</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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><B>Deprecated.</B> <DD>Return the number of attributes in this list. <p>The SAX parser may provide attributes in any arbitrary order, regardless of the order in which they were declared or specified. The number of attributes may be zero.</p><DD><DL><DT><B>Returns:</B><DD>The number of attributes in the list.</DL></DD></DL><HR><A NAME="getName(int)"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>(int i)</PRE><DL><DD><B>Deprecated.</B> <DD>Return the name of an attribute in this list (by position). <p>The names must be unique: the SAX parser shall not include the same attribute twice. Attributes without values (those declared #IMPLIED without a value specified in the start tag) will be omitted from the list.</p> <p>If the attribute name has a namespace prefix, the prefix will still be attached.</p><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the attribute in the list (starting at 0).<DT><B>Returns:</B><DD>The name of the indexed attribute, or null if the index is out of range.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/AttributeList.html#getLength()"><CODE>getLength()</CODE></A></DL></DD></DL><HR><A NAME="getType(int)"><!-- --></A><H3>getType</H3><PRE>public java.lang.String <B>getType</B>(int i)</PRE><DL><DD><B>Deprecated.</B> <DD>Return the type of an attribute in the list (by position). <p>The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).</p> <p>If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization").</p> <p>For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".</p><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the attribute in the list (starting at 0).<DT><B>Returns:</B><DD>The attribute type as a string, or null if the index is out of range.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/AttributeList.html#getLength()"><CODE>getLength()</CODE></A>, <A HREF="../../../org/xml/sax/AttributeList.html#getType(java.lang.String)"><CODE>getType(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getValue(int)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>(int i)</PRE><DL><DD><B>Deprecated.</B> <DD>Return the value of an attribute in the list (by position). <p>If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string separated by whitespace.</p><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the attribute in the list (starting at 0).<DT><B>Returns:</B><DD>The attribute value as a string, or null if the index is out of range.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/AttributeList.html#getLength()"><CODE>getLength()</CODE></A>, <A HREF="../../../org/xml/sax/AttributeList.html#getValue(java.lang.String)"><CODE>getValue(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 name)</PRE><DL><DD><B>Deprecated.</B> <DD>Return the type of an attribute in the list (by name). <p>The return value is the same as the return value for getType(int).</p> <p>If the attribute name has a namespace prefix in the document, the application must include the prefix here.</p><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute.<DT><B>Returns:</B><DD>The attribute type as a string, or null if no such attribute exists.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/AttributeList.html#getType(int)"><CODE>getType(int)</CODE></A></DL></DD></DL><HR><A NAME="getValue(java.lang.String)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>(java.lang.String name)</PRE><DL><DD><B>Deprecated.</B> <DD>Return the value of an attribute in the list (by name). <p>The return value is the same as the return value for getValue(int).</p> <p>If the attribute name has a namespace prefix in the document, the application must include the prefix here.</p><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the attribute in the list.<DT><B>Returns:</B><DD>The attribute value as a string, or null if no such attribute exists.<DT><B>See Also: </B><DD><A HREF="../../../org/xml/sax/AttributeList.html#getValue(int)"><CODE>getValue(int)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AttributeList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../org/xml/sax/Attributes.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AttributeList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -