basicattribute.html

来自「API資料大全」· HTML 代码 · 共 949 行 · 第 1/4 页

HTML
949 行
字号
<DT><B>Parameters:</B><DD><CODE>attrval</CODE> - The possibly null value to remove from this attribute. If null, remove the attribute value that is null.<DT><B>Returns:</B><DD>true if the value was removed; false otherwise.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Removes all values from this attribute.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#clear()">clear</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD></DL><HR><A NAME="isOrdered()"><!-- --></A><H3>isOrdered</H3><PRE>public boolean <B>isOrdered</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Determines whether this attribute's values are ordered. If an attribute's values are ordered, duplicate values are allowed. If an attribute's values are unordered, they are presented in any order and there are no duplicate values.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#isOrdered()">isOrdered</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Returns:</B><DD>true if this attribute's values are ordered; false otherwise.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/directory/Attribute.html#get(int)"><CODE>Attribute.get(int)</CODE></A>, <A HREF="../../../javax/naming/directory/Attribute.html#remove(int)"><CODE>Attribute.remove(int)</CODE></A>, <A HREF="../../../javax/naming/directory/Attribute.html#add(int, java.lang.Object)"><CODE>Attribute.add(int, java.lang.Object)</CODE></A>, <A HREF="../../../javax/naming/directory/Attribute.html#set(int, java.lang.Object)"><CODE>Attribute.set(int, java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="get(int)"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>get</B>(int&nbsp;ix)           throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Retrieves the attribute value from the ordered list of attribute values. This method returns the value at the <tt>ix</tt> index of the list of attribute values. If the attribute values are unordered, this method returns the value that happens to be at that index.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#get(int)">get</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ix</CODE> - The index of the value in the ordered list of attribute values. 0 <= <tt>ix</tt> < <tt>size()</tt>.<DT><B>Returns:</B><DD>The possibly null attribute value at index <tt>ix</tt>;    null if the attribute value is null.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a naming exception was encountered while retrieving the value.<DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - If <tt>ix</tt> is outside the specified range.</DL></DD></DL><HR><A NAME="remove(int)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>remove</B>(int&nbsp;ix)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Removes an attribute value from the ordered list of attribute values. This method removes the value at the <tt>ix</tt> index of the list of attribute values.  If the attribute values are unordered, this method removes the value that happens to be at that index. Values located at indices greater than <tt>ix</tt> are shifted up towards the front of the list (and their indices decremented by one).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#remove(int)">remove</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ix</CODE> - The index of the value to remove. 0 <= <tt>ix</tt> < <tt>size()</tt>.<DT><B>Returns:</B><DD>The possibly null attribute value at index <tt>ix</tt> that was removed;    null if the attribute value is null.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - If <tt>ix</tt> is outside the specified range.</DL></DD></DL><HR><A NAME="add(int, java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(int&nbsp;ix,                <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;attrVal)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Adds an attribute value to the ordered list of attribute values. This method adds <tt>attrVal</tt> to the list of attribute values at index <tt>ix</tt>. Values located at indices at or greater than <tt>ix</tt> are  shifted down towards the end of the list (and their indices incremented  by one). If the attribute values are unordered and already have <tt>attrVal</tt>, <tt>IllegalStateException</tt> is thrown.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#add(int, java.lang.Object)">add</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ix</CODE> - The index in the ordered list of attribute values to add the new value. 0 <= <tt>ix</tt> <= <tt>size()</tt>.<DD><CODE>attrVal</CODE> - The possibly null attribute value to add; if null, null is the value added.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - If <tt>ix</tt> is outside the specified range.<DD><CODE><A HREF="../../../java/lang/IllegalStateException.html">IllegalStateException</A></CODE> - If the attribute values are unordered and <tt>attrVal</tt> is one of those values.</DL></DD></DL><HR><A NAME="set(int, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>set</B>(int&nbsp;ix,                  <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;attrVal)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></B></DD><DD>Sets an attribute value in the ordered list of attribute values. This method sets the value at the <tt>ix</tt> index of the list of attribute values to be <tt>attrVal</tt>. The old value is removed. If the attribute values are unordered, this method sets the value that happens to be at that index to <tt>attrVal</tt>, unless <tt>attrVal</tt> is already one of the values. In that case, <tt>IllegalStateException</tt> is thrown.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#set(int, java.lang.Object)">set</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ix</CODE> - The index of the value in the ordered list of attribute values. 0 <= <tt>ix</tt> < <tt>size()</tt>.<DD><CODE>attrVal</CODE> - The possibly null attribute value to use.  If null, 'null' replaces the old value.<DT><B>Returns:</B><DD>The possibly null attribute value at index ix that was replaced.    Null if the attribute value was null.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - If <tt>ix</tt> is outside the specified range.<DD><CODE><A HREF="../../../java/lang/IllegalStateException.html">IllegalStateException</A></CODE> - If <tt>attrVal</tt> already exists and the    attribute values are unordered.</DL></DD></DL><HR><A NAME="getAttributeSyntaxDefinition()"><!-- --></A><H3>getAttributeSyntaxDefinition</H3><PRE>public <A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A> <B>getAttributeSyntaxDefinition</B>()                                        throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Retrieves the syntax definition associated with this attribute.<p> This method by default throws OperationNotSupportedException. A subclass should override this method if it supports schema.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#getAttributeSyntaxDefinition()">getAttributeSyntaxDefinition</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Returns:</B><DD>The attribute's syntax definition. Null if the implementation	   supports schemas but this particular attribute does not have    any schema information.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/OperationNotSupportedException.html">OperationNotSupportedException</A></CODE> - If getting the schema 	is not supported.<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a naming exception occurs while getting		the schema.</DL></DD></DL><HR><A NAME="getAttributeDefinition()"><!-- --></A><H3>getAttributeDefinition</H3><PRE>public <A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A> <B>getAttributeDefinition</B>()                                  throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Retrieves this attribute's schema definition.<p> This method by default throws OperationNotSupportedException. A subclass should override this method if it supports schema.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/Attribute.html#getAttributeDefinition()">getAttributeDefinition</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/Attribute.html">Attribute</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.Attribute</CODE></DD><DD><DL><DT><B>Returns:</B><DD>This attribute's schema definition. Null if the implementation	    supports schemas but this particular attribute does not have	    any schema information.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/OperationNotSupportedException.html">OperationNotSupportedException</A></CODE> - If getting the schema 	is not supported.<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a naming exception occurs while getting		the schema.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BasicAttribute.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../javax/naming/directory/BasicAttributes.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>  &nbsp;&nbsp;<A HREF="BasicAttribute.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + =
减小字号Ctrl + -
显示快捷键?