1 /*
   2  * Copyright (c) 1999, 2000, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 /*
  26  * COMPONENT_NAME: idl.toJava
  27  *
  28  * ORIGINS: 27
  29  *
  30  * Licensed Materials - Property of IBM
  31  * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999
  32  * RMI-IIOP v1.0
  33  *
  34  */
  35 
  36 package com.sun.tools.corba.se.idl.toJavaPortable;
  37 
  38 // NOTES:
  39 
  40 /**
  41  *
  42  **/
  43 public class GenFactory implements com.sun.tools.corba.se.idl.GenFactory
  44 {
  45 
  46   public com.sun.tools.corba.se.idl.AttributeGen createAttributeGen ()
  47   {
  48     if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
  49       return new AttributeGen24 ();
  50     else
  51       return new AttributeGen ();
  52   } // createAttributeGen
  53 
  54   public com.sun.tools.corba.se.idl.ConstGen createConstGen ()
  55   {
  56     return new ConstGen ();
  57   } // createConstGen
  58 
  59   public com.sun.tools.corba.se.idl.NativeGen createNativeGen ()
  60   {
  61     return new NativeGen ();
  62   } // createNativeGen
  63 
  64   public com.sun.tools.corba.se.idl.EnumGen createEnumGen ()
  65   {
  66     return new EnumGen ();
  67   } // createEnumGen
  68 
  69   public com.sun.tools.corba.se.idl.ExceptionGen createExceptionGen ()
  70   {
  71     return new ExceptionGen ();
  72   } // createExceptionGen
  73 
  74   public com.sun.tools.corba.se.idl.ForwardGen createForwardGen ()
  75   {
  76     return null;
  77   } // createForwardGen
  78 
  79   public com.sun.tools.corba.se.idl.ForwardValueGen createForwardValueGen ()
  80   {
  81     return null;
  82   } // createForwardValueGen
  83 
  84   public com.sun.tools.corba.se.idl.IncludeGen createIncludeGen ()
  85   {
  86     return null;
  87   } // createIncludeGen
  88 
  89   public com.sun.tools.corba.se.idl.InterfaceGen createInterfaceGen ()
  90   {
  91     return new InterfaceGen ();
  92   } // createInterfaceGen
  93 
  94   public com.sun.tools.corba.se.idl.ValueGen createValueGen ()
  95   {
  96     if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
  97       return new ValueGen24 ();
  98     else
  99       return new ValueGen ();
 100   } // createValueGen
 101 
 102   public com.sun.tools.corba.se.idl.ValueBoxGen createValueBoxGen ()
 103   {
 104     if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
 105       return new ValueBoxGen24 ();
 106     else
 107       return new ValueBoxGen ();
 108   } // createValueBoxGen
 109 
 110   public com.sun.tools.corba.se.idl.MethodGen createMethodGen ()
 111   {
 112     if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
 113       return new MethodGen24 ();
 114     else
 115       return new MethodGen ();
 116   } // createMethodGen
 117 
 118   public com.sun.tools.corba.se.idl.ModuleGen createModuleGen ()
 119   {
 120     return new ModuleGen ();
 121   } // createModuleGen
 122 
 123   public com.sun.tools.corba.se.idl.ParameterGen createParameterGen ()
 124   {
 125     return null;
 126   } // createParameterGen
 127 
 128   public com.sun.tools.corba.se.idl.PragmaGen createPragmaGen ()
 129   {
 130     return null;
 131   } // createPragmaGen
 132 
 133   public com.sun.tools.corba.se.idl.PrimitiveGen createPrimitiveGen ()
 134   {
 135     return new PrimitiveGen ();
 136   } // createPrimitiveGen
 137 
 138   public com.sun.tools.corba.se.idl.SequenceGen createSequenceGen ()
 139   {
 140     return new SequenceGen ();
 141   } // createSequenceGen
 142 
 143   public com.sun.tools.corba.se.idl.StringGen createStringGen ()
 144   {
 145     return new StringGen ();
 146   } // createSequenceGen
 147 
 148   public com.sun.tools.corba.se.idl.StructGen createStructGen ()
 149   {
 150     return new StructGen ();
 151   } // createStructGen
 152 
 153   public com.sun.tools.corba.se.idl.TypedefGen createTypedefGen ()
 154   {
 155     return new TypedefGen ();
 156   } // createTypedefGen
 157 
 158   public com.sun.tools.corba.se.idl.UnionGen createUnionGen ()
 159   {
 160     return new UnionGen ();
 161   } // createUnionGen
 162 } // class GenFactory