|
VisiBroker for Java |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DynAnyFactoryOperations
DynAny objects can be created by invoking operations
on the DynAnyFactory object.
A reference to the DynAnyFactory object is obtained by calling
CORBA::ORB::resolve_initial_references with the identifier
parameter set to "DynAnyFactory".
| Method Summary | |
|---|---|
DynAny |
create_dyn_any_from_type_code(TypeCode type)
The create_dyn_any_from_type_code operation creates a DynAny from a
TypeCode. |
DynAny |
create_dyn_any(Any value)
The create_dyn_any operation creates a new DynAny object from an any value. |
| Method Detail |
|---|
DynAny create_dyn_any_from_type_code(TypeCode type)
throws InconsistentTypeCode
DynAny from a
TypeCode. Depending on the TypeCode, the created object may be of type
DynAny, or one of its derived types, such as DynStruct. The returned
reference can be narrowed to the derived type.
InconsistentTypeCode
DynAny create_dyn_any(Any value)
throws InconsistentTypeCode
DynAny object from an any value.
A copy of the TypeCode associated with the any value is assigned to the
resulting DynAny object. The value associated with the DynAny object
is a copy of the value in the original any. The create_dyn_any operation
sets the current position of the created DynAny to zero if the passed value
has components; otherwise, the current position is set to -1. The operation
raises InconsistentTypeCode if value has a TypeCode with a TCKind of tk_Principal,
tk_native, or tk_abstract_interface.
InconsistentTypeCode
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||