11.3.3 <interface_name>Helper.java

idl2javaによって,ユーザ定義型ごとにヘルパークラスが生成されます。ヘルパークラスは,生成されたJavaインタフェースのさまざまな静的メソッドを持つfinalクラスです。

コードサンプル11-3 ヘルパークラスコードの例(Java)

public final class exampleHelper {
  public static example narrow (
                           final org.omg.CORBA.Object obj){
     . . .
  }
  public static example unchecked_narrow (
                                 org.omg.CORBA.Object obj){
     . . .
  }
  public static example bind (org.omg.CORBA.ORB orb){
  . . .
  }
  public static example bind (
              org.omg.CORBA.ORB orb, java.lang.String name){
  . . .
  }
  public static example bind (
        org.omg.CORBA.ORB orb, java.lang.String name,
        java.lang.String host,
        com.inprise.vbroker.CORBA.BindOptions _options){
      . . .
  }
  public static example bind (
        org.omg.CORBA.ORB orb, java.lang.String fullPoaName,
        byte[ ] oid){
      . . .
  }
  public static example bind (org.omg.CORBA.ORB orb,
        java.lang.String fullPoaName, byte[ ] oid,
        java.lang.String host,
        com.inprise.vbroker.CORBA.BindOptions _options){
      . . .
  }
  public java.lang.Object read_Object (
         final org.omg.CORBA.portable.InputStream istream){
      . . .
  }
  public void write_Object (
         final org.omg.CORBA.portable.OutputStream ostream,
         final java.lang.Object obj){
      . . .
  }
  public java.lang.String get_id (){
      . . .
  }
  public org.omg.CORBA.TypeCode get_type (){
      . . .
  }
  public static example read (
          final org.omg.CORBA.portable.InputStream _input){
      . . .
  }
  public static void write (
         final org.omg.CORBA.portable.OutputStream _output,
  final example value){
      . . .
  }
  public static void insert (
          final org.omg.CORBA.Any any, final example value){
      . . .
  }
  public static example extract (final org.omg.CORBA.Any any){
      . . .
  }
  public static org.omg.CORBA.TypeCode type (){
      . . .
  }
  public static java.lang.String id (){
      . . .
  }
}