org.omg.DynamicAny
Class NameValuePairSeqHelper

java.lang.Object
  extended by org.omg.DynamicAny.NameValuePairSeqHelper

public abstract class NameValuePairSeqHelper
extends Object

A helper operations for the array of NameValuePair.


Constructor Summary
NameValuePairSeqHelper()
           
 
Method Summary
static NameValuePair[] extract(Any any)
          Extract the NameValuePairSeq from given Any.
static String id()
          Get the NameValuePairSeq repository id.
static void insert(Any any, NameValuePair[] those)
          Insert the NameValuePairSeq into the given Any.
static NameValuePair[] read(InputStream input)
          Read the sequence from the CDR intput stream.
static TypeCode type()
           
static void write(OutputStream output, NameValuePair[] value)
          Write the structure 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

NameValuePairSeqHelper

public NameValuePairSeqHelper()
Method Detail

type

public static TypeCode type()

insert

public static void insert(Any any,
                          NameValuePair[] those)
Insert the NameValuePairSeq into the given Any. This method uses the NameValuePairSeqHolder.

Parameters:
any - the Any to insert into.
those - the NameValuePair[] to insert.

extract

public static NameValuePair[] extract(Any any)
Extract the NameValuePairSeq from given Any. This method uses the NameValuePairSeqHolder.

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

id

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

Returns:
"IDL:omg.org/DynamicAny/NameValuePairSeq:1.0", always.

read

public static NameValuePair[] read(InputStream input)
Read the sequence from the CDR intput stream. Expects the array size (as CORBA long), followed by the array members (if any).

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

write

public static void write(OutputStream output,
                         NameValuePair[] value)
Write the structure to the CDR output stream. Writes the array size (as CORBA long), followed by the array members (if any).

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