JavaTM 2 Platform
Standard Ed. 6

org.omg.DynamicAny
接口 DynValueBoxOperations

所有超级接口:
DynAnyOperations, DynValueCommonOperations
所有已知子接口:
DynValueBox

public interface DynValueBoxOperations
extends DynValueCommonOperations

DynValueBox 对象支持对 IDL 装箱 (boxed) 类型的操作。DynValueBox 接口可表示 null 和非 null 两种值类型。对于表示非 null 值类型的 DynValueBox,DynValueBox 具有单个装箱类型的组件。表示 null 值类型的 DynValueBox 没有组件,其当前位置为 -1。


方法摘要
 DynAny get_boxed_value_as_dyn_any()
          以 DynAny 的形式返回已装箱值。
 Any get_boxed_value()
          以 Any 的形式返回装箱值。
 void set_boxed_value_as_dyn_any(DynAny boxed)
          使用参数中包含的值取代已装箱值。
 void set_boxed_value(Any boxed)
          使用指定值取代已装箱值。
 
从接口 org.omg.DynamicAny.DynValueCommonOperations 继承的方法
is_null, set_to_null, set_to_value
 
从接口 org.omg.DynamicAny.DynAnyOperations 继承的方法
assign, component_count, copy, current_component, 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
 

方法详细信息

get_boxed_value

Any get_boxed_value()
                    throws InvalidValue
以 Any 的形式返回装箱值。

抛出:
InvalidValue - 如果此对象表示 null 值装箱类型

set_boxed_value

void set_boxed_value(Any boxed)
                     throws TypeMismatch
使用指定值取代已装箱值。如果 DynBoxedValue 表示 null 值类型,则将其转换为非 null 值。

抛出:
TypeMismatch - 如果此对象表示非 null 值装箱类型,并且参数的类型与当前已装箱值类型不匹配。

get_boxed_value_as_dyn_any

DynAny get_boxed_value_as_dyn_any()
                                  throws InvalidValue
以 DynAny 的形式返回已装箱值。

抛出:
InvalidValue - 如果此对象表示 null 值装箱类型

set_boxed_value_as_dyn_any

void set_boxed_value_as_dyn_any(DynAny boxed)
                                throws TypeMismatch
使用参数中包含的值取代已装箱值。如果 DynBoxedValue 表示 null 值类型,则将其转换为非 null 值。

抛出:
TypeMismatch - 如果此对象表示非 null 值装箱类型,并且参数的类型与当前已装箱值类型不匹配。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only