📄 attributesimpl.html
字号:
<A NAME="getValue(java.lang.String, java.lang.String)"><!-- --></A><H3>
getValue</H3>
<PRE>
public java.lang.String <B>getValue</B>(java.lang.String uri,
java.lang.String localName)</PRE>
<DL>
<DD>Look up an attribute's value by Namespace-qualified name.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String, java.lang.String)">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>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 value, or null if there is no
matching attribute.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String, java.lang.String)"><CODE>Attributes.getValue(java.lang.String,java.lang.String)</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 qName)</PRE>
<DL>
<DD>Look up an attribute's value by qualified (prefixed) name.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String)">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>qName</CODE> - The qualified name.<DT><B>Returns:</B><DD>The attribute's value, or null if there is no
matching attribute.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/Attributes.html#getValue(java.lang.String)"><CODE>Attributes.getValue(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="clear()"><!-- --></A><H3>
clear</H3>
<PRE>
public void <B>clear</B>()</PRE>
<DL>
<DD>Clear the attribute list for reuse.
<p>Note that no memory is actually freed by this call:
the current arrays are kept so that they can be
reused.</p><DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setAttributes(org.xml.sax.Attributes)"><!-- --></A><H3>
setAttributes</H3>
<PRE>
public void <B>setAttributes</B>(<A HREF="../../../../org/xml/sax/Attributes.html">Attributes</A> atts)</PRE>
<DL>
<DD>Copy an entire Attributes object.
<p>It may be more efficient to reuse an existing object
rather than constantly allocating new ones.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>atts</CODE> - The attributes to copy.</DL>
</DD>
</DL>
<HR>
<A NAME="addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
addAttribute</H3>
<PRE>
public void <B>addAttribute</B>(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
java.lang.String value)</PRE>
<DL>
<DD>Add an attribute to the end of the list.
<p>For the sake of speed, this method does no checking
to see if the attribute is already in the list: that is
the responsibility of the application.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - The Namespace URI, or the empty string if
none is available or Namespace processing is not
being performed.<DD><CODE>localName</CODE> - The local name, or the empty string if
Namespace processing is not being performed.<DD><CODE>qName</CODE> - The qualified (prefixed) name, or the empty string
if qualified names are not available.<DD><CODE>type</CODE> - The attribute type as a string.<DD><CODE>value</CODE> - The attribute value.</DL>
</DD>
</DL>
<HR>
<A NAME="setAttribute(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
setAttribute</H3>
<PRE>
public void <B>setAttribute</B>(int index,
java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String type,
java.lang.String value)</PRE>
<DL>
<DD>Set an attribute in the list.
<p>For the sake of speed, this method does no checking
for name conflicts or well-formedness: such checks are the
responsibility of the application.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>uri</CODE> - The Namespace URI, or the empty string if
none is available or Namespace processing is not
being performed.<DD><CODE>localName</CODE> - The local name, or the empty string if
Namespace processing is not being performed.<DD><CODE>qName</CODE> - The qualified name, or the empty string
if qualified names are not available.<DD><CODE>type</CODE> - The attribute type as a string.<DD><CODE>value</CODE> - The attribute value.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="removeAttribute(int)"><!-- --></A><H3>
removeAttribute</H3>
<PRE>
public void <B>removeAttribute</B>(int index)</PRE>
<DL>
<DD>Remove an attribute from the list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setURI(int, java.lang.String)"><!-- --></A><H3>
setURI</H3>
<PRE>
public void <B>setURI</B>(int index,
java.lang.String uri)</PRE>
<DL>
<DD>Set the Namespace URI of a specific attribute.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>uri</CODE> - The attribute's Namespace URI, or the empty
string for none.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setLocalName(int, java.lang.String)"><!-- --></A><H3>
setLocalName</H3>
<PRE>
public void <B>setLocalName</B>(int index,
java.lang.String localName)</PRE>
<DL>
<DD>Set the local name of a specific attribute.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>localName</CODE> - The attribute's local name, or the empty
string for none.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setQName(int, java.lang.String)"><!-- --></A><H3>
setQName</H3>
<PRE>
public void <B>setQName</B>(int index,
java.lang.String qName)</PRE>
<DL>
<DD>Set the qualified name of a specific attribute.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>qName</CODE> - The attribute's qualified name, or the empty
string for none.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setType(int, java.lang.String)"><!-- --></A><H3>
setType</H3>
<PRE>
public void <B>setType</B>(int index,
java.lang.String type)</PRE>
<DL>
<DD>Set the type of a specific attribute.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>type</CODE> - The attribute's type.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(int, java.lang.String)"><!-- --></A><H3>
setValue</H3>
<PRE>
public void <B>setValue</B>(int index,
java.lang.String value)</PRE>
<DL>
<DD>Set the value of a specific attribute.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the attribute (zero-based).<DD><CODE>value</CODE> - The attribute's value.<DT><B>Throws:</B><DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - When the
supplied index does not point to an attribute
in the list.</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="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">
<A HREF="../../../../org/xml/sax/helpers/AttributeListImpl.html"><B>PREV CLASS</B></A>
<A HREF="../../../../org/xml/sax/helpers/DefaultHandler.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="AttributesImpl.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -