0N/A/*
157N/A * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
157N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
157N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
157N/A * or visit www.oracle.com if you need additional information or have any
157N/A * questions.
0N/A */
0N/A/*
0N/A * COMPONENT_NAME: idl.toJava
0N/A *
0N/A * ORIGINS: 27
0N/A *
0N/A * Licensed Materials - Property of IBM
0N/A * 5639-D57 (C) COPYRIGHT International Business Machines Corp. 1997, 1999
0N/A * RMI-IIOP v1.0
0N/A *
0N/A */
0N/A
0N/Apackage com.sun.tools.corba.se.idl.toJavaPortable;
0N/A
0N/A// NOTES:
0N/A// -D62023<klr> Add corbaLevel=2.4
0N/A
0N/A/**
0N/A *
0N/A **/
0N/Apublic class Factories extends com.sun.tools.corba.se.idl.Factories
0N/A{
0N/A public com.sun.tools.corba.se.idl.GenFactory genFactory ()
0N/A {
0N/A return new GenFactory ();
0N/A } // genFactory
0N/A
0N/A public com.sun.tools.corba.se.idl.Arguments arguments ()
0N/A {
0N/A return new Arguments ();
0N/A } // arguments
0N/A
0N/A public String[] languageKeywords ()
0N/A {
0N/A // These are Java keywords that are not also IDL keywords.
0N/A return keywords;
0N/A } // languageKeywords
0N/A
0N/A static String[] keywords =
0N/A {"abstract", "break", "byte",
0N/A "catch", "class", "continue",
0N/A "do", "else", "extends",
0N/A "false", "final", "finally",
0N/A "for", "goto", "if",
0N/A "implements", "import", "instanceof",
0N/A "int", "interface", "native",
0N/A "new", "null", "operator",
0N/A "outer", "package", "private",
0N/A "protected", "public", "return",
0N/A "static", "super", "synchronized",
0N/A "this", "throw", "throws",
0N/A "transient", "true", "try",
0N/A "volatile", "while",
0N/A// Special reserved suffixes:
0N/A "+Helper", "+Holder", "+Package",
0N/A// These following are not strictly keywords. They
0N/A// are methods on java.lang.Object and, as such, must
0N/A// not have conflicts with methods defined on IDL
0N/A// interfaces. Treat them the same as keywords.
0N/A "clone", "equals", "finalize",
0N/A "getClass", "hashCode", "notify",
0N/A "notifyAll", "toString", "wait"};
0N/A
0N/A ///////////////
0N/A // toJava-specific factory methods
0N/A
0N/A private Helper _helper = null; // <62023>
0N/A public Helper helper ()
0N/A {
0N/A if (_helper == null)
0N/A if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
0N/A _helper = new Helper24 (); // <d60023>
0N/A else
0N/A _helper = new Helper ();
0N/A return _helper;
0N/A } // helper
0N/A
0N/A private ValueFactory _valueFactory = null; // <62023>
0N/A public ValueFactory valueFactory ()
0N/A {
0N/A if (_valueFactory == null)
0N/A if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
0N/A _valueFactory = new ValueFactory (); // <d60023>
0N/A // else return null since shouldn't be used
0N/A return _valueFactory;
0N/A } // valueFactory
0N/A
0N/A private DefaultFactory _defaultFactory = null; // <62023>
0N/A public DefaultFactory defaultFactory ()
0N/A {
0N/A if (_defaultFactory == null)
0N/A if (Util.corbaLevel (2.4f, 99.0f)) // <d60023>
0N/A _defaultFactory = new DefaultFactory (); // <d60023>
0N/A // else return null since shouldn't be used
0N/A return _defaultFactory;
0N/A } // defaultFactory
0N/A
0N/A private Holder _holder = new Holder ();
0N/A public Holder holder ()
0N/A {
0N/A return _holder;
0N/A } // holder
0N/A
0N/A private Skeleton _skeleton = new Skeleton ();
0N/A public Skeleton skeleton ()
0N/A {
0N/A return _skeleton;
0N/A } // skeleton
0N/A
0N/A private Stub _stub = new Stub ();
0N/A public Stub stub ()
0N/A {
0N/A return _stub;
0N/A } // stub
0N/A
0N/A // toJava-specific factory methods
0N/A ///////////////
0N/A} // class Factories