Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.omg.DynamicAny.DynAny
org.jacorb.orb.dynany.DynUnion
Method Summary | |
int |
|
DynAny | |
void |
|
TCKind | |
boolean | |
void | |
DynAny | |
boolean | |
DynAny |
|
TCKind | |
String | |
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
Any |
|
public int component_count()
Overrides component_count() in DynAny
- Specified by:
- component_count in interface DynAnyOperations
public DynAny current_component()
- Specified by:
- current_component in interface DynAnyOperations
public TCKind discriminator_kind()
- Specified by:
- discriminator_kind in interface DynUnionOperations
- Returns:
- the TCKind value of the discriminator's TypeCode.
public boolean equal(DynAny dyn_any)
Overrides equal() in DynAny
- Specified by:
- equal in interface DynAnyOperations
public void from_any(Any value) throws InvalidValue, TypeMismatch
Overrides from_any() in DynAny
- Specified by:
- from_any in interface DynAnyOperations
public DynAny get_discriminator()
- Specified by:
- get_discriminator in interface DynUnionOperations
- Returns:
- the current discriminator value
public boolean has_no_active_member()
- Specified by:
- has_no_active_member in interface DynUnionOperations
- Returns:
- true, if the union has no active member (that is, the union's value consists solely of its discriminator because the discriminator has a value that is not listed as an explicit case label). Calling this operation on a union that has a default case returns false. Calling this operation on a union that uses the entire range of discriminator values for explicit case labels returns false.
public DynAny member() throws InvalidValue
- Specified by:
- member in interface DynUnionOperations
- Returns:
- the currently active member.
- Throws:
InvalidValue
- if the union has no active member
public TCKind member_kind() throws InvalidValue
- Specified by:
- member_kind in interface DynUnionOperations
- Returns:
- the TypeCode kind of the currently active member.
- Throws:
InvalidValue
- if the union has no active member
public String member_name() throws InvalidValue
- Specified by:
- member_name in interface DynUnionOperations
- Returns:
- the name of the currently active member.
- Throws:
InvalidValue
- if the union has no active member
public boolean next()
Overrides next() in DynAny
- Specified by:
- next in interface DynAnyOperations
public boolean seek(int index)
Overrides seek() in DynAny
- Specified by:
- seek in interface DynAnyOperations
public void set_discriminator(DynAny d) throws TypeMismatch
sets the discriminator to d
- Specified by:
- set_discriminator in interface DynUnionOperations
- Throws:
TypeMismatch
- if the TypeCode of the d parameter is not equivalent to the TypeCode of the union's discriminator
public void set_to_default_member() throws TypeMismatch
sets the discriminator to a value that is consistent with the value of the default case of a union; it sets the current position to zero and causes component_count to return 2.
- Specified by:
- set_to_default_member in interface DynUnionOperations
- Throws:
TypeMismatch
- if the union does not have an explicit default case.
public void set_to_no_active_member() throws TypeMismatch
sets the discriminator to a value that does not correspond to any of the union's case labels; it sets the current position to zero and causes component_count to return 1.
- Specified by:
- set_to_no_active_member in interface DynUnionOperations
- Throws:
TypeMismatch
- if the union has an explicit default case or uses the entire range of discriminator values for explicit case labels.
public Any to_any()
- Specified by:
- to_any in interface DynAnyOperations
- Returns:
- an Any that holds a copy of this union