org.omg.PortableServer.POAPackage

Class WrongPolicyHelper

public abstract class WrongPolicyHelper extends Object

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

Method Detail

extract

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

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

id

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

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

insert

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

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

read

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

write

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