5.12.2 DynUnionのメソッド
-
public org.omg.DynamicAny.DynAny get_discriminator( )
このメソッドは,unionのディスクリミネータを含むDynAnyオブジェクトを返します。
-
public void set_discriminator(
org.omg.DynamicAny.DynAny d)
throws
org.omg.DynamicAny.DynAnyPackage.TypeMismatch
該当するDynUnionオブジェクトの識別子を指定した値に設定します。
-
public org.omg.CORBA.TCKind discriminator_kind( )
このメソッドは,unionのディスクリミネータのタイプコードを返します。
-
public org.omg.DynamicAny.DynAny member( )
throws
org.omg.DynamicAny.DynAnyPackage.InvalidValue
このメソッドは,unionのメンバであるカレントコンポーネントのDynAnyオブジェクトを返します。
-
public org.omg.CORBA.TCKind member_kind( )
throws
org.omg.DynamicAny.DynAnyPackage.InvalidValue
このメソッドは,unionのメンバであるカレントコンポーネントのタイプコードを返します。
-
public java.lang.String member_name( )
throws
org.omg.DynamicAny.DynAnyPackage.InvalidValue
このメソッドは,カレントコンポーネントのメンバ名を返します。
-
public void set_to_default_member( )
throws
org.omg.DynamicAny.DynAnyPackage.TypeMismatch
このメソッドは,ディスクリミネータを,unionのデフォルト値と一致する値に設定します。
-
public boolean has_no_active_member( )
共用体にアクティブなメンバがない場合,つまり共用体の識別子がcase文のラベルに示されない値と対応してるために,共用体が識別子だけから構成されている場合,trueを返します。
-
public void set_to_no_active_member( )
throws
org.omg.DynamicAny.DynAnyPackage.TypeMismatch
このメソッドは,ディスクリミネータを,どのunionのケースラベルにも対応しない値に設定します。