VisiBroker for Java

org.omg.DynamicAny
Interface DynAnyFactoryOperations

All Known Subinterfaces:
DynAnyFactory
All Known Implementing Classes:
_DynAnyFactoryStub

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

create_dyn_any_from_type_code

DynAny create_dyn_any_from_type_code(TypeCode type)
                                     throws InconsistentTypeCode
The create_dyn_any_from_type_code operation creates a 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.

Throws:
InconsistentTypeCode

create_dyn_any

DynAny create_dyn_any(Any value)
                      throws InconsistentTypeCode
The create_dyn_any operation creates a new 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.

Throws:
InconsistentTypeCode

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online