jp.go.aist.rtm.RTC
クラス CorbaNaming

java.lang.Object
  上位を拡張 jp.go.aist.rtm.RTC.CorbaNaming

public class CorbaNaming
extends java.lang.Object

CORBA Naming Service ヘルパークラス.

このクラスは、NamingContext に対するラッパークラスです。 NamingContext が持つオペレーションとほぼ同じ機能の オペレーションを提供するとともに、ネームコンポーネント NameComponent の代わりに文字列による名前表現を受け付けるオペレーションも提供します。
オブジェクトは生成時、あるいは生成直後に CORBA ネームサーバに接続し 以後、このネームサーバのルートコンテキストに対して種々のオペレーション を処理します。 深い階層のネーミングコンテキストの作成やオブジェクトのバインドにおいて、 途中のコンテキストが存在しない場合でも、強制的にコンテキストをバインド し目的のコンテキストやオブジェクトのバインドを行うこともできます。


フィールドの概要
protected  java.lang.String m_nameServer
          ネームサーバ名称。
protected  org.omg.CosNaming.NamingContextExt m_rootContext
          指定したネームサーバのルートコンテキスト。
protected  org.omg.CORBA.ORB m_varORB
          ORB。
 
コンストラクタの概要
CorbaNaming(org.omg.CORBA.ORB orb)
          コンストラクタ
CorbaNaming(org.omg.CORBA.ORB orb, java.lang.String name_server)
          コンストラクタ
 
メソッドの概要
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          Object を bind する。
 void bind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
          Object を bind する。
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
          Object を bind する。
 void bindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
          Object を bind する。
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に bind する。
 void bindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を bind する。
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に bind する。
 void bindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を bind する。
 void bindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          途中のコンテキストを再帰的に bind し NamingContext を bind する。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name)
          新しいコンテキストを強制的に bind する。
 org.omg.CosNaming.NamingContext bindNewContext(org.omg.CosNaming.NameComponent[] name, boolean force)
          新しいコンテキストを bind する。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name)
          新しいコンテキストを強制的に bind する。
 org.omg.CosNaming.NamingContext bindNewContext(java.lang.String string_name, boolean force)
          新しいコンテキストを bind する。
 org.omg.CosNaming.NamingContext bindOrResolve(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          オブジェクトの名前をバインドまたは解決する。
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name)
          名前をバインドまたは解決する。
 org.omg.CosNaming.NamingContext bindOrResolveContext(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext new_context)
          名前をバインドまたは解決する。
 void bindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          途中のコンテキストを再帰的に bind しながら Object を bind する。
 void clearAll()
          すべての Binding を削除する。
 void destroy(org.omg.CosNaming.NamingContext context)
          NamingContext を非アクティブ化する。
 void destroyRecursive(org.omg.CosNaming.NamingContext context)
          NamingContext を再帰的に下って非アクティブ化する。
protected  int getNameLength(org.omg.CosNaming.NameComponent[] name)
          ネームコンポーネントの文字列表現時の文字長を取得する。
 java.lang.String getNameServer()
          ネームサーバの名前を取得する。
 org.omg.CosNaming.NamingContext getRootContext()
          ルートコンテキストを取得する。
 void init(java.lang.String name_server)
          ネーミングサービスの初期化。
 boolean isAlive()
           
 boolean isNamingContext(org.omg.CosNaming.NameComponent[] name)
          与えられた名前がネーミングコンテキストかどうか判断する。
 boolean isNamingContext(org.omg.CORBA.Object obj)
          オブジェクトがネーミングコンテキストか判別する。
 boolean isNamingContext(java.lang.String string_name)
          与えられた名前がネーミングコンテキストかどうか判断する。
 void list(org.omg.CosNaming.NamingContext name_cxt, long how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
          与えられた NamingContext の Binding を取得する 指定された NamingContext の Binding を取得する。
protected  void nameToString(org.omg.CosNaming.NameComponent[] name, StringHolder string_name, long slen)
          ネームコンポーネントの文字列表現を取得する。
 org.omg.CosNaming.NamingContext newContext()
          新しいコンテキストを生成する。
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          Object を強制的に rebind する。
 void rebind(org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj, boolean force)
          Object を rebind する。
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj)
          Object を強制的に rebind する。
 void rebindByString(java.lang.String string_name, org.omg.CORBA.Object obj, boolean force)
          Object を rebind する。
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に rebind する。
 void rebindContext(org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を rebind する。
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt)
          NamingContext を強制的に rebind する。
 void rebindContext(java.lang.String string_name, org.omg.CosNaming.NamingContext name_cxt, boolean force)
          NamingContext を rebind する。
 void rebindContextRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CosNaming.NamingContext name_cxt)
          途中のコンテキストを再帰的に rebind し NamingContext を rebind する。
 void rebindRecursive(org.omg.CosNaming.NamingContext context, org.omg.CosNaming.NameComponent[] name, org.omg.CORBA.Object obj)
          途中のコンテキストを bind しながら Object を rebind する。
 org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] name)
          与えられた NameComponent にバインドされている Object を返す。
 org.omg.CORBA.Object resolve(java.lang.String string_name)
          与えられた NameComponent にバインドされている Object を返す。
 org.omg.CORBA.Object resolveStr(java.lang.String string_name)
          与えられた文字列表現を resolve しオブジェクトを返す。
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin)
          ネームコンポーネントの部分を返す。
 org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name, long begin, long end)
          ネームコンポーネントの部分を返す。
 org.omg.CosNaming.NameComponent[] toName(java.lang.String sname)
          与えられた文字列表現を NameComponent に分解する。
 java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
          与えられた NameComponent の文字列表現を返す。
 java.lang.String toUrl(java.lang.String addr, java.lang.String string_name)
          与えられた addre と string_name から URL表現を取得する。
 void unbind(org.omg.CosNaming.NameComponent[] name)
          与えられた NameComponent のバインディングを削除する。
 void unbind(java.lang.String string_name)
          与えられた NameComponent のバインディングを削除する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

m_varORB

protected org.omg.CORBA.ORB m_varORB
ORB。


m_nameServer

protected java.lang.String m_nameServer
ネームサーバ名称。


m_rootContext

protected org.omg.CosNaming.NamingContextExt m_rootContext
指定したネームサーバのルートコンテキスト。

コンストラクタの詳細

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb)
コンストラクタ

パラメータ:
orb - ORB

CorbaNaming

public CorbaNaming(org.omg.CORBA.ORB orb,
                   java.lang.String name_server)
            throws java.lang.Exception
コンストラクタ

パラメータ:
orb - ORB
name_server - ネームサーバの名称
例外:
java.lang.Exception
メソッドの詳細

init

public void init(java.lang.String name_server)
          throws java.lang.Exception
ネーミングサービスの初期化。

指定されたネームサーバ上のネーミングサービスを初期化します。

パラメータ:
name_server - ネームサーバの名称
例外:
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
Object を bind する。

CosNaming::bind() とほぼ同等の働きをするが、 常に与えられたネームサーバの ルートコンテキストに対してbind()が呼び出される点が異なる。
Name と Object を当該 NamingContext 上にバインドする。 c_n が n 番目の NameComponent をあらわすとすると、 name が n 個の NameComponent から成るとき、以下のように扱われる。
cxt->bind(, obj) は以下の操作と同等である。 cxt->resolve()->bind(, obj)
すなわち、1番目からn-1番目のコンテキストを解決し、n-1番目のコンテキスト 上に name として obj を bind する。 名前解決に参加する の NemingContext は、 bindContext() や rebindContext() で既にバインド済みでなければならない。 もし の NamingContext が存在しない場合には、 NotFound 例外が発生する。
が存在しない場合にも、 再帰的にコンテキストをバインドしながら、 最終的に obj を名前 name にバインドする。
いずれの場合でも、n-1番目のコンテキスト上に name のオブジェクト (Object あるいは コンテキスト) がバインドされていれば AlreadyBound 例外が発生する。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられる Object
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
Object を bind する。

CosNaming::bind() とほぼ同等の働きをするが、 常に与えられたネームサーバの ルートコンテキストに対してbind()が呼び出される点が異なる。 Name と Object を当該 NamingContext 上にバインドする。 c_n が n 番目の NameComponent をあらわすとすると、 name が n 個の NameComponent から成るとき、以下のように扱われる。 cxt->bind(, obj) は以下の操作と同等である。 cxt->resolve()->bind(, obj) すなわち、1番目からn-1番目のコンテキストを解決し、n-1番目のコンテキスト 上に name として obj を bind する。 名前解決に参加する の NemingContext は、 bindContext() や rebindContext() で既にバインド済みでなければならない。 もし の NamingContext が存在しない場合には、 NotFound 例外が発生する。 ただし、強制バインドフラグ force が true の時は、 が存在しない場合にも、再帰的にコンテキストをバインドしながら、 最終的に obj を名前 name にバインドする。 いずれの場合でも、n-1番目のコンテキスト上に name のオブジェクト (Object あるいは コンテキスト) がバインドされていれば AlreadyBound 例外が発生する。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられる Object
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
Object を bind する。

Object を bind する際に与える名前が文字列表現であること以外は、 bind() と同じである。bind(toName(string_name), obj) と等価。 途中のコンテキストも強制的にバインドする。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
Object を bind する。

Object を bind する際に与える名前が文字列表現であること以外は、 bind() と同じである。bind(toName(string_name), obj) と等価。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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 しながら Object を bind する。

context で与えられた NamingContext に対して、name で指定された ネームコンポーネント を NamingContext として 解決しながら、名前 に対して obj を bind する。 もし、 に対応する NamingContext がない場合には 新たな NamingContext をバインドする。 最終的に に対応する NamingContext が生成 または解決された上で、CosNaming::bind(, object) が呼び出される。 このとき、すでにバインディングが存在すれば AlreadyBound例外が発生する。 途中のコンテキストを解決する過程で、解決しようとするコンテキストと 同じ名前の NamingContext ではない Binding が存在する場合、 CannotProceed 例外が発生し処理を中止する。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前のネームコンポーネント
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - に対応する NamingContext のうちひとつが、すでに NamingContext 以外の object にバインド されており、処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 名前 name が不正
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name にすでに何らかの object がバインド されている。
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
Object を強制的に rebind する。

name で指定された Binding がすでに存在する場合を除いて bind() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。 途中のコンテキストも強制的にバインドする。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 名前 name が不正
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
Object を rebind する。

name で指定された Binding がすでに存在する場合を除いて bind() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。

パラメータ:
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 名前 name が不正
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
Object を強制的に rebind する。

Object を rebind する際に与える名前が文字列表現であること以外は rebind()と同じである。rebind(toName(string_name), obj) と等価。 途中のコンテキストも強制的にバインドする

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
Object を rebind する。

Object を rebind する際に与える名前が文字列表現であること以外は rebind()と同じである。rebind(toName(string_name), obj) と等価。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
obj - 関連付けられるオブジェクト
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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 しながら Object を rebind する。

name で指定された NamingContext もしくは Object が すでに存在する場合を除いて bindRecursive() と同じである。 name で指定されたバインディングがすでに存在する場合には、 新しいバインディングに置き換えられる。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられるオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.CannotProceed - 途中のコンテキストが解決できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 与えられた name が不正。
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
NamingContext を強制的に bind する。

bind されるオブジェクトが NamingContext であることを除いて bind() と同じである。途中のコンテキストも強制的にバインドする 。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
NamingContext を bind する。

bind されるオブジェクトが NamingContext であることを除いて bind() と同じである。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
NamingContext を強制的に bind する。

bind されるオブジェクトが NamingContext であることを除いて bindByString() と同じである。途中のコンテキストを強制的にバインドする。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
NamingContext を bind する。

bind されるオブジェクトが NamingContext であることを除いて bindByString() と同じである。途中のコンテキストを強制的にバインドする。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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 し NamingContext を bind する。

bind されるオブジェクトが NamingContext であることを除いて bindRecursive() と同じである。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
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
NamingContext を強制的に rebind する。

name で指定されたコンテキストがすでに存在する場合を 除いて bindContext() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。途中のコンテキストも強制的にバインドする。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
NamingContext を rebind する。

name で指定されたコンテキストがすでに存在する場合を 除いて bindContext() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。

パラメータ:
name - オブジェクトに付ける名前のネームコンポーネント
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
NamingContext を強制的に rebind する。

name で指定されたコンテキストがすでに存在する場合 を除いて bindContext() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。途中のコンテキストを強制的にバインドする。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
NamingContext を rebind する。

name で指定されたコンテキストがすでに存在する場合 を除いて bindContext() と同じである。 バインディングがすでに存在する場合には、新しいバインディングに 置き換えられる。

パラメータ:
string_name - オブジェクトに付ける名前の文字列表現
name_cxt - 関連付けられる NamingContext
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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 し NamingContext を rebind する。

bind されるオブジェクトが NamingContext であることを除いて rebindRecursive() と同じである。

パラメータ:
context - bind を開始する NamingContext
name - オブジェクトに付ける名前の NameComponent
name_cxt - 関連付けられる NamingContext
例外:
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
与えられた NameComponent にバインドされている Object を返す。

name に bind されているオブジェクト参照を返す。 ネームコンポーネント は再帰的に解決される。 CosNaming::resolve() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して resolve() が呼び出される点が 異なる。

パラメータ:
name - 解決すべきオブジェクトの名前のネームコンポーネント
戻り値:
解決されたオブジェクト参照
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
与えられた NameComponent にバインドされている Object を返す。

name に bind されているオブジェクト参照を返す。 ネームコンポーネント は再帰的に解決される。 CosNaming::resolve() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して resolve() が呼び出される点が 異なる。

パラメータ:
string_name - 解決すべきオブジェクトの名前の文字列表現
戻り値:
解決されたオブジェクト参照
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
与えられた NameComponent のバインディングを削除する。

name に bind されているオブジェクト参照を返す。 ネームコンポーネント は再帰的に解決される。 CosNaming::unbind() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して unbind() が呼び出される点が 異なる。

パラメータ:
name - 削除するオブジェクトのネームコンポーネント
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
与えられた NameComponent のバインディングを削除する。

name に bind されているオブジェクト参照を返す。 ネームコンポーネント は再帰的に解決される。 CosNaming::unbind() とほぼ同等の働きをするが、常に与えられた ネームサーバのルートコンテキストに対して unbind() が呼び出される点が 異なる。

パラメータ:
string_name - 解決すべきオブジェクトの名前の文字列表現
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CORBA.SystemException

newContext

public org.omg.CosNaming.NamingContext newContext()
新しいコンテキストを生成する。

与えられたネームサーバ上で生成された NamingContext を返す。 返された NamingContext は bind されていない。

戻り値:
生成された新しい 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 する。

与えられた name に対して新しいコンテキストをバインドする。 生成された NamingContext はネームサーバ上で生成されたものである。 途中のコンテキストを強制的にバインドする。

パラメータ:
name - NamingContextに付ける名前のネームコンポーネント
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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 する。

与えられた name に対して新しいコンテキストをバインドする。 生成された NamingContext はネームサーバ上で生成されたものである。

パラメータ:
name - NamingContextに付ける名前のネームコンポーネント
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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 する。

与えられた文字列に対応する新しいコンテキストをバインドする。 生成された NamingContext はネームサーバ上で生成されたものである。 途中のコンテキストを強制的にバインドする。

パラメータ:
string_name - NamingContextに付ける名前の文字列表現
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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 する。

与えられた文字列に対応する新しいコンテキストをバインドする。 生成された NamingContext はネームサーバ上で生成されたものである。

パラメータ:
string_name - NamingContextに付ける名前の文字列表現
force - trueの場合、途中のコンテキストを強制的にバインドする (デフォルト値:true)
戻り値:
生成された新しい NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
org.omg.CORBA.SystemException

destroy

public void destroy(org.omg.CosNaming.NamingContext context)
             throws org.omg.CORBA.SystemException,
                    org.omg.CosNaming.NamingContextPackage.NotEmpty
NamingContext を非アクティブ化する。

context で指定された NamingContext を非アクティブ化する。 context に他のコンテキストがバインドされている場合は NotEmpty 例外が 発生する。

パラメータ:
context - 非アクティブ化する NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象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
NamingContext を再帰的に下って非アクティブ化する。

context で与えられた NamingContext に対して、name で指定された ネームコンポーネント を NamingContext として 解決しながら、名前 に対して 非アクティブ化を行う。

パラメータ:
context - 非アクティブ化する NamingContext
例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象context に他のコンテキストがバインドされている。
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
すべての Binding を削除する。

登録されている全てのBinding を削除する。

例外:
org.omg.CosNaming.NamingContextPackage.NotEmpty - 対象コンテキストに他のコンテキストがバインドされている
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

list

public void list(org.omg.CosNaming.NamingContext name_cxt,
                 long how_many,
                 org.omg.CosNaming.BindingListHolder bl,
                 org.omg.CosNaming.BindingIteratorHolder bi)
与えられた NamingContext の Binding を取得する

指定された NamingContext の Binding を取得する。

パラメータ:
name_cxt - Binding 取得対象 NamingContext
how_many - Binding を取得する階層の深さ
bl - 取得した Binding を保持するホルダ
bi - 取得した Binding をたどるためのイテレータ

toString

public java.lang.String toString(org.omg.CosNaming.NameComponent[] name)
                          throws org.omg.CORBA.SystemException,
                                 org.omg.CosNaming.NamingContextPackage.InvalidName
与えられた NameComponent の文字列表現を返す。

指定された NameComponent を文字に変換する。

パラメータ:
name - 変換対象 NameComponent
戻り値:
文字列変換結果
例外:
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
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
与えられた文字列表現を NameComponent に分解する。

指定された文字列を NameComponent に変換する。

パラメータ:
sname - 変換対象文字列
戻り値:
NameComponent 変換結果
例外:
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name が不正。
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
与えられた addre と string_name から URL表現を取得する。

指定されたアドレスと名称をURLに変換する。

パラメータ:
addr - 変換対象アドレス
string_name - 変換対象名称
戻り値:
URL 変換結果
例外:
org.omg.CosNaming.NamingContextExtPackage.InvalidAddress - 引数 addr が不正。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 string_name が不正。
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 しオブジェクトを返す。

指定された文字列表現をresolveし,オブジェクトを取得する。

パラメータ:
string_name - 取得対象オブジェクト文字列表現
戻り値:
解決されたオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 途中の が存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。
org.omg.CosNaming.NamingContextPackage.AlreadyBound - name の Object がすでにバインドされている。
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
オブジェクトの名前をバインドまたは解決する。

指定されたコンテキストに対してオブジェクトを NameComponent で 指定された位置にバインドする。 同一箇所に既に他の要素がバインド済みの場合は、既存のバインド済み要素を 取得する。

パラメータ:
context - bind もしくは resole 対象コンテキスト
name - オブジェクトに付ける名前の NameComponent
obj - 関連付けられる Object
戻り値:
NameComponent で指定された位置にバインドされているオブジェクト
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

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
名前をバインドまたは解決する。

パラメータ:
context - bind もしくは resole 対象コンテキスト
name - コンテキストに付ける名前の NameComponent
new_context - 関連付けられる Context
戻り値:
NameComponent で指定された位置にバインドされているContext
例外:
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
名前をバインドまたは解決する。

指定されたコンテキストに対して NameComponent で指定された位置に 新規コンテキストをバインドする。 同一箇所に既に他の要素がバインド済みの場合は、既存のバインド済み要素を 取得する。

パラメータ:
context - bind もしくは resole 対象コンテキスト
name - 新規作成するコンテキストの位置を表す NameComponent
戻り値:
NameComponent で指定された位置にバインドされているContext
例外:
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CosNaming.NamingContextPackage.CannotProceed
org.omg.CosNaming.NamingContextPackage.InvalidName

getNameServer

public final java.lang.String getNameServer()
ネームサーバの名前を取得する。

設定したネームサーバの名前を取得する。

戻り値:
ネームサーバの名前

getRootContext

public org.omg.CosNaming.NamingContext getRootContext()
ルートコンテキストを取得する。

設定したネームサーバのルートコンテキストを取得する。

戻り値:
ネームサーバのルートコンテキスト

isNamingContext

public boolean isNamingContext(org.omg.CORBA.Object obj)
オブジェクトがネーミングコンテキストか判別する。

指定した要素がネーミングコンテキストか判別する

パラメータ:
obj - 判別対象要素
戻り値:
判別結果(ネーミングコンテキスト:true、それ以外: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
与えられた名前がネーミングコンテキストかどうか判断する。

NameComponentで指定した要素がネーミングコンテキストか判別する

パラメータ:
name - 判別対象NameComponent
戻り値:
判別結果(ネーミングコンテキスト:true、それ以外:false)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

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
与えられた名前がネーミングコンテキストかどうか判断する。

文字列で指定した要素がネーミングコンテキストか判別する

パラメータ:
string_name - 判別対象文字列
戻り値:
判別結果(ネーミングコンテキスト:true、それ以外:false)
例外:
org.omg.CosNaming.NamingContextPackage.NotFound - 対象オブジェクトが存在しない。
org.omg.CosNaming.NamingContextPackage.CannotProceed - 何らかの理由で処理を継続できない。
org.omg.CosNaming.NamingContextPackage.InvalidName - 引数 name の名前が不正。

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin)
ネームコンポーネントの部分を返す。

指定された範囲のネームコンポーネントを取得する。 最後の要素を除いたネームコンポーネントを返す。

パラメータ:
name - 検索対象NameComponent
begin - 取得範囲開始位置
戻り値:
NameComponent 取得結果

subName

public org.omg.CosNaming.NameComponent[] subName(org.omg.CosNaming.NameComponent[] name,
                                                 long begin,
                                                 long end)
ネームコンポーネントの部分を返す。

指定された範囲のネームコンポーネントを取得する。

パラメータ:
name - 検索対象NameComponent
begin - 取得範囲開始位置
end - 取得範囲終了位置
戻り値:
NameComponent 取得結果

nameToString

protected void nameToString(org.omg.CosNaming.NameComponent[] name,
                            StringHolder string_name,
                            long slen)
ネームコンポーネントの文字列表現を取得する。

指定した範囲のネームコンポーネントの文字列表現を取得する。 文字列表現は、NameComponentの構成が{Nc[0], Nc[1], Nc[2]...}の場合、 Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kind... という形式で取得できる。 取得した文字列の長さが指定した長さ以上の場合は、 指定した長さで切り捨てられる。

パラメータ:
name - 取得対象NameComponent
string_name - 取得結果文字列
slen - 取得対象文字列最大値

getNameLength

protected int getNameLength(org.omg.CosNaming.NameComponent[] name)
ネームコンポーネントの文字列表現時の文字長を取得する。

指定したネームコンポーネントを文字列で表現した場合の長さを 取得する。 文字列表現は、NameComponentの構成が{Nc[0],Nc[1],Nc[2]...}の場合、 Nc[0]id.Nc[0].kind/Nc[1]id.Nc[1].kind/Nc[2].id/Nc[2].kind... という形式で取得できる。

パラメータ:
name - 取得対象NameComponent
戻り値:
指定したネームコンポーネントの文字列長さ