Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
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
public class _DynAnyFactoryStub extends ObjectImpl implements DynAnyFactory
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.
Modifier and Type | Field and Description |
---|---|
static Class |
_opsClass
|
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. |
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
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.