FileDocCategorySizeDatePackage
ParameterModeHelper.javaAPI DocJava SE 5 API1860Fri Aug 26 17:25:06 BST 2005org.omg.CORBA

ParameterModeHelper

public abstract class ParameterModeHelper extends Object
Enumeration of parameter modes for Parameter. Possible vaues:
  • PARAM_IN - Represents an "in" parameter.
  • PARAM_OUT - Represents an "out" parameter.
  • PARAM_INOUT - Represents an "inout" parameter.

Fields Summary
private static String
_id
private static org.omg.CORBA.TypeCode
__typeCode
Constructors Summary
Methods Summary
public static org.omg.CORBA.ParameterModeextract(org.omg.CORBA.Any a)

    return read (a.create_input_stream ());
  
public static java.lang.Stringid()

    return _id;
  
public static voidinsert(org.omg.CORBA.Any a, org.omg.CORBA.ParameterMode that)


         
  
    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
    a.type (type ());
    write (out, that);
    a.read_value (out.create_input_stream (), type ());
  
public static org.omg.CORBA.ParameterModeread(org.omg.CORBA.portable.InputStream istream)

    return org.omg.CORBA.ParameterMode.from_int (istream.read_long ());
  
public static synchronized org.omg.CORBA.TypeCodetype()

       
  
    if (__typeCode == null)
    {
      __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.ParameterModeHelper.id (), "ParameterMode", new String[] { "PARAM_IN", "PARAM_OUT", "PARAM_INOUT"} );
    }
    return __typeCode;
  
public static voidwrite(org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.ParameterMode value)

    ostream.write_long (value.value ());