org.omg.IOP.CodecPackage
Class TypeMismatchHelper

java.lang.Object
  extended by org.omg.IOP.CodecPackage.TypeMismatchHelper

public abstract class TypeMismatchHelper
extends Object

The helper operations for the exception TypeMismatch.


Constructor Summary
TypeMismatchHelper()
           
 
Method Summary
static TypeMismatch extract(Any any)
          Extract the TypeMismatch from given Any.
static String id()
          Get the TypeMismatch repository id.
static void insert(Any any, TypeMismatch that)
          Insert the TypeMismatch into the given Any.
static TypeMismatch read(InputStream input)
          Read the exception from the CDR intput stream.
static TypeCode type()
          Create the TypeMismatch typecode (structure, named "TypeMismatch").
static void write(OutputStream output, TypeMismatch value)
          Write the exception to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMismatchHelper

public TypeMismatchHelper()
Method Detail

type

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


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.

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/IOP/Codec/TypeMismatch:1.0", always.

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.

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.