public class _DynAnyFactoryStub extends ObjectImpl implements DynAnyFactory
任何动态解释通常涉及使用create_dyn_any()作为第一步创建DynAny对象。 根据任何类型,可以将生成的DynAny对象引用缩小为DynFixed,DynStruct,DynSequence,DynArray,DynUnion,DynEnum或DynValue对象引用。
任何动态创建涉及使用create_dyn_any_from_type_code()创建DynAny对象,传递与要创建的值相关联的TypeCode。 返回的引用被缩小为一个复杂类型,如DynStruct(如果适用)。 然后,可以通过调用对结果对象的操作来初始化该值。 最后,可以调用to_any操作以从构造的DynAny创建任何值。
Constructor and Description |
---|
_DynAnyFactoryStub()
|
Modifier and Type | Method and Description |
---|---|
String[] |
_ids()
检索包含此
ObjectImpl 对象支持的存储库标识符的字符串数组。
|
DynAny
|
create_dyn_any_from_type_code(TypeCode type)
从TypeCode创建DynAny。
|
DynAny
|
create_dyn_any(Any value)
从任何值创建一个新的DynAny对象。
|
_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 类 _opsClass
public DynAny create_dyn_any(Any value) throws InconsistentTypeCode
create_dyn_any
在界面
DynAnyFactoryOperations
InconsistentTypeCode
-
如果值具有TCKind为tk_Principal,tk_native或tk_abstract_interface的TypeCode
public DynAny create_dyn_any_from_type_code(TypeCode type) throws InconsistentTypeCode
create_dyn_any_from_type_code
在界面
DynAnyFactoryOperations
InconsistentTypeCode
public String[] _ids()
ObjectImpl
ObjectImpl
对象支持的存储库标识符的字符串数组。
例如,对于stub,此方法返回有关stub支持的所有接口的信息。
_ids
在
ObjectImpl
ObjectImpl
实例支持的所有存储库标识符阵列