jp.go.aist.rtm.RTC
Class CorbaNaming

java.lang.Object
  extended by jp.go.aist.rtm.RTC.CorbaNaming

public class CorbaNaming
extends java.lang.Object

CORBA Naming Service helper class.

This class is a wrapper class of CosNaming::NamingContext. Almost the same operations which CosNaming::NamingContext has are provided, and some operation allows string naming representation of context and object instead of CosNaming::Name.
The object of the class would connect to a CORBA naming server at the instantiation or immediately after instantiation. After that the object invokes operations to the root context of it. This class realizes forced binding to deep NamingContext, without binding intermediate NamingContexts explicitly.


Field Summary
protected  java.lang.String m_nameServer
           Name of the name server
protected  org.omg.CosNaming.NamingContextExt m_rootContext
           The root context of specified name server
protected  org.omg.CORBA.ORB m_varORB
           ORB
 
Constructor Summary
CorbaNaming(org.omg.CORBA.ORB orb)
           Consructor
CorbaNaming(org.omg.CORBA.ORB orb, java.lang.String name_server)
           Consructor
 
Method Summary
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
           Bind object on specified name component position
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
           Bind object on specified name component position
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
           Bind object on specified string name position
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
           Bind object on specified string name position
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
           Bind NamingContext
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
           Bind NamingContext
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
           Bind NamingContext
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
           Bind NamingContext
 void bindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
           Bind intermediate context recursively and bind NamingContext
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
           Bind new NamingContext
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name, boolean force)
           Bind new NamingContext
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
           Bind new NamingContext
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name, boolean force)
           Bind new NamingContext
 org.omg.CosNaming.NamingContext bindOrResolve(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
           Bind or resolve the given name component
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name)
           Bind or resolve the given name component
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext new_context)
           Bind or resolve the given name component
 void bindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
           Bind intermediate context recursively and bind object
 void clearAll()
           Destroy all bindings
 void destroy(org.omg.CosNaming.NamingContext context)
           Destroy the naming context
 void destroyRecursive(org.omg.CosNaming.NamingContext context)
           Destroy the naming context recursively
protected  int getNameLength(org.omg.CosNaming.NameComponent[] name)
           Get string length of the name component's string representation
 java.lang.String getNameServer()
           Get the name of name server
 org.omg.CosNaming.NamingContext getRootContext()
           Get the root context
 void init(java.lang.String name_server)
           Initialize the Naming Service
 boolean isAlive()
           
 boolean isNamingContext(org.omg.CosNaming.NameComponent[] name)
           Determine whether the given name component is NamingContext
 boolean isNamingContext(org.omg.CORBA.Object obj)
           Determine whether the object is NamingContext
 boolean isNamingContext(java.lang.String string_name)
           Determine whether the given string name is NamingContext
 void list(org.omg.CosNaming.NamingContext name_cxt, long how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
           Get Binding of the given NamingContext
protected  void nameToString(org.omg.CosNaming.NameComponent[] name, StringHolder string_name, long slen)
           Get string representation of name component
 org.omg.CosNaming.NamingContext newContext()
           Create new NamingContext.
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
           Rebind object
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
           Rebind object
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
           Rebind Object
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
           Rebind Object
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
           Rebind NamingContext
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
           Rebind NamingContext
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
           Rebind NamingContext
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
           Rebind NamingContext
 void rebindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
           Rebind intermediate context recursively and rebind NamingContext
 void rebindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
           Bind intermediate context recursively and rebind object
 org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
           Return object bound on the specified NameComponent
 org.omg.CORBA.Object resolve(java.lang.String string_name)
           Return object bound on the specified name
 org.omg.CORBA.Object resolveStr(java.lang.String string_name)
           Resolve from name of string representation and get object
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin)
           Get subset of given name component
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin, long end)
           Get subset of given name component
 org.omg.CosNaming.NameComponent[] toName(java.lang.String sname)
           Resolve given string representation to NameComponent
 java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
           Get string representation of given NameComponent
 java.lang.String toUrl(java.lang.String addr, java.lang.String string_name)
           Get URL representation from given addr and string_name
 void unbind(org.omg.CosNaming.NameComponent[] name)
           Unbind a binding specified by NameComponent
 void unbind(java.lang.String string_name)
           Unbind a binding specified by string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_varORB

protected org.omg.CORBA.ORB m_varORB
ORB


m_nameServer

protected java.lang.String m_nameServer
Name of the name server


m_rootContext

protected org.omg.CosNaming.NamingContextExt m_rootContext
The root context of specified name server

Constructor Detail

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb)
Consructor

Parameters:
orb - ORB

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb,
                   java.lang.String name_server)
            throws java.lang.Exception
Consructor

Parameters:
orb - ORB
name_server - Name of the name server
Throws:
java.lang.Exception
Method Detail

init

public void init(java.lang.String name_server)
          throws java.lang.Exception
Initialize the Naming Service

Initialize the Naming Service on the specified name server.

Parameters:
name_server - Name of the name server
Throws:
java.lang.Exception

isAlive

public boolean isAlive()

bind

public void bind(org.omg.CosNaming.NameComponent[] name,
                 org.omg.CORBA.Object obj)
          throws org.omg.CORBA.SystemException,
                 org.omg.CosNaming.NamingContextPackage.NotFound,
                 org.omg.CosNaming.NamingContextPackage.CannotProceed,
                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                 org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind object on specified name component position

Almost the same operation as CosNaming::bind(), but there is a difference that bind() is invoked for the root context of the given name server. Bind between Name and Object on this NamingContext. If c_n indicates the n-th of NameComponent, when name consists of n pieces of NameComponent, it is handled as follows. cxt->bind(, obj) is the same as the following operation. cxt->resolve()->bind(, obj) In other word, resolve from the first to the (n-1)th context and bind obj as name on the (n-1)th context. NemingContext of for resolving name must be already bound in bindContext() or rebindContext(). If NamingContext of does not exist, NotFound excption will occur. Even if does not exist, finally obj will be bound to name name by binding to the context recursively. Even in any case, if the object of name (Object or context) is bound on the (n-1)th context, AlreadyBound exception will occur.

Parameters:
name - NameComponent of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bind

public void bind(org.omg.CosNaming.NameComponent[] name,
                 org.omg.CORBA.Object obj,
                 boolean force)
          throws org.omg.CORBA.SystemException,
                 org.omg.CosNaming.NamingContextPackage.NotFound,
                 org.omg.CosNaming.NamingContextPackage.CannotProceed,
                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                 org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind object on specified name component position

Almost the same operation as CosNaming::bind(), but there is a difference that bind() is invoked for the root context of the given name server. Bind between Name and Object on this NamingContext. If c_n indicates the n-th of NameComponent, when name consists of n pieces of NameComponent, it is handled as follows. cxt->bind(, obj) is the same as the following operation. cxt->resolve()->bind(, obj) In other word, resolve from the first to the (n-1)th context and bind obj as name on the (n-1)th context. NemingContext of for resolving name must be already bound in bindContext() or rebindContext(). If NamingContext of does not exist, NotFound excption will occur. However, when flag of forced bind is true, even if does not exist, finally obj will be bound to name name by binding to the context recursively. Even in any case, if the object of name (Object or context) is bound on the (n-1)th context, AlreadyBound exception will occur.

Parameters:
name - NameComponent of name applied to object
obj - Object that is associated
force - force If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj)
                  throws org.omg.CORBA.SystemException,
                         org.omg.CosNaming.NamingContextPackage.NotFound,
                         org.omg.CosNaming.NamingContextPackage.CannotProceed,
                         org.omg.CosNaming.NamingContextPackage.InvalidName,
                         org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind object on specified string name position

This is the same as bind() except as the given name is string representation when Object is bound. bind(toName(string_name),obj) is the same. The intermediate context is bound forcibly.

Parameters:
string_name - The string representation of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindByString

public void bindByString(java.lang.String string_name,
                         org.omg.CORBA.Object obj,
                         boolean force)
                  throws org.omg.CORBA.SystemException,
                         org.omg.CosNaming.NamingContextPackage.NotFound,
                         org.omg.CosNaming.NamingContextPackage.CannotProceed,
                         org.omg.CosNaming.NamingContextPackage.InvalidName,
                         org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind object on specified string name position

This is the same as bind() except as the given name is string representation when Object is bound. bind(toName(string_name),obj) is the same.

Parameters:
string_name - The string representation of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindRecursive

public void bindRecursive(org.omg.CosNaming.NamingContext context,
                          org.omg.CosNaming.NameComponent[] name,
                          org.omg.CORBA.Object obj)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName,
                          org.omg.CosNaming.NamingContextPackage.AlreadyBound,
                          org.omg.CosNaming.NamingContextPackage.NotFound
Bind intermediate context recursively and bind object

For NamingContext given in context, bind obj to name with solving name component specified by name as NamingContext. Bind new NamingContext when there is no NamingContext corresponding to c_(n-1) >. Finally, NamingContext corresponding to will be generated, or CosNaming::bind(, object) will be invoked after solving. At this time, if the binding already exists, the AlreadyBound exception will occur. During process, when Binding that is not NamingContext of the same name as the context for solving exists, CannotProceed exception will occur and stop processing.

Parameters:
context - NamingContext that starts the bind
name - NameComponent of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.CannotProceed - Since one of NamingContext corresponding to is already bound to object other than NamingContext and processing cannot be continued
org.omg.CosNaming.NamingContextPackage.InvalidName - name 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException
org.omg.CosNaming.NamingContextPackage.NotFound

rebind

public void rebind(org.omg.CosNaming.NameComponent[] name,
                   org.omg.CORBA.Object obj)
            throws org.omg.CORBA.SystemException,
                   org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind object

This is the same as bind() except as Binding specified by name already exists. If the binding already exists, new binding will be replaced. The intermediate context is bound forcibly.

Parameters:
name - NameComponent of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name 'name' is invalid.
org.omg.CORBA.SystemException

rebind

public void rebind(org.omg.CosNaming.NameComponent[] name,
                   org.omg.CORBA.Object obj,
                   boolean force)
            throws org.omg.CORBA.SystemException,
                   org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind object

This is the same as bind() except as Binding specified by name already exists. If the binding already exists, new binding will be replaced.

Parameters:
name - NameComponent of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name 'name' is invalid.
org.omg.CORBA.SystemException

rebindByString

public void rebindByString(java.lang.String string_name,
                           org.omg.CORBA.Object obj)
                    throws org.omg.CORBA.SystemException,
                           org.omg.CosNaming.NamingContextPackage.NotFound,
                           org.omg.CosNaming.NamingContextPackage.CannotProceed,
                           org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind Object

This is the same as rebind() except as the given name is string representation when object is rebound. rebind(toName(string_name), obj) is the same. The intermediate context is bound forcibly.

Parameters:
string_name - NameComponent of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindByString

public void rebindByString(java.lang.String string_name,
                           org.omg.CORBA.Object obj,
                           boolean force)
                    throws org.omg.CORBA.SystemException,
                           org.omg.CosNaming.NamingContextPackage.NotFound,
                           org.omg.CosNaming.NamingContextPackage.CannotProceed,
                           org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind Object

This is the same as rebind() except as the given name is string representation when object is rebound. rebind(toName(string_name), obj) is the same.

Parameters:
string_name - NameComponent of name applied to object
obj - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - Name The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindRecursive

public void rebindRecursive(org.omg.CosNaming.NamingContext context,
                            org.omg.CosNaming.NameComponent[] name,
                            org.omg.CORBA.Object obj)
                     throws org.omg.CORBA.SystemException,
                            org.omg.CosNaming.NamingContextPackage.CannotProceed,
                            org.omg.CosNaming.NamingContextPackage.InvalidName,
                            org.omg.CosNaming.NamingContextPackage.NotFound
Bind intermediate context recursively and rebind object

This is the same as bindRecursive() except as NamingContext or Object specified by name already exists. If the binding specified by name already exists, new binding will be replaced.

Parameters:
context - NamingContext that starts the bind
name - NameComponent of name applied to object
obj - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.CannotProceed - The intermediate context cannot resolved.
org.omg.CosNaming.NamingContextPackage.InvalidName - The given name is invalid.
org.omg.CORBA.SystemException
org.omg.CosNaming.NamingContextPackage.NotFound

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CORBA.SystemException,
                        org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind NamingContext

This is the same as bind() except as the bound object is NamingContext.The intermediate context is bound forcibly.

Parameters:
name - NameComponent of name applied to object
name_cxt - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindContext

public void bindContext(org.omg.CosNaming.NameComponent[] name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CORBA.SystemException,
                        org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind NamingContext

This is the same as bind() except as the bound object is NamingContext.

Parameters:
name - NameComponent of name applied to object
name_cxt - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt)
                 throws org.omg.CORBA.SystemException,
                        org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind NamingContext

This is the same as bindByString() except as the bound object is NamingContext.The intermediate context is bound forcibly.

Parameters:
string_name - String representation of name applied to object
name_cxt - NamingContext that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindContext

public void bindContext(java.lang.String string_name,
                        org.omg.CosNaming.NamingContext name_cxt,
                        boolean force)
                 throws org.omg.CORBA.SystemException,
                        org.omg.CosNaming.NamingContextPackage.NotFound,
                        org.omg.CosNaming.NamingContextPackage.CannotProceed,
                        org.omg.CosNaming.NamingContextPackage.InvalidName,
                        org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind NamingContext

This is the same as bindByString() except as the bound object is NamingContext.The intermediate context is bound forcibly.

Parameters:
string_name - String representation of name applied to object
name_cxt - NamingContext that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindContextRecursive

public void bindContextRecursive(org.omg.CosNaming.NamingContext context,
                                 org.omg.CosNaming.NameComponent[] name,
                                 org.omg.CosNaming.NamingContext name_cxt)
                          throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                 org.omg.CosNaming.NamingContextPackage.InvalidName,
                                 org.omg.CosNaming.NamingContextPackage.AlreadyBound,
                                 org.omg.CosNaming.NamingContextPackage.NotFound
Bind intermediate context recursively and bind NamingContext

This is the same as bindRecursive() except as the bound object is NamingContext.

Parameters:
context - NamingContext that starts the bind
name - NameComponent of name applied to object
name_cxt - NamingContext that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName
org.omg.CosNaming.NamingContextPackage.AlreadyBound
org.omg.CosNaming.NamingContextPackage.NotFound

rebindContext

public void rebindContext(org.omg.CosNaming.NameComponent[] name,
                          org.omg.CosNaming.NamingContext name_cxt)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind NamingContext

This is the same as bindContext() except as context specified by name already exists. If the binding already exists, new binding will be replaced. The intermediate context is bound forcibly.

Parameters:
name - NameComponent applied to object
name_cxt - Object that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(org.omg.CosNaming.NameComponent[] name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind NamingContext

This is the same as bindContext() except as context specified by name already exists. If the binding already exists, new binding will be replaced.

Parameters:
name - NameComponent applied to object
name_cxt - Object that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind NamingContext

This is the same as bindContext() except as context specified by name already exists. If the binding already exists, new binding will be replaced. The intermediate context is bound forcibly.

Parameters:
string_name - String representation of name applied to object
name_cxt - NamingContext that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindContext

public void rebindContext(java.lang.String string_name,
                          org.omg.CosNaming.NamingContext name_cxt,
                          boolean force)
                   throws org.omg.CORBA.SystemException,
                          org.omg.CosNaming.NamingContextPackage.NotFound,
                          org.omg.CosNaming.NamingContextPackage.CannotProceed,
                          org.omg.CosNaming.NamingContextPackage.InvalidName
Rebind NamingContext

This is the same as bindContext() except as context specified by name already exists. If the binding already exists, new binding will be replaced.

Parameters:
string_name - String representation of name applied to object
name_cxt - NamingContext that is associated
force - If true, the intermediate context is bound forcibly. (The default value:true)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

rebindContextRecursive

public void rebindContextRecursive(org.omg.CosNaming.NamingContext context,
                                   org.omg.CosNaming.NameComponent[] name,
                                   org.omg.CosNaming.NamingContext name_cxt)
                            throws org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                   org.omg.CosNaming.NamingContextPackage.InvalidName,
                                   org.omg.CosNaming.NamingContextPackage.NotFound
Rebind intermediate context recursively and rebind NamingContext

This is the same as rebindRecursive() except as the bound object is NamingContext.

Parameters:
context - NamingContext that starts the bind
name - NameComponent applied to object
name_cxt - NamingContext that is associated
Throws:
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName
org.omg.CosNaming.NamingContextPackage.NotFound

resolve

public org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
                             throws org.omg.CORBA.SystemException,
                                    org.omg.CosNaming.NamingContextPackage.NotFound,
                                    org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                    org.omg.CosNaming.NamingContextPackage.InvalidName
Return object bound on the specified NameComponent

Return the object reference that is bound to name. Resolve the name component recursively. Almost the same operation as CosNaming::resolve(), but there is a difference that resolve() is invoked for the root context of the given name server.

Parameters:
name - The name component of object name that should be resolved
Returns:
The reference to the resolved object
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

resolve

public org.omg.CORBA.Object resolve(java.lang.String string_name)
                             throws org.omg.CORBA.SystemException,
                                    org.omg.CosNaming.NamingContextPackage.NotFound,
                                    org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                    org.omg.CosNaming.NamingContextPackage.InvalidName
Return object bound on the specified name

Return the object reference that is bound to name. Resolve the name component recursively. Almost the same operation as CosNaming::resolve(), but there is a difference that resolve() is invoked for the root context of the given name server.

Parameters:
string_name - The string representation of object name that should be resolved
Returns:
The reference to the resolved object
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

unbind

public void unbind(org.omg.CosNaming.NameComponent[] name)
            throws org.omg.CORBA.SystemException,
                   org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName
Unbind a binding specified by NameComponent

Return the object reference that is bound to name. Resolve the name component recursively. Almost the same operation as CosNaming::unbind(), but there is a difference that unbind() is invoked for the root context of the always given name server.

Parameters:
name - The name component of the deleted object
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

unbind

public void unbind(java.lang.String string_name)
            throws org.omg.CORBA.SystemException,
                   org.omg.CosNaming.NamingContextPackage.NotFound,
                   org.omg.CosNaming.NamingContextPackage.CannotProceed,
                   org.omg.CosNaming.NamingContextPackage.InvalidName
Unbind a binding specified by string representation

Return the object reference that is bound to name. Resolve the name component recursively. Almost the same operation as CosNaming::unbind(), but there is a difference that unbind() is invoked for the root context of the always given name server.

Parameters:
string_name - The string representation of object name that should be resolved
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

newContext

public org.omg.CosNaming.NamingContext newContext()
Create new NamingContext.

Return NamingContext that has been created on the given name server. The returned NamingContext has not bound yet.

Returns:
New created NamingContext

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
                                               throws org.omg.CORBA.SystemException,
                                                      org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind new NamingContext

Bind new context for the given name. The created NamingContext is a creation on the name server. The intermediate context is bound forcibly.

Parameters:
name - name NameComponent applied to NamingContext
Returns:
New created NamingContext
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name,
                                                      boolean force)
                                               throws org.omg.CORBA.SystemException,
                                                      org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind new NamingContext

Bind new context for the given name. The created NamingContext is a creation on the name server.

Parameters:
name - name NameComponent applied to NamingContext
force - If true, the intermediate context is bound forcibly. (The default value:true)
Returns:
New created NamingContext
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
                                               throws org.omg.CORBA.SystemException,
                                                      org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind new NamingContext

Bind new context corresponding to the given string. The created NamingContext is a creation on the name server. The intermediate context is bound forcibly.

Parameters:
string_name - The string representation of name applied to NamingContext
Returns:
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindNewContext

public org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name,
                                                      boolean force)
                                               throws org.omg.CORBA.SystemException,
                                                      org.omg.CosNaming.NamingContextPackage.NotFound,
                                                      org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                      org.omg.CosNaming.NamingContextPackage.InvalidName,
                                                      org.omg.CosNaming.NamingContextPackage.AlreadyBound
Bind new NamingContext

Bind new context corresponding to the given string. The created NamingContext is a creation on the name server.

Parameters:
string_name - The string representation of name applied to NamingContext
force - If true, the intermediate context is bound forcibly. (The default value:true)
Returns:
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

destroy

public void destroy(org.omg.CosNaming.NamingContext context)
             throws org.omg.CORBA.SystemException,
                    org.omg.CosNaming.NamingContextPackage.NotEmpty
Destroy the naming context

Destroy the specified naming context. Any bindings should be in which the given context is bound to some names before invoking operation on it.

Parameters:
context - NamingContext which is destroied.
Throws:
org.omg.CosNaming.NamingContextPackage.NotEmpty - The target context is bound to the other context.
org.omg.CORBA.SystemException

destroyRecursive

public void destroyRecursive(org.omg.CosNaming.NamingContext context)
                      throws org.omg.CORBA.SystemException,
                             org.omg.CosNaming.NamingContextPackage.NotEmpty,
                             org.omg.CosNaming.NamingContextPackage.NotFound,
                             org.omg.CosNaming.NamingContextPackage.CannotProceed,
                             org.omg.CosNaming.NamingContextPackage.InvalidName
Destroy the naming context recursively

For NamingContext given by Context, Destroy name with solving the name component specified by name as NamingContext recursively.

Parameters:
context - context NamingContext which is Destroied.
Throws:
org.omg.CosNaming.NamingContextPackage.NotEmpty - The target context is bound to the other context.
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

clearAll

public void clearAll()
              throws org.omg.CosNaming.NamingContextPackage.NotEmpty,
                     org.omg.CosNaming.NamingContextPackage.NotFound,
                     org.omg.CosNaming.NamingContextPackage.CannotProceed,
                     org.omg.CosNaming.NamingContextPackage.InvalidName
Destroy all bindings

Destroy all bindings that are registered.

Throws:
org.omg.CosNaming.NamingContextPackage.NotEmpty - The target context is bound to the other context.
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.

list

public void list(org.omg.CosNaming.NamingContext name_cxt,
                 long how_many,
                 org.omg.CosNaming.BindingListHolder bl,
                 org.omg.CosNaming.BindingIteratorHolder bi)
Get Binding of the given NamingContext

Get Binding of the given NamingContext.

Parameters:
name_cxt - NamingContext of the getting target Binding
how_many - The depth to get Binding
bl - The holder to hold the got Binding
bi - The iterator to detect the got Binding

toString

public java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
                          throws org.omg.CORBA.SystemException,
                                 org.omg.CosNaming.NamingContextPackage.InvalidName
Get string representation of given NameComponent

Transform specified NameComponent into string representation.

Parameters:
name - The target NameComponent for transformation
Returns:
Trnasformation result of string representation
Throws:
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

toName

public org.omg.CosNaming.NameComponent[] toName(java.lang.String sname)
                                         throws org.omg.CORBA.SystemException,
                                                org.omg.CosNaming.NamingContextPackage.InvalidName
Resolve given string representation to NameComponent

Transform given string representation to NameComponent.

Parameters:
sname - The target string representation to transform
Returns:
NameComponent NameComponent The result of transformation
Throws:
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CORBA.SystemException

toUrl

public java.lang.String toUrl(java.lang.String addr,
                              java.lang.String string_name)
                       throws org.omg.CORBA.SystemException,
                              org.omg.CosNaming.NamingContextExtPackage.InvalidAddress,
                              org.omg.CosNaming.NamingContextPackage.InvalidName
Get URL representation from given addr and string_name

Convert specified addr and string_name into URL

Parameters:
addr - The target address for conversion
string_name - The target name for conversion
Returns:
URL Conversion result
Throws:
org.omg.CosNaming.NamingContextExtPackage.InvalidAddress - The argument 'addr' is invalid.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'string_name' is invalid.
org.omg.CORBA.SystemException

resolveStr

public org.omg.CORBA.Object resolveStr(java.lang.String string_name)
                                throws org.omg.CORBA.SystemException,
                                       org.omg.CosNaming.NamingContextPackage.NotFound,
                                       org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                       org.omg.CosNaming.NamingContextPackage.InvalidName,
                                       org.omg.CosNaming.NamingContextPackage.AlreadyBound
Resolve from name of string representation and get object

Resolve specified string representation and get object

Parameters:
string_name - The string representation of getting target object
Returns:
The resolved object
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - There is not .
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.
org.omg.CosNaming.NamingContextPackage.AlreadyBound - The object of name is already bound.
org.omg.CORBA.SystemException

bindOrResolve

public org.omg.CosNaming.NamingContext bindOrResolve(org.omg.CosNaming.NamingContext context,
                                                     org.omg.CosNaming.NameComponent[] name,
                                                     org.omg.CORBA.Object obj)
                                              throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                     org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                     org.omg.CosNaming.NamingContextPackage.InvalidName
Bind or resolve the given name component

Bind object at the position that specified in NameComponent for the specified context. When other elements are already bound at the same position, get the already bound element.

Parameters:
context - The context to bind or resole
name - NameComponent applied to object
obj - Object that is associated
Returns:
The object that is bound at position specified with NameComponent
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - The object doesn't exist.
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.

bindOrResolveContext

public org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context,
                                                            org.omg.CosNaming.NameComponent[] name,
                                                            org.omg.CosNaming.NamingContext new_context)
                                                     throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                            org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                            org.omg.CosNaming.NamingContextPackage.InvalidName
Bind or resolve the given name component

指定されたコンテキストに対して Contextを NameComponent で 指定された位置にバインドする。 同一箇所に既に他の要素がバインド済みの場合は、既存のバインド済み要素を 取得する。 Bind Context at the position that specified in NameComponent for the specified context. When other elements are already bound at the same position, get the already bound element.

Parameters:
context - The context to bind or resole
name - NameComponent applied to object
new_context - Context that is associated
Returns:
The Context that is bound at the position specified with NameComponent
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName

bindOrResolveContext

public org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context,
                                                            org.omg.CosNaming.NameComponent[] name)
                                                     throws org.omg.CosNaming.NamingContextPackage.NotFound,
                                                            org.omg.CosNaming.NamingContextPackage.CannotProceed,
                                                            org.omg.CosNaming.NamingContextPackage.InvalidName
Bind or resolve the given name component

Bind new Context at the position that specified in NameComponent for the specified context. When other elements are already bound at the same position, get the already bound element.

Parameters:
context - The context to bind or resole
name - NameComponent that indicates the position of new context
Returns:
The Context that is bound at the position specified with NameComponent
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName

getNameServer

public final java.lang.String getNameServer()
Get the name of name server

Get the configured name of name server

Returns:
The name of name server

getRootContext

public org.omg.CosNaming.NamingContext getRootContext()
Get the root context

Get the root context of the configured name server

Returns:
Root context ot name server

isNamingContext

public boolean isNamingContext(org.omg.CORBA.Object obj)
Determine whether the object is NamingContext

Determine whether the specified element is NamingContext

Parameters:
obj - The target element for determination
Returns:
Determination result (NamingContext:true, Else:false)

isNamingContext

public boolean isNamingContext(org.omg.CosNaming.NameComponent[] name)
                        throws org.omg.CosNaming.NamingContextPackage.NotFound,
                               org.omg.CosNaming.NamingContextPackage.CannotProceed,
                               org.omg.CosNaming.NamingContextPackage.InvalidName
Determine whether the given name component is NamingContext

Determine whether the specified element is NameComponent

Parameters:
name - The target NameComponent for determination
Returns:
Determination result (NamingContext:true, Else:false)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - The object doesn't exist.
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.

isNamingContext

public boolean isNamingContext(java.lang.String string_name)
                        throws org.omg.CosNaming.NamingContextPackage.NotFound,
                               org.omg.CosNaming.NamingContextPackage.CannotProceed,
                               org.omg.CosNaming.NamingContextPackage.InvalidName
Determine whether the given string name is NamingContext

Determine whether the element specified by string name is NamingContext

Parameters:
string_name - The string representation for determination
Returns:
Determination result (NamingContext:true, Else:false)
Throws:
org.omg.CosNaming.NamingContextPackage.NotFound - The object doesn't exist.
org.omg.CosNaming.NamingContextPackage.CannotProceed - Processing cannot be continued for some reasons.
org.omg.CosNaming.NamingContextPackage.InvalidName - The argument 'name' is invalid.

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin)
Get subset of given name component

Get the name component in specified range. Return the name component except the last element.

Parameters:
name - The target NameComponent for search
begin - The beginning position for getting range
Returns:
NameComponent Getting result

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin,
                                                 long end)
Get subset of given name component

Get the name component in specified range.

Parameters:
name - The target NameComponent for search
begin - The beginning position for getting range
end - The end position for getting range
Returns:
NameComponent Getting result

nameToString

protected void nameToString(org.omg.CosNaming.NameComponent[] name,
                            StringHolder string_name,
                            long slen)
Get string representation of name component

Get string representation of the name component in specified range. In string representation, if NameComponent consists of {Nc[0],Nc[1],Nc[2]...}, the format of Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kind... will be got. It is rounded by the specified length when the length of the got string is over the specified length.

Parameters:
name - The getting target NameComponent
string_name - The string of getting result
slen - The maximum length value of getting string

getNameLength

protected int getNameLength(org.omg.CosNaming.NameComponent[] name)
Get string length of the name component's string representation

Get string length of the name component's string representation. In string representation, if NameComponent consists of {Nc[0],Nc[1],Nc[2]・・・}, the format of Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kind・・・ will be got.

Parameters:
name - The getting target NameComponent
Returns:
The string length value of specified component