org.omg.PortableServer.POAPackage
Class WrongPolicyHelper

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

public abstract class WrongPolicyHelper
extends Object

The helper operations for the exception WrongPolicy.


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

WrongPolicyHelper

public WrongPolicyHelper()
Method Detail

type

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


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.

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.

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.

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.