corba/src/java.corba/share/classes/org/omg/CosNaming/nameservice.idl
author avstepan
Sun, 13 Sep 2015 23:31:47 +0300
changeset 32688 936c391804a5
parent 29827 aac4782e69ac
permissions -rw-r--r--
8133650: replace some <tt> tags (obsolete in html5) in CORBA docs Reviewed-by: lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
     2
 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4623
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4623
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4623
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4623
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4623
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
// name.idl - Naming service interface
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
#pragma prefix "omg.org"
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
 * The CORBA COS Naming Service provides the ability to bind a name
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
 * to an object relative to a naming context. A naming context is an
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
 * object that contains a set of name bindings in which each name is unique. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
 * To resolve a name is to determine the object associated with the name in
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
 * a given context. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
 * See http://www.omg.org/technology/documents/formal/naming_service.htm
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
 * for the complete CORBA
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
 * COS Naming Specification. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
module CosNaming 
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
{
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
  typedef string Istring;
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
  /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
   * Many of the operations defined on a naming context take names as
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
   * parameters. Names have structure. A name is an ordered sequence of 
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
   * components. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
   * A name with a single component is called a simple name; a name with
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
   * multiple components is called a compound name. Each component except 
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
   * the last is used to name a context; the last component denotes the 
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
   * bound object. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
   * A name component consists of two attributes: the identifier
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
   * attribute and the kind attribute. Both the identifier attribute and the 
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
   * kind attribute are represented as IDL strings. The kind attribute adds 
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
   * descriptive power to names in a syntax-independent way. Examples of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
   * value of the kind attribute include c_source, object_code, executable, 
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
   * postscript, or " ". 
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
  struct NameComponent 
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
  {
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
    Istring id;
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
    Istring kind;
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
  };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    67
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
   * A name is a sequence of name components.
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
  typedef sequence <NameComponent> Name;
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    72
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
   * Specifies whether the given binding is for a object (that is not a
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
   * naming context) or for a naming context.
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
  enum BindingType 
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
  {
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
    nobject, 	// name is bound to an object
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
    ncontext	// name is bound to a naming context
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
  };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    82
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
   * A name-to-object association is called a Binding.
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
  struct Binding 
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
  {
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
    Name binding_name; 		// name
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
    BindingType binding_type;	// whether name is bound to an object
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
                                //  or a naming context
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
  };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    92
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
   * List of Bindings.
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
   */
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    96
  typedef sequence <Binding> BindingList;
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
    97
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
   * The BindingIterator interface allows a client to iterate through
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
   * the bindings using the next_one or next_n operations.
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
   * 
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   102
   * The bindings iterator is obtained by using the <code>list</code>
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   103
   * method on the <code>NamingContext</code>.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
   * @see org.omg.CosNaming.NamingContext#list
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
  interface BindingIterator 
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
  {
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
     * This operation returns the next binding. If there are no more
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
     * bindings, false is returned.
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
     * @param b the returned binding
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
     */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
    boolean next_one(out Binding b);
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   115
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
     * This operation returns at most the requested number of bindings.
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
     * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   119
     * @param how_many the maximum number of bindings to return
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
     * @param bl the returned bindings
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
     */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
    boolean next_n(in unsigned long how_many, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   124
                   out BindingList bl);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   125
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
    // Destroy binding iterator
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
     * This operation destroys the iterator.
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
     */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
    void destroy();
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
  };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   132
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
 * A naming context is an object that contains a set of name bindings in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
 * which each name is unique. Different names can be bound to an object 
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
 * in the same or different contexts at the same time. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
 * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
 * CORBA COS 
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
 * Naming Specification.</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
    interface NamingContext 
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
        // Declare exceptions
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
        /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
         * Indicates the reason for not able to resolve.
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
         */
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
        enum NotFoundReason 
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
        { 
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
            missing_node, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
            not_context, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
            not_object 
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
        };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   154
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
 * Indicates the name does not identify a binding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
        exception NotFound 
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
        { 
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
            NotFoundReason why;
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
            Name rest_of_name;
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
        };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   163
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
 * Indicates that the implementation has given up for some reason.
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
 * The client, however, may be able to continue the operation at the
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
 * returned naming context.
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
        exception CannotProceed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
        {
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
            NamingContext cxt;
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
            Name rest_of_name;
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
        };
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   174
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
 * Indicates the name is invalid. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
        exception InvalidName 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   179
        {};
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   180
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
 * Indicates an object is already bound to the specified name. Only
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
 * one object can be bound to a particular name in a context. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
        exception AlreadyBound 
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
        {};
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   187
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
 * Indicates that the Naming Context contains bindings.
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
        exception NotEmpty 
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
        {};
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   193
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
 * Creates a binding of a name and an object in the naming context.
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
 * Naming contexts that are bound using bind do not participate in name
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
 * resolution when compound names are passed to be resolved. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   199
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   201
 * @param obj The Object to bind with the given name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   204
 * the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
 * Indicates that the implementation has given up for some reason.
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
 * The client, however, may be able to continue the operation
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   209
 * at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   212
 * Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
 * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   215
 * Indicates an object is already bound to the specified name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
        void bind(in Name n, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   218
                  in Object obj)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
        raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   220
               CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   221
               InvalidName, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   222
               AlreadyBound);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   223
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
 * Names an object that is a naming context. Naming contexts that
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
 * are bound using bind_context() participate in name resolution 
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
 * when compound names are passed to be resolved.
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   229
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   231
 * @param nc NamingContect object to bind with the given name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   233
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   237
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   239
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
 * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   242
 * bound to the specified name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
    void bind_context(in Name n, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   245
                      in NamingContext nc)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   247
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   248
             InvalidName, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   249
             AlreadyBound);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   250
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
 * Creates a binding of a name and an object in the naming context
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
 * even if the name is already bound in the context. Naming contexts 
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
 * that are bound using rebind do not participate in name resolution 
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
 * when compound names are passed to be resolved.
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   257
 * @param  n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   259
 * @param obj The Object to rebind with the given name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   261
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   265
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   267
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
    void rebind(in Name n, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   270
                in Object obj)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   272
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   273
             InvalidName);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   274
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
 * Creates a binding of a name and a naming context in the naming
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
 * context even if the name is already bound in the context. Naming 
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
 * contexts that are bound using rebind_context() participate in name 
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
 * resolution when compound names are passed to be resolved.
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   281
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   283
 * @param nc NamingContect object to rebind with the given name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   285
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   289
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   291
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
    void rebind_context(in Name n, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   294
                        in NamingContext nc)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   296
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   297
             InvalidName);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
 * The resolve operation is the process of retrieving an object
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
 * bound to a name in a given context. The given name must exactly 
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
 * match the bound name. The naming service does not return the type 
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
 * of the object. Clients are responsible for "narrowing" the object 
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
 * to the appropriate type. That is, clients typically cast the returned 
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
 * object from Object to a more specialized interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   307
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   309
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   313
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   315
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
    Object resolve(in Name n)
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   319
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   320
             InvalidName);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   321
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
 * The unbind operation removes a name binding from a context.
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   325
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   327
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   331
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   333
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
    void unbind(in Name n)
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   337
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   338
             InvalidName);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   339
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
 * The list operation allows a client to iterate through a set of
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
 * bindings in a naming context. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
 * The list operation returns at most the requested number of
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
 * bindings in BindingList bl. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
 * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
 * <li>If the naming context contains additional 
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
 * bindings, the list operation returns a BindingIterator with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
 * additional bindings. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
 * <li>If the naming context does not contain additional 
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
 * bindings, the binding iterator is a nil object reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
 * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   354
 * @param how_many the maximum number of bindings to return.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   356
 * @param bl the returned list of bindings.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   358
 * @param bi the returned binding iterator.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
    void list(in unsigned long how_many, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   361
              out BindingList bl, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   362
              out BindingIterator bi);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
 * This operation returns a naming context implemented by the same
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
 * naming server as the context on which the operation was invoked. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
 * The new context is not bound to any name.
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
    NamingContext new_context();
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   370
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
 * This operation creates a new context and binds it to the name
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
 * supplied as an argument. The newly-created context is implemented 
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
 * by the same naming server as the context in which it was bound (that 
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
 * is, the naming server that implements the context denoted by the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
 * name argument excluding the last component).
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   378
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   380
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
 * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   383
 * bound to the specified name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
 * given up for some reason. The client, however, may be able to 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   387
 * continue the operation at the returned naming context.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   389
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
 */ 
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
    NamingContext bind_new_context(in Name n)
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
      raises(NotFound, 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   393
             AlreadyBound, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   394
             CannotProceed, 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   395
             InvalidName);
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   396
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
 * The destroy operation deletes a naming context. If the naming 
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
 * context contains bindings, the NotEmpty exception is raised.
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
    void destroy()
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
      raises(NotEmpty);
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   405
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
 * <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
 * which
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
 * contains a set of name bindings in which each name is unique and is
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
 * part of Interoperable Naming Service.
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
 * Different names can be bound to an object in the same or different
32688
936c391804a5 8133650: replace some <tt> tags (obsolete in html5) in CORBA docs
avstepan
parents: 29827
diff changeset
   415
 * contexts at the same time. Using <code>NamingContextExt</code>, you can use
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   416
 * URL-based names to bind and resolve.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
 * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
 * CORBA COS 
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
 * Naming Specification.</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
  interface NamingContextExt: NamingContext 
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
   {
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
 * StringName is the Stringified Name, Array of Name Components 
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
 * represented as a String.
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
 */
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   428
        typedef string StringName;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
 * Address is the Host and Port information represented as a String.
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
 */
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   433
        typedef string Address;
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   434
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
 * URLString is the URL address (corbaloc: or corbaname:) represented as
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
 * a String.
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
 */
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   439
        typedef string URLString;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
 * This operation creates a stringified name from the array of Name
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
 * components.
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   445
 * @param n Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
 * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   448
 * Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
 */ 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   451
        StringName to_string( in Name n ) raises (InvalidName);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
 * This operation  converts a Stringified Name into an  equivalent array
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   455
 * of Name Components.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   457
 * @param sn Stringified Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
 * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   460
 * Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
 */ 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   463
        Name to_name( in StringName sn ) raises (InvalidName);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
 * Indicates the invalid Stringified name for the object, The
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
 * reason could be invalid syntax. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
 */
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   470
        exception InvalidAddress 
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   471
        { };
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
 * This operation creates a URL based "iiopname://" format name
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
 * from the Stringified Name of the object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   477
 * @param addr internet based address of the host machine where Name Service is running.
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   478
 * @param sn Stringified Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
 * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   481
 * Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
 * @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   483
 * Indicates the internet based address of the host machine is incorrect
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   484
 */
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   485
        URLString to_url( in Address addr, in StringName sn )
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   486
            raises( InvalidAddress, InvalidName );
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
 * This operation resolves the Stringified name into the object
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
 * reference. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
 * 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   493
 * @param sn Stringified Name of the object.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
 * @exception org.omg.CosNaming.NamingContextPackage.NotFound
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   496
 * Indicates there is no object reference for the given name.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
 * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   498
 * Indicates that the given compound name is incorrect.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
 * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   500
 * Indicates the name does not identify a binding.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
 */ 
29827
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   503
        Object resolve_str( in StringName sn)
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   504
            raises( NotFound, CannotProceed,
aac4782e69ac 8039440: Tidy warnings cleanup for org/omg
avstepan
parents: 25862
diff changeset
   505
            InvalidName);
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
};