org.omg.PortableServer.POAPackage
Class WrongAdapterHelper

java.lang.Object
  extended by org.omg.PortableServer.POAPackage.WrongAdapterHelper

public abstract class WrongAdapterHelper
extends Object

The helper operations for the exception WrongAdapter.


Constructor Summary
WrongAdapterHelper()
           
 
Method Summary
static WrongAdapter extract(Any any)
          Extract the WrongAdapter from given Any.
static String id()
          Get the WrongAdapter repository id.
static void insert(Any any, WrongAdapter that)
          Insert the WrongAdapter into the given Any.
static WrongAdapter read(InputStream input)
          Read the exception from the CDR intput stream.
static TypeCode type()
          Create the WrongAdapter typecode (empty structure, named "WrongAdapter").
static void write(OutputStream output, WrongAdapter 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

WrongAdapterHelper

public WrongAdapterHelper()
Method Detail

type

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


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.

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.

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.

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.