org.omg.PortableServer.POAPackage

Class WrongAdapterHelper

public abstract class WrongAdapterHelper extends Object

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

Method Detail

extract

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

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

id

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

Returns: "IDL:omg.org/PortableServer/POA/WrongAdapter:1.0", always.

insert

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

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

read

public static WrongAdapter 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 WrongAdapter typecode (empty structure, named "WrongAdapter").

write

public static void write(OutputStream output, WrongAdapter 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.