org.omg.PortableServer.POAPackage
Class InvalidPolicyHelper

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

public abstract class InvalidPolicyHelper
extends Object

The helper operations for the exception InvalidPolicy.


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

InvalidPolicyHelper

public InvalidPolicyHelper()
Method Detail

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".


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.

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.

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.

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.