📄 package-summary.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:32:08 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Package org.omg.CosNaming</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.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="../../../org/omg/CORBA/TypeCodePackage/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../../org/omg/CosNaming/NamingContextPackage/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><H2>Package org.omg.CosNaming</H2>Provides the naming service for Java IDL.<P><B>See: </B><BR> <A HREF="#package_description"><B>Description</B></A><P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Interface Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingIterator.html"><I>BindingIterator</I></A></B></TD><TD>The BindingIterator interface allows a client to iterate through the bindings using the next_one or next_n operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingIteratorOperations.html"><I>BindingIteratorOperations</I></A></B></TD><TD>org/omg/CosNaming/BindingIteratorOperations.java Generated by the IDL-to-Java compiler (portable), version "3.0" from nameservice.idl Wednesday, January 26, 2000 3:34:52 PM PST</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NamingContext.html"><I>NamingContext</I></A></B></TD><TD>A naming context is an object that contains a set of name bindings in which each name is unique.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NamingContextOperations.html"><I>NamingContextOperations</I></A></B></TD><TD>org/omg/CosNaming/NamingContextOperations.java Generated by the IDL-to-Java compiler (portable), version "3.0" from nameservice.idl Wednesday, January 26, 2000 3:34:53 PM PST</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="_BindingIteratorImplBase.html">_BindingIteratorImplBase</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="_BindingIteratorStub.html">_BindingIteratorStub</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="_NamingContextImplBase.html">_NamingContextImplBase</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="_NamingContextStub.html">_NamingContextStub</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Binding.html">Binding</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingHelper.html">BindingHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingHolder.html">BindingHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingIteratorHelper.html">BindingIteratorHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingIteratorHolder.html">BindingIteratorHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingListHelper.html">BindingListHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingListHolder.html">BindingListHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingType.html">BindingType</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingTypeHelper.html">BindingTypeHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="BindingTypeHolder.html">BindingTypeHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="IstringHelper.html">IstringHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NameComponent.html">NameComponent</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NameComponentHelper.html">NameComponentHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NameComponentHolder.html">NameComponentHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NameHelper.html">NameHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NameHolder.html">NameHolder</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NamingContextHelper.html">NamingContextHelper</A></B></TD><TD> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="NamingContextHolder.html">NamingContextHolder</A></B></TD><TD> </TD></TR></TABLE> <P><A NAME="package_description"><!-- --></A><H2>Package org.omg.CosNaming Description</H2><P>Provides the naming service for Java IDL. <P> The package and all its classes and interfaces were generated by running the tool <code>idltojava</code> on the file <code>nameservice.idl</code>, which is a module written in OMG IDL. <P> <H2>Interfaces</H2> The package <tt>org.omg.CosNaming</tt> contains two public interfaces and several auxiliary classes. <P> The interfaces are: <UL> <LI><TT>NamingContext</TT> <LI><TT>BindingIterator</TT> </UL> <P> These two interfaces provide the means to bind/unbind names and object references, to retrieve bound object references, and to iterate through a list of bindings. The <code>NamingContext</code> interface supplies the main functionality for the naming service, and <code>BindingIterator</code> provides a means of iterating through a list of name/object reference bindings. <P> <H2>Auxiliary Classes</H2> In order to map an OMG IDL interface to the Java programming language, the idltojava compiler creates Java classes that can be thought of as auxiliary classes. Comments for the generated auxiliary classes used by the interfaces <code>NamingContext</code> and <code>BindingIterator</code> are included here. <P> <H3>Classes Used by <code>NamingContext</code> and <code>BindingIterator</code></H3> The following are classes used by the naming service. (Helper and holder classes, which are generated for each of the classes listed here, are discussed below.) <UL> <LI><code>public final class <B>NameComponent</B></code> -- a building block for names. (Names are bound to object references in a naming context.) <P>A name is an array of one or more <code>NameComponent</code> objects. A name with a single <code>NameComponent</code> is called a <I>simple name</I>; a name with multiple <code>NameComponent</code> objects is called a <I>compound name</I>. <P> A <code><B>NameComponent</B></code> object consists of two fields: <OL> <LI><code><B>id</B></code> -- a <code>String</code> used as an identifier <LI><code><B>kind</B></code> -- a <code>String</code> that can be used for any descriptive purpose. Its importance is that it can be used to describe an object without affecting syntax. The C programming language, for example, uses the the syntactic convention of appending the extension ".c" to a file name to indicate that it is a source code file. In a <code>NameComponent</code> object, the <code>kind</code> field can be used to describe the type of object rather than a file extension or some other syntactic convention. Examples of the value of the <code>kind</code> field include the strings <code>"c_source"</code>, <code>"object_code"</code>, <code>"executable"</code>, <code>"postscript"</code>, and <code>""</code>. It is not unusual for the <code>kind</code> field to be the empty string. </OL> <P> In a name, each <code>NameComponent</code> object except the last denotes a <code>NamingContext</code> object; the last <code>NameComponent</code> object denotes the bound object reference. This is similar to a path name, in which the last name is the file name, and all names before it are directory names.<p> <P> <LI><code>public final class <B>Binding</B></code> -- an object that associates a name with an object reference or a naming context. A <code>Binding</code> object has two fields: <OL> <LI><code><B>binding_name</B></code> - an array of one or more <code>NameComponent</code> objects that represents the bound name <LI><code><B>binding_type</B></code> - a <code>BindingType</code> object indicating whether the binding is between a name and an object
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -