org.omg.DynamicAny.DynAnyPackage

Class TypeMismatchHelper

public abstract class TypeMismatchHelper extends Object

The helper operations for the exception {@link TypeMismatch}.
Method Summary
static TypeMismatchextract(Any any)
Extract the TypeMismatch from given Any.
static Stringid()
Get the TypeMismatch repository id.
static voidinsert(Any any, TypeMismatch that)
Insert the TypeMismatch into the given Any.
static TypeMismatchread(InputStream input)
Read the exception from the CDR intput stream.
static TypeCodetype()
Create the TypeMismatch typecode (structure, named "TypeMismatch").
static voidwrite(OutputStream output, TypeMismatch value)
Write the exception to the CDR output stream.

Method Detail

extract

public static TypeMismatch extract(Any any)
Extract the TypeMismatch from given Any.

Throws: BAD_OPERATION if the passed Any does not contain TypeMismatch.

id

public static String id()
Get the TypeMismatch repository id.

Returns: "IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0", always.

insert

public static void insert(Any any, TypeMismatch that)
Insert the TypeMismatch into the given Any.

Parameters: any the Any to insert into. that the TypeMismatch to insert.

read

public static TypeMismatch read(InputStream input)
Read the exception from the CDR intput stream.

Parameters: input a org.omg.CORBA.portable stream to read from.

type

public static TypeCode type()
Create the TypeMismatch typecode (structure, named "TypeMismatch").

write

public static void write(OutputStream output, TypeMismatch value)
Write the exception to the CDR output stream.

Parameters: output a org.omg.CORBA.portable stream stream to write into. value a value to write.