org.omg.DynamicAny
Class NameDynAnyPairSeqHelper

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

public abstract class NameDynAnyPairSeqHelper
extends Object

A helper operations for the array of NameDynAnyPair (NameDynAnyPair[]). Following the 1.5 JDK specifications, DynAny (and hence the sequence of structures, containing DynAny) is always a local object. Hence the two methods of this helper (read(org.omg.CORBA.portable.InputStream) and write(org.omg.CORBA.portable.OutputStream, org.omg.DynamicAny.NameDynAnyPair[]) are not in use, always throwing MARSHAL.


Constructor Summary
NameDynAnyPairSeqHelper()
           
 
Method Summary
static NameDynAnyPair[] extract(Any any)
          Extract the NameDynAnyPairSeq from given Any.
static String id()
          Get the NameDynAnyPairSeq repository id.
static void insert(Any any, NameDynAnyPair[] those)
          Insert the NameDynAnyPairSeq into the given Any.
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.
static TypeCode type()
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameDynAnyPairSeqHelper

public NameDynAnyPairSeqHelper()
Method Detail

type

public static TypeCode type()

insert

public static void insert(Any any,
                          NameDynAnyPair[] those)
Insert the NameDynAnyPairSeq into the given Any. This method uses the NameDynAnyPairSeqHolder.

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

extract

public static NameDynAnyPair[] extract(Any any)
Extract the NameDynAnyPairSeq from given Any. This method uses the NameDynAnyPairSeqHolder.

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

id

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

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

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.

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.