org.omg.DynamicAny

Class NameValuePairHelper

public abstract class NameValuePairHelper extends Object

A helper operations for the structure {@link NameValuePair}.
Method Summary
static NameValuePairextract(Any any)
Extract the NameValuePair from given Any.
static Stringid()
Get the NameValuePair repository id.
static voidinsert(Any any, NameValuePair that)
Insert the NameValuePair into the given Any.
static NameValuePairread(InputStream input)
Read the structure from the CDR intput stream.
static TypeCodetype()
Create the NameValuePair typecode (structure, named "NameValuePair").
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 NameValuePair from given Any. This method uses the NameValuePairHolder.

Throws: BAD_OPERATION if the passed Any does not contain NameValuePair.

id

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

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

insert

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

Parameters: any the Any to insert into. that the NameValuePair to insert.

read

public static NameValuePair read(InputStream input)
Read the structure from the CDR intput stream.

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

type

public static TypeCode type()
Create the NameValuePair typecode (structure, named "NameValuePair"). The typecode states that the structure contains the following fields: id, value.

write

public static void write(OutputStream output, NameValuePair value)
Write the structure to the CDR output stream.

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