org.omg.DynamicAny

Class NameDynAnyPairHelper

public abstract class NameDynAnyPairHelper extends Object

A helper operations for the structure {@link NameDynAnyPair}. Following the 1.5 JDK specifications, DynAny (and hence any structure, containing DynAny) is always a local object, so the two methods of this helper ({@link #read} and {@link #write} are not in use, always throwing {@link MARSHAL}.
Method Summary
static NameDynAnyPairextract(Any any)
Extract the NameDynAnyPair from given Any.
static Stringid()
Get the NameDynAnyPair repository id.
static voidinsert(Any any, NameDynAnyPair that)
Insert the NameDynAnyPair into the given Any.
static NameDynAnyPairread(InputStream input)
The method should read this object from the CDR input stream, but (following the JDK 1.5 API) it does not.
static TypeCodetype()
Create the NameDynAnyPair typecode (structure, named "NameDynAnyPair").
static voidwrite(OutputStream output, NameDynAnyPair value)
The method should write this object to the CDR input stream, but (following the JDK 1.5 API) it does not.

Method Detail

extract

public static NameDynAnyPair extract(Any any)
Extract the NameDynAnyPair from given Any. This method uses the NameDynAnyPairHolder.

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

id

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

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

insert

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

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

read

public static NameDynAnyPair read(InputStream input)
The method should read this object from the CDR input stream, but (following the JDK 1.5 API) it does not.

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

Throws: MARSHAL always.

UNKNOWN: Sun throws the same exception.

type

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

write

public static void write(OutputStream output, NameDynAnyPair value)
The method should write this object to the CDR input stream, but (following the JDK 1.5 API) it does not.

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

Throws: MARSHAL always.

UNKNOWN: Sun throws the same exception.