org.omg.DynamicAny

Class NameValuePairSeqHelper

public abstract class NameValuePairSeqHelper extends Object

A helper operations for the array of {@link NameValuePair}.
Method Summary
static NameValuePair[]extract(Any any)
Extract the NameValuePairSeq from given Any.
static Stringid()
Get the NameValuePairSeq repository id.
static voidinsert(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 TypeCodetype()
static voidwrite(OutputStream output, NameValuePair[] value)
Write the structure to the CDR output stream.

Method Detail

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.

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.

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.

type

public static TypeCode type()

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.