org.omg.PortableInterceptor.ORBInitInfoPackage
Class DuplicateNameHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateNameHelper

public abstract class DuplicateNameHelper
extends Object

The helper operations for the exception DuplicateName.


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

DuplicateNameHelper

public DuplicateNameHelper()
Method Detail

type

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


insert

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

Parameters:
any - the Any to insert into.
that - the DuplicateName to insert.

extract

public static DuplicateName extract(Any any)
Extract the DuplicateName from given Any. This method uses the DuplicateNameHolder.

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

id

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

Returns:
"IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0".

read

public static DuplicateName read(InputStream input)
Read the exception from the CDR intput stream.

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

write

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

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