reference.html
来自「API資料大全」· HTML 代码 · 共 784 行 · 第 1/3 页
HTML
784 行
<CODE> <A HREF="../../javax/naming/RefAddr.html">RefAddr</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#get(int)">get</A></B>(int posn)</CODE><BR> Retrieves the address at index posn.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/naming/RefAddr.html">RefAddr</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#get(java.lang.String)">get</A></B>(<A HREF="../../java/lang/String.html">String</A> addrType)</CODE><BR> Retrieves the first address that has the address type 'addrType'.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/util/Enumeration.html">Enumeration</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#getAll()">getAll</A></B>()</CODE><BR> Retrieves an enumeration of the addresses in this reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#getClassName()">getClassName</A></B>()</CODE><BR> Retrieves the class name of the object to which this reference refers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#getFactoryClassLocation()">getFactoryClassLocation</A></B>()</CODE><BR> Retrieves the location of the factory of the object to which this reference refers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#getFactoryClassName()">getFactoryClassName</A></B>()</CODE><BR> Retrieves the class name of the factory of the object to which this reference refers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#hashCode()">hashCode</A></B>()</CODE><BR> Computes the hash code of this reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#remove(int)">remove</A></B>(int posn)</CODE><BR> Deletes the address at index posn from the list of addresses.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#size()">size</A></B>()</CODE><BR> Retrieves the number of adddresses in this reference.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/naming/Reference.html#toString()">toString</A></B>()</CODE><BR> Generates the string representation of this reference.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="className"><!-- --></A><H3>className</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>className</B></PRE><DL><DD>Contains the fully-qualified name of the class of the object to which this Reference refers.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../java/lang/Class.html#getName()"><CODE>Class.getName()</CODE></A></DL></DD></DL><HR><A NAME="addrs"><!-- --></A><H3>addrs</H3><PRE>protected <A HREF="../../java/util/Vector.html">Vector</A> <B>addrs</B></PRE><DL><DD>Contains the adddresses contained in this Reference. Initialized by constructor.</DL><HR><A NAME="classFactory"><!-- --></A><H3>classFactory</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>classFactory</B></PRE><DL><DD>Contains the name of the factory class for creating an instance of the object to which this Reference refers. Initialized to null.</DL><HR><A NAME="classFactoryLocation"><!-- --></A><H3>classFactoryLocation</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>classFactoryLocation</B></PRE><DL><DD>Contains the location of the factory class. Initialized to null.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Reference(java.lang.String)"><!-- --></A><H3>Reference</H3><PRE>public <B>Reference</B>(<A HREF="../../java/lang/String.html">String</A> className)</PRE><DL><DD>Constructs a new reference for an object with class name 'className'. Class factory and class factory location are set to null. The newly created reference constains zero addresses.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The non-null class name of the object to which this reference refers.</DL></DD></DL><HR><A NAME="Reference(java.lang.String, javax.naming.RefAddr)"><!-- --></A><H3>Reference</H3><PRE>public <B>Reference</B>(<A HREF="../../java/lang/String.html">String</A> className, <A HREF="../../javax/naming/RefAddr.html">RefAddr</A> addr)</PRE><DL><DD>Constructs a new reference for an object with class name 'className' and an address. Class factory and class factory location are set to null.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The non-null class name of the object to which this reference refers.<DD><CODE>addr</CODE> - The non-null address of the object.</DL></DD></DL><HR><A NAME="Reference(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>Reference</H3><PRE>public <B>Reference</B>(<A HREF="../../java/lang/String.html">String</A> className, <A HREF="../../java/lang/String.html">String</A> factory, <A HREF="../../java/lang/String.html">String</A> factoryLocation)</PRE><DL><DD>Constructs a new reference for an object with class name 'className', and the class name and location of the object's factory.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The non-null class name of the object to which this reference refers.<DD><CODE>factory</CODE> - The possibly null class name of the object's factory.<DD><CODE>factoryLocation</CODE> - The possibly null location from which to load the factory (e.g. URL)<DT><B>See Also: </B><DD><A HREF="../../javax/naming/spi/ObjectFactory.html"><CODE>ObjectFactory</CODE></A>, <A HREF="../../javax/naming/spi/NamingManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)</CODE></A></DL></DD></DL><HR><A NAME="Reference(java.lang.String, javax.naming.RefAddr, java.lang.String, java.lang.String)"><!-- --></A><H3>Reference</H3><PRE>public <B>Reference</B>(<A HREF="../../java/lang/String.html">String</A> className, <A HREF="../../javax/naming/RefAddr.html">RefAddr</A> addr, <A HREF="../../java/lang/String.html">String</A> factory, <A HREF="../../java/lang/String.html">String</A> factoryLocation)</PRE><DL><DD>Constructs a new reference for an object with class name 'className', the class name and location of the object's factory, and the address for the object.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The non-null class name of the object to which this reference refers.<DD><CODE>factory</CODE> - The possibly null class name of the object's factory.<DD><CODE>factoryLocation</CODE> - The possibly null location from which to load the factory (e.g. URL)<DD><CODE>addr</CODE> - The non-null address of the object.<DT><B>See Also: </B><DD><A HREF="../../javax/naming/spi/ObjectFactory.html"><CODE>ObjectFactory</CODE></A>, <A HREF="../../javax/naming/spi/NamingManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)</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="getClassName()"><!-- --></A><H3>getClassName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getClassName</B>()</PRE><DL><DD>Retrieves the class name of the object to which this reference refers.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The non-null fully-qualified class name of the object. (e.g. "java.lang.String")</DL></DD></DL><HR><A NAME="getFactoryClassName()"><!-- --></A><H3>getFactoryClassName</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getFactoryClassName</B>()</PRE><DL><DD>Retrieves the class name of the factory of the object to which this reference refers.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The possibly null fully-qualified class name of the factory. (e.g. "java.lang.String")</DL></DD></DL><HR><A NAME="getFactoryClassLocation()"><!-- --></A><H3>getFactoryClassLocation</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getFactoryClassLocation</B>()</PRE><DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?