public class DynEnumImpl extends DynAnyBasicImpl implements DynEnum
Modifier and Type | Field and Description |
---|---|
protected Any |
any |
protected int |
index |
protected static int |
NO_INDEX |
protected ORB |
orb |
protected byte |
status |
protected static byte |
STATUS_DESTROYABLE |
protected static byte |
STATUS_DESTROYED |
protected static byte |
STATUS_UNDESTROYABLE |
protected ORBUtilSystemException |
wrapper |
Modifier | Constructor and Description |
---|---|
protected |
DynEnumImpl(ORB orb,
Any anAny,
boolean copyValue) |
protected |
DynEnumImpl(ORB orb,
TypeCode typeCode) |
Modifier and Type | Method and Description |
---|---|
String[] |
_ids() |
protected void |
clearData() |
int |
component_count()
Returns the number of components of a DynAny.
|
DynAny |
current_component()
Returns the DynAny for the component at the current position.
|
protected DynAnyFactory |
factory() |
String |
get_as_string()
Returns the value of the DynEnum as an IDL identifier.
|
int |
get_as_ulong()
Returns the value of the DynEnum as the enumerated value's ordinal value.
|
protected Any |
getAny() |
protected Any |
getAny(DynAny dynAny) |
void |
set_as_string(String value)
Sets the value of the DynEnum to the enumerated value whose IDL identifier is passed in the value parameter.
|
void |
set_as_ulong(int value)
Sets the value of the DynEnum as the enumerated value's ordinal value.
|
protected void |
setStatus(byte newStatus) |
TypeCode |
type()
Returns the TypeCode associated with this DynAny object.
|
protected void |
writeAny(OutputStream out) |
assign, copy, destroy, equal, from_any, get_any, get_boolean, get_char, get_double, get_dyn_any, get_float, get_long, get_longlong, get_octet, get_reference, get_short, get_string, get_typecode, get_ulong, get_ulonglong, get_ushort, get_val, get_wchar, get_wstring, insert_any, insert_boolean, insert_char, insert_double, insert_dyn_any, insert_float, insert_long, insert_longlong, insert_octet, insert_reference, insert_short, insert_string, insert_typecode, insert_ulong, insert_ulonglong, insert_ushort, insert_val, insert_wchar, insert_wstring, next, rewind, seek, to_any
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assign, copy, destroy, equal, from_any, get_any, get_boolean, get_char, get_double, get_dyn_any, get_float, get_long, get_longlong, get_octet, get_reference, get_short, get_string, get_typecode, get_ulong, get_ulonglong, get_ushort, get_val, get_wchar, get_wstring, insert_any, insert_boolean, insert_char, insert_double, insert_dyn_any, insert_float, insert_long, insert_longlong, insert_octet, insert_reference, insert_short, insert_string, insert_typecode, insert_ulong, insert_ulonglong, insert_ushort, insert_val, insert_wchar, insert_wstring, next, rewind, seek, to_any, type
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
protected static final int NO_INDEX
protected static final byte STATUS_DESTROYABLE
protected static final byte STATUS_UNDESTROYABLE
protected static final byte STATUS_DESTROYED
protected ORB orb
protected ORBUtilSystemException wrapper
protected Any any
protected byte status
protected int index
public int component_count()
DynAnyOperations
component_count
in interface DynAnyOperations
component_count
in class DynAnyBasicImpl
public DynAny current_component() throws TypeMismatch
DynAnyOperations
current_component
in interface DynAnyOperations
current_component
in class DynAnyBasicImpl
TypeMismatch
- If called on a DynAny that cannot have components,
such as a DynEnum or an empty exceptionpublic String get_as_string()
DynEnumOperations
get_as_string
in interface DynEnumOperations
public void set_as_string(String value) throws InvalidValue
DynEnumOperations
set_as_string
in interface DynEnumOperations
InvalidValue
- If value contains a string that is not a valid IDL identifier
for the corresponding enumerated typepublic int get_as_ulong()
DynEnumOperations
get_as_ulong
in interface DynEnumOperations
public void set_as_ulong(int value) throws InvalidValue
DynEnumOperations
set_as_ulong
in interface DynEnumOperations
InvalidValue
- If value contains a value that is outside the range of ordinal values
for the corresponding enumerated typeprotected DynAnyFactory factory()
protected Any getAny()
protected void writeAny(OutputStream out)
protected void setStatus(byte newStatus)
protected void clearData()
public TypeCode type()
DynAnyOperations
type
in interface DynAnyOperations
public String[] _ids()
Copyright © 2017 JBoss by Red Hat. All rights reserved.