org.omg.CORBA

Class VisibilityHelper

public abstract class VisibilityHelper extends Object

A helper operations for a Visibility that is mapped into java and CORBA short. The Visibility normally takes one of the two values, value or value.
Method Summary
static shortextract(Any any)
Extract the Visibility from the given Any.
static Stringid()
Get the Visibility repository id.
static voidinsert(Any any, short that)
Insert the Visibility into the given Any.
static shortread(InputStream istream)
Read the visibility value (as short) from the CDR intput stream.
static TypeCodetype()
Return an alias of short, named "Visibility".
static voidwrite(OutputStream ostream, short value)
Write the visibility value (as short) to the CDR output stream.

Method Detail

extract

public static short extract(Any any)
Extract the Visibility from the given Any. Uses Any.

id

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

Returns: "IDL:omg.org/CORBA/Visibility:1.0", always.

insert

public static void insert(Any any, short that)
Insert the Visibility into the given Any. Uses Any.

read

public static short read(InputStream istream)
Read the visibility value (as short) from the CDR intput stream. Uses read_short.

Parameters: istream a stream to read from.

type

public static TypeCode type()
Return an alias of short, named "Visibility".

write

public static void write(OutputStream ostream, short value)
Write the visibility value (as short) to the CDR output stream. USes OutputStream.

Parameters: ostream a stream to write into. value a value to write.