org.omg.CORBA
Class VisibilityHelper

java.lang.Object
  extended by org.omg.CORBA.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, PUBLIC_MEMBER.value or PRIVATE_MEMBER.value.


Constructor Summary
VisibilityHelper()
           
 
Method Summary
static short extract(Any any)
          Extract the Visibility from the given Any.
static String id()
          Get the Visibility repository id.
static void insert(Any any, short that)
          Insert the Visibility into the given Any.
static short read(InputStream istream)
          Read the visibility value (as short) from the CDR intput stream.
static TypeCode type()
          Return an alias of short, named "Visibility".
static void write(OutputStream ostream, short value)
          Write the visibility value (as short) 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

VisibilityHelper

public VisibilityHelper()
Method Detail

insert

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


extract

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


type

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


id

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

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

read

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

Parameters:
istream - a stream to read from.

write

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

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