📄 basicattributes.html
字号:
<PRE>public <A HREF="../../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>getAll</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></B></DD><DD>Retrieves an enumeration of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attributes.html#getAll()">getAll</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attributes</CODE></DD><DD><DL><DT><B>Returns:</B><DD>A non-null enumeration of the attributes in this attribute set. Each element of the enumeration is of class <tt>Attribute</tt>. If attribute set has zero attributes, an empty enumeration is returned.</DL></DD></DL><HR><A NAME="getIDs()"><!-- --></A><H3>getIDs</H3><PRE>public <A HREF="../../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>getIDs</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></B></DD><DD>Retrieves an enumeration of the ids of the attributes in the attribute set. The effects of updates to this attribute set on this enumeration are undefined.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attributes.html#getIDs()">getIDs</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attributes</CODE></DD><DD><DL><DT><B>Returns:</B><DD>A non-null enumeration of the attributes' ids in this attribute set. Each element of the enumeration is of class String. If attribute set has zero attributes, an empty enumeration is returned.</DL></DD></DL><HR><A NAME="put(java.lang.String, java.lang.Object)"><!-- --></A><H3>put</H3><PRE>public <A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A> <B>put</B>(<A HREF="../../../java/lang/String.html">String</A> attrID, <A HREF="../../../java/lang/Object.html">Object</A> val)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></B></DD><DD>Adds a new attribute to the attribute set.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attributes.html#put(java.lang.String, java.lang.Object)">put</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attributes</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attrID</CODE> - non-null The id of the attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.<DD><CODE>val</CODE> - The possibly null value of the attribute to add. If null, the attribute does not have any values.<DT><B>Returns:</B><DD>The Attribute with attrID that was previous in this attribute set; null if no such attribute existed.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/directory/Attributes.html#remove(java.lang.String)"><CODE>Attributes.remove(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="put(javax.naming.directory.Attribute)"><!-- --></A><H3>put</H3><PRE>public <A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A> <B>put</B>(<A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A> attr)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></B></DD><DD>Adds a new attribute to the attribute set.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attributes.html#put(javax.naming.directory.Attribute)">put</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attributes</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - The non-null attribute to add. If the attribute set ignores the character case of its attribute ids, the case of attr's identifier is ignored.<DT><B>Returns:</B><DD>The Attribute with the same ID as attr that was previous in this attribute set; null if no such attribute existed.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/directory/Attributes.html#remove(java.lang.String)"><CODE>Attributes.remove(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="remove(java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A> <B>remove</B>(<A HREF="../../../java/lang/String.html">String</A> attrID)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></B></DD><DD>Removes the attribute with the attribute id 'attrID' from the attribute set. If the attribute does not exist, ignore.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attributes.html#remove(java.lang.String)">remove</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attributes</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attrID</CODE> - The non-null id of the attribute to remove. If the attribute set ignores the character case of its attribute ids, the case of attrID is ignored.<DT><B>Returns:</B><DD>The Attribute with the same ID as attr that was previous in the attribute set; null if no such attribute existed.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Generates the string representation of this attribute set. The string consists of each attribute identifier and the contents of each attribute. The contents of this string is useful for debugging and is not meant to be interpreted programmatically.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A non-null string listing the contents of this attribute set.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A> obj)</PRE><DL><DD>Determines whether this <tt>BasicAttributes</tt> is equal to another <tt>Attributes</tt> Two <tt>Attributes</tt> are equal if they are both instances of <tt>Attributes</tt>, treat the case of attribute IDs the same way, and contain the same attributes. Each <tt>Attribute</tt> in this <tt>BasicAttributes</tt> is checked for equality using <tt>Object.equals()</tt>, which may have be overridden by implementations of <tt>Attribute</tt>). If a subclass overrides <tt>equals()</tt>, it should override <tt>hashCode()</tt> as well so that two <tt>Attributes</tt> instances that are equal have the same hash code.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the possibly null object to compare against.<DT><B>Returns:</B><DD>true If obj is equal to this BasicAttributes.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/directory/BasicAttributes.html#hashCode()"><CODE>hashCode()</CODE></A></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Calculates the hash code of this BasicAttributes.<p> The hash code is computed by adding the hash code of the attributes of this object. If this BasicAttributes ignores case of its attribute IDs, one is added to the hash code. If a subclass overrides <tt>hashCode()</tt>, it should override <tt>equals()</tt> as well so that two <tt>Attributes</tt> instances that are equal have the same hash code.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an int representing the hash code of this BasicAttributes instance.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/directory/BasicAttributes.html#equals(java.lang.Object)"><CODE>equals(java.lang.Object)</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/BasicAttributes.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/naming/directory/BasicAttribute.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/naming/directory/InitialDirContext.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="BasicAttributes.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><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -