org.omg.DynamicAny

Interface DynEnumOperations

public interface DynEnumOperations extends DynAnyOperations

Defines operations, applicable to the dynamic enumeration. The value of the dynamic enumeration can be set by name or by integer code. The valid string values and integer codes are taken from the typecode, from which the enumeration was constructed. The enumeration is an undividable type without traversable components.
Method Summary
Stringget_as_string()
Get the current enumeration value, as string.
intget_as_ulong()
Get the current enumeration value, as int.
voidset_as_string(String value)
Set the current enumeration value, as string.
voidset_as_ulong(int value)
Set the current enumeration value, as int.

Method Detail

get_as_string

public String get_as_string()
Get the current enumeration value, as string.

get_as_ulong

public int get_as_ulong()
Get the current enumeration value, as int.

set_as_string

public void set_as_string(String value)
Set the current enumeration value, as string.

Throws: InvalidValue if the passed string is not one of the allowed values for this enumeration.

set_as_ulong

public void set_as_ulong(int value)
Set the current enumeration value, as int.

Throws: InvalidValue if the passed string is not one of the allowed values for this enumeration.