DefinitionKind.java revision 0
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Copyright 1997-2001 Sun Microsystems, Inc. All Rights Reserved.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * This code is free software; you can redistribute it and/or modify it
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * under the terms of the GNU General Public License version 2 only, as
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * published by the Free Software Foundation. Sun designates this
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * particular file as subject to the "Classpath" exception as provided
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * by Sun in the LICENSE file that accompanied this code.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * This code is distributed in the hope that it will be useful, but WITHOUT
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * version 2 for more details (a copy is included in the LICENSE file that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * accompanied this code).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * You should have received a copy of the GNU General Public License version
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 2 along with this work; if not, write to the Free Software Foundation,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * CA 95054 USA or visit www.sun.com if you need additional information or
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * have any questions.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * From: ./ir.idl
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Date: Fri Aug 28 16:03:31 1998
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* The class that provides the constants used to identify the type of an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* Interface Repository object. This class contains two kinds of constants,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* those that are an <code>int</code> and those that are an instance of the class
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* <code>DefinitionKind</code>. This class provides the method
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* <code>from_int</code>, which given one
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* of the <code>int</code> constants, creates the corresponding
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* <code>DefinitionKind</code> instance. It also provides the method
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* <code>value</code>, which returns the <code>int</code> constant that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* is the value for a <code>DefinitionKind</code> instance.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk* @see IRObject
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkpublic class DefinitionKind implements org.omg.CORBA.portable.IDLEntity {
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * does not have a definition kind.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that the type of an Interface Repository object
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * may be any type.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * attribute.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * exception.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * interface.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * operation.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Primitive.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Repository.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is of type
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is a
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * ValueMember.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object is of type
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The constant that indicates that an Interface Repository object
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * is representing an abstract interface.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object has no definition kind.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_none = new DefinitionKind(_dk_none);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The wildcard <code>DefinitionKind</code> constant, useful
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * in all occasions where any
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * <code>DefinitionKind</code> is appropriate. The Container's
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * <code>contents</code> method
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * makes use of this constant to return all contained definitions of any kind.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_all = new DefinitionKind(_dk_all);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is an Attribute.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Attribute = new DefinitionKind(_dk_Attribute);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is a constant.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Constant = new DefinitionKind(_dk_Constant);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is an Exception.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Exception = new DefinitionKind(_dk_Exception);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is an Interface.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Interface = new DefinitionKind(_dk_Interface);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is a Module.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Module = new DefinitionKind(_dk_Module);
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * The static instance of <code>DefinitionKind</code> indicating that an
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface Repository object is an Operation.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final DefinitionKind dk_Operation = new DefinitionKind(_dk_Operation);
public static final DefinitionKind dk_AbstractInterface = new DefinitionKind(_dk_AbstractInterface);
public int value() {
return _value;
case _dk_none:
return dk_none;
case _dk_all:
return dk_all;
case _dk_Attribute:
return dk_Attribute;
case _dk_Constant:
return dk_Constant;
case _dk_Exception:
return dk_Exception;
case _dk_Interface:
return dk_Interface;
case _dk_Module:
return dk_Module;
case _dk_Operation:
return dk_Operation;
case _dk_Typedef:
return dk_Typedef;
case _dk_Alias:
return dk_Alias;
case _dk_Struct:
return dk_Struct;
case _dk_Union:
return dk_Union;
case _dk_Enum:
return dk_Enum;
case _dk_Primitive:
return dk_Primitive;
case _dk_String:
return dk_String;
case _dk_Sequence:
return dk_Sequence;
case _dk_Array:
return dk_Array;
case _dk_Repository:
return dk_Repository;
case _dk_Wstring:
return dk_Wstring;
case _dk_Fixed:
return dk_Fixed;
case _dk_Value:
return dk_Value;
case _dk_ValueBox:
return dk_ValueBox;
case _dk_ValueMember:
return dk_ValueMember;
case _dk_Native:
return dk_Native;
private int _value;