org.omg.CORBA

Interface DynEnum

public interface DynEnum extends DynAny

Deprecated: by {@link org.omg.DynamicAny.DynEnum}

Represents the dynamic enumeration, allowing to get/set the value by name or by position in the enumeration list. The CORBA enumeration can obtain one of the named values from the specified enumeration list.
Method Summary
Stringvalue_as_string()
Get the value of this object.
voidvalue_as_string(String member)
Set the value of this object.
voidvalue_as_ulong(int member)
Set the value of this object as the position inside the list of this enumeration.
intvalue_as_ulong()
Get the value of this object as the position inside the list of this enumeration.

Method Detail

value_as_string

public String value_as_string()
Get the value of this object.

Returns: the currently set value, one of the allowed values for this enumeration.

value_as_string

public void value_as_string(String member)
Set the value of this object.

Parameters: member the value to set, must be one of the allowed values for this enumeration. Otherwise the {@link SystemException} may be thrown.

value_as_ulong

public void value_as_ulong(int member)
Set the value of this object as the position inside the list of this enumeration.

Parameters: member the position of the enumeration value inside the enumeration list. Otherwise the {@link SystemException} may be thrown.

value_as_ulong

public int value_as_ulong()
Get the value of this object as the position inside the list of this enumeration.

Returns: member the position of the currently set enumeration value inside the enumeration list.