5.6.2 DynAnyのメソッド
-
org.omg.DynamicAny.DynAny dyn_any)
throws
org.omg.DynamicAny.DynAnyPackage.TypeMismatch
このメソッドは,指定したDynAnyからこのオブジェクト内のカレントコンポーネントを初期化します。Anyに含まれる型がこのオブジェクトに含まれる型と一致しなかった場合,org.omg.DynamicAny.DynAnyPackage.TypeMismatch例外が発生します。
-
public org.omg.DynamicAny.DynAny copy( )
このメソッドは,このオブジェクトのコピーを返します。
-
public org.omg.DynamicAny.DynAny current_component( )
このメソッドは,このオブジェクト内のカレントコンポーネントを返します。
-
このメソッドは,このオブジェクトをデストラクトします。
-
any value)
throws
org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
org.omg.DymanicAny.DynAnyPackage.InvalidValue
このメソッドは,指定したAnyオブジェクトから,このオブジェクトのカレントコンポーネントを初期化します。
Anyに含まれる値のTypeCodeが,このオブジェクトの生成時に定義したTypeCodeと一致しない場合,org.omg.DynamicAny.DynAnyPackage.TypeMismatch例外が発生します。
-
value
このオブジェクトに設定する値を格納するAnyオブジェクト
-
-
このメソッドは,コンポーネントが次にある場合は制御をそこへ移し,trueを返します。コンポーネントが次にない場合はfalseを返します。
-
このメソッドは,このオブジェクトのシーケンスに含まれる先頭のコンポーネントに制御を返します。このメソッドに続いてcurrent_componentメソッドを起動すると,シーケンスの先頭のコンポーネントを返します。
このオブジェクトにコンポーネントが一つしかなかった場合,このメソッドは何もしません。
-
int index)
このオブジェクトにコンポーネントが複数ある場合,このメソッドは指定したインデックスのコンポーネントへ制御を移し,trueを返します。このメソッドに続いてcurrent_componentメソッドを起動すると,指定したインデックスのコンポーネントを返します。このオブジェクトにコンポーネントがない場合は,falseを返します。
-
index
ターゲットコンポーネントのインデックス(0から始まります)
-
-
public org.omg.CORBA.Any to_any( )
このメソッドは,カレントコンポーネントの値を格納するAnyオブジェクトを返します。
-
public org.omg.CORBA.TypeCode type( )
このメソッドは,このオブジェクトのカレントコンポーネントが格納する値のTypeCodeを返します。