org.omg.DynamicAny
Class NameValuePairHelper

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

public abstract class NameValuePairHelper
extends Object

A helper operations for the structure NameValuePair.


Constructor Summary
NameValuePairHelper()
           
 
Method Summary
static NameValuePair extract(Any any)
          Extract the NameValuePair from given Any.
static String id()
          Get the NameValuePair repository id.
static void insert(Any any, NameValuePair that)
          Insert the NameValuePair into the given Any.
static NameValuePair read(InputStream input)
          Read the structure from the CDR intput stream.
static TypeCode type()
          Create the NameValuePair typecode (structure, named "NameValuePair").
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

NameValuePairHelper

public NameValuePairHelper()
Method Detail

type

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


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.

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.

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.

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.