📄 attributelistimpl.html
字号:
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="AttributeListImpl()"><!-- --></A><H3>
AttributeListImpl</H3>
<PRE>
public <B>AttributeListImpl</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Create an empty attribute list.
<p>This constructor is most useful for parser writers, who
will use it to create a single, reusable attribute list that
can be reset with the clear method between elements.</p><DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/helpers/AttributeListImpl.html#addAttribute(java.lang.String, java.lang.String, java.lang.String)"><CODE>addAttribute(java.lang.String, java.lang.String, java.lang.String)</CODE></A>,
<A HREF="../../../../org/xml/sax/helpers/AttributeListImpl.html#clear()"><CODE>clear()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="AttributeListImpl(org.xml.sax.AttributeList)"><!-- --></A><H3>
AttributeListImpl</H3>
<PRE>
public <B>AttributeListImpl</B>(<A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A> atts)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Construct a persistent copy of an existing attribute list.
<p>This constructor is most useful for application writers,
who will use it to create a persistent copy of an existing
attribute list.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>atts</CODE> - The attribute list to copy<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/DocumentHandler.html#startElement(java.lang.String, org.xml.sax.AttributeList)"><CODE>DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)</CODE></A></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="setAttributeList(org.xml.sax.AttributeList)"><!-- --></A><H3>
setAttributeList</H3>
<PRE>
public void <B>setAttributeList</B>(<A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A> atts)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Set the attribute list, discarding previous contents.
<p>This method allows an application writer to reuse an
attribute list easily.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>atts</CODE> - The attribute list to copy.</DL>
</DD>
</DL>
<HR>
<A NAME="addAttribute(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
addAttribute</H3>
<PRE>
public void <B>addAttribute</B>(java.lang.String name,
java.lang.String type,
java.lang.String value)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Add an attribute to an attribute list.
<p>This method is provided for SAX parser writers, to allow them
to build up an attribute list incrementally before delivering
it to the application.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.<DD><CODE>type</CODE> - The attribute type ("NMTOKEN" for an enumeration).<DD><CODE>value</CODE> - The attribute value (must not be null).<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/helpers/AttributeListImpl.html#removeAttribute(java.lang.String)"><CODE>removeAttribute(java.lang.String)</CODE></A>,
<A HREF="../../../../org/xml/sax/DocumentHandler.html#startElement(java.lang.String, org.xml.sax.AttributeList)"><CODE>DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="removeAttribute(java.lang.String)"><!-- --></A><H3>
removeAttribute</H3>
<PRE>
public void <B>removeAttribute</B>(java.lang.String name)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Remove an attribute from the list.
<p>SAX application writers can use this method to filter an
attribute out of an AttributeList. Note that invoking this
method will change the length of the attribute list and
some of the attribute's indices.</p>
<p>If the requested attribute is not in the list, this is
a no-op.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/helpers/AttributeListImpl.html#addAttribute(java.lang.String, java.lang.String, java.lang.String)"><CODE>addAttribute(java.lang.String, java.lang.String, 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><B>Deprecated.</B> <DD>Clear the attribute list.
<p>SAX parser writers can use this method to reset the attribute
list between DocumentHandler.startElement events. Normally,
it will make sense to reuse the same AttributeListImpl object
rather than allocating a new one each time.</p><DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/DocumentHandler.html#startElement(java.lang.String, org.xml.sax.AttributeList)"><CODE>DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)</CODE></A></DL>
</DD>
</DL>
<HR>
<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 the list.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getLength()">getLength</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</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/AttributeList.html#getLength()"><CODE>AttributeList.getLength()</CODE></A></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>Get the name of an attribute (by position).<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getName(int)">getName</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The attribute name as a string, or null if there
is no attribute at that position.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/AttributeList.html#getName(int)"><CODE>AttributeList.getName(int)</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>Get the type of an attribute (by position).<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getType(int)">getType</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The attribute type as a string ("NMTOKEN" for an
enumeration, and "CDATA" if no declaration was
read), or null if there is no attribute at
that position.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/AttributeList.html#getType(int)"><CODE>AttributeList.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 i)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get the value of an attribute (by position).<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getValue(int)">getValue</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The position of the attribute in the list.<DT><B>Returns:</B><DD>The attribute value as a string, or null if
there is no attribute at that position.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/AttributeList.html#getValue(int)"><CODE>AttributeList.getValue(int)</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>Get the type of an attribute (by name).<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getType(java.lang.String)">getType</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.<DT><B>Returns:</B><DD>The attribute type as a string ("NMTOKEN" for an
enumeration, and "CDATA" if no declaration was
read).<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/AttributeList.html#getType(java.lang.String)"><CODE>AttributeList.getType(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 name)</PRE>
<DL>
<DD><B>Deprecated.</B> <DD>Get the value of an attribute (by name).<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/xml/sax/AttributeList.html#getValue(java.lang.String)">getValue</A></CODE> in interface <CODE><A HREF="../../../../org/xml/sax/AttributeList.html">AttributeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The attribute name.<DT><B>See Also: </B><DD><A HREF="../../../../org/xml/sax/AttributeList.html#getValue(java.lang.String)"><CODE>AttributeList.getValue(java.lang.String)</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="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/helpers/AttributesImpl.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="AttributeListImpl.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 + -