public class _DynAnyFactoryStub extends ObjectImpl implements DynAnyFactory
Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any() as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(), passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of invoking operations on the resulting object. Finally, the to_any operation can be invoked to create an any value from the constructed DynAny.
Constructor and Description |
---|
_DynAnyFactoryStub() |
Modifier and Type | Method and Description |
---|---|
String[] |
_ids()
Retrieves a string array containing the repository identifiers
supported by this
ObjectImpl object. |
DynAny |
create_dyn_any_from_type_code(TypeCode type)
Creates a DynAny from a TypeCode.
|
DynAny |
create_dyn_any(Any value)
Creates a new DynAny object from an any value.
|
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
_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
public static final Class _opsClass
public DynAny create_dyn_any(Any value) throws InconsistentTypeCode
create_dyn_any
in interface DynAnyFactoryOperations
InconsistentTypeCode
- if value has a TypeCode with a TCKind of tk_Principal,
tk_native, or tk_abstract_interfacepublic DynAny create_dyn_any_from_type_code(TypeCode type) throws InconsistentTypeCode
create_dyn_any_from_type_code
in interface DynAnyFactoryOperations
InconsistentTypeCode
public String[] _ids()
ObjectImpl
ObjectImpl
object. For example,
for a stub, this method returns information about all the
interfaces supported by the stub._ids
in class ObjectImpl
ObjectImpl
instanceCopyright © 2016 JBoss by Red Hat. All rights reserved.