org.omg.CORBA
Class PolicyErrorHelper

java.lang.Object
  extended by org.omg.CORBA.PolicyErrorHelper

public abstract class PolicyErrorHelper
extends Object

The helper operations for the exception PolicyError.


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

PolicyErrorHelper

public PolicyErrorHelper()
Method Detail

type

public static TypeCode type()
Create the PolicyError typecode. The typecode defines a structure, named "PolicyError", containing the PolicyErrorCode (alias int, see PolicyErrorCodeHelper) field, named "reason".


insert

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

Parameters:
any - the Any to insert into.
that - the PolicyError to insert.

extract

public static PolicyError extract(Any any)
Extract the PolicyError from given Any. This method uses the PolicyErrorHolder.

Throws:
BAD_OPERATION - if the passed Any does not contain PolicyError.

id

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

Returns:
"IDL:omg.org/CORBA/PolicyError:1.0", always.

read

public static PolicyError 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,
                         PolicyError 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.