|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omg.CORBA.portable.ObjectImpl org.omg.DynamicAny._DynAnyFactoryStub
DynAny objects can be created by invoking operations on the DynAnyFactory object. Generally there are only two ways to create a DynAny object:
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.
Field Summary | |
static Class |
_opsClass
|
Constructor Summary | |
_DynAnyFactoryStub()
|
Method Summary | |
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. |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_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 |
Field Detail |
public static final Class _opsClass
Constructor Detail |
public _DynAnyFactoryStub()
Method Detail |
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
instance
|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.