org.omg.CORBA
Class PolicyListHelper

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

public abstract class PolicyListHelper
extends Object

The helper operations for the CORBA object Policy[].


Constructor Summary
PolicyListHelper()
           
 
Method Summary
static Policy[] extract(Any any)
          Extract the Policy[] from given Any.
static String id()
          Get the Policy[] repository id.
static void insert(Any any, Policy[] that)
          Insert the Policy[] into the given Any.
static Policy[] read(InputStream input)
          Read the sequence of policies from the CDR intput stream.
static TypeCode type()
          Get the type code of the Policy[].
static void write(OutputStream output, Policy[] value)
          Write the sequence of policies from the CDR intput stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyListHelper

public PolicyListHelper()
Method Detail

type

public static TypeCode type()
Get the type code of the Policy[].


insert

public static void insert(Any any,
                          Policy[] that)
Insert the Policy[] into the given Any.

Parameters:
any - the Any to insert into.
that - the Policy[] to insert.

extract

public static Policy[] extract(Any any)
Extract the Policy[] from given Any.

Throws:
BAD_OPERATION - if the passed Any does not contain Policy[].

id

public static String id()
Get the Policy[] repository id.

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

read

public static Policy[] read(InputStream input)
Read the sequence of policies from the CDR intput stream. The method follows usual CDR standards (an array length as CORBA long, followed by the array members, if any). The array members are read using PolicyHelper.

Parameters:
input - a org.omg.CORBA.portable stream to read from.

write

public static void write(OutputStream output,
                         Policy[] value)
Write the sequence of policies from the CDR intput stream. The method follows usual CDR standards (an array length as CORBA long, followed by the array members, if any). The array members are written using PolicyHelper.

Parameters:
output - a org.omg.CORBA.portable stream stream to write into.
value - a policy array to write.