public abstract class DynAnyHelper extends java.lang.Object
DynAny. Following the 1.5 JDK
specifications, DynAny is always a local object, so the two methods of this
helper (read(org.omg.CORBA.portable.InputStream) and write(org.omg.CORBA.portable.OutputStream, org.omg.DynamicAny.DynAny) are not in use, always throwing
MARSHAL.| Constructor and Description |
|---|
DynAnyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static DynAny |
extract(org.omg.CORBA.Any any)
Extract the DynAny from given Any.
|
static java.lang.String |
id()
Get the DynAny repository id.
|
static void |
insert(org.omg.CORBA.Any any,
DynAny that)
Insert the DynAny into the given Any.
|
static DynAny |
narrow(org.omg.CORBA.Object obj)
Cast the passed object into the DynAny.
|
static DynAny |
read(org.omg.CORBA.portable.InputStream input)
This should read DynAny from the CDR input stream, but (following the JDK
1.5 API) it does not.
|
static org.omg.CORBA.TypeCode |
type()
Get the type code of the
DynAny. |
static DynAny |
unchecked_narrow(org.omg.CORBA.Object obj)
Narrow the given object to the DynAny.
|
static void |
write(org.omg.CORBA.portable.OutputStream output,
DynAny value)
This should read DynAny from the CDR input stream, but (following the JDK
1.5 API) it does not.
|
public DynAnyHelper()
public static DynAny narrow(org.omg.CORBA.Object obj)
obj - the object to narrow.org.omg.CORBA.BAD_PARAM - if the passed object is not a DynAny.public static DynAny unchecked_narrow(org.omg.CORBA.Object obj)
narrow(org.omg.CORBA.Object) (ClassCastException will be thrown if narrowing something
different). See also OMG issue 4158.obj - the object to cast.public static void insert(org.omg.CORBA.Any any, DynAny that)
any - the Any to insert into.that - the DynAny to insert.public static DynAny extract(org.omg.CORBA.Any any)
org.omg.CORBA.BAD_OPERATION - if the passed Any does not contain DynAny.public static java.lang.String id()
public static DynAny read(org.omg.CORBA.portable.InputStream input)
input - a org.omg.CORBA.portable stream to read from.org.omg.CORBA.MARSHAL - always.