org.omg.PortableServer.POAPackage

Class InvalidPolicyHelper

public abstract class InvalidPolicyHelper extends Object

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

Method Detail

extract

public static InvalidPolicy extract(Any any)
Extract the InvalidPolicy from given Any. This method uses the InvalidPolicyHolder.

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

id

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

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

insert

public static void insert(Any any, InvalidPolicy that)
Insert the InvalidPolicy into the given Any. This method uses the InvalidPolicyHolder.

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

read

public static InvalidPolicy 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 InvalidPolicy typecode (emtpy structure, named "InvalidPolicy"). The typecode states that the structure contains the single field, named "index".

write

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