/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* File: ./org/omg/CORBA/DefinitionKind.java
* From: ./ir.idl
* Date: Fri Aug 28 16:03:31 1998
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
*/
/**
* The class that provides the constants used to identify the type of an
* Interface Repository object. This class contains two kinds of constants,
* those that are an <code>int</code> and those that are an instance of the class
* <code>DefinitionKind</code>. This class provides the method
* <code>from_int</code>, which given one
* of the <code>int</code> constants, creates the corresponding
* <code>DefinitionKind</code> instance. It also provides the method
* <code>value</code>, which returns the <code>int</code> constant that
* is the value for a <code>DefinitionKind</code> instance.
*
* @see IRObject
*/
/**
* The constant that indicates that an Interface Repository object
* does not have a definition kind.
*/
/**
* The constant that indicates that the type of an Interface Repository object
* may be any type.
*/
/**
* The constant that indicates that an Interface Repository object is an
* attribute.
*/
/**
* The constant that indicates that an Interface Repository object is a
* constant.
*/
/**
* The constant that indicates that an Interface Repository object is an
* exception.
*/
/**
* The constant that indicates that an Interface Repository object is an
* interface.
*/
/**
* The constant that indicates that an Interface Repository object is a
* module.
*/
/**
* The constant that indicates that an Interface Repository object is an
* operation.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Typedef.
*/
/**
* The constant that indicates that an Interface Repository object is an
* Alias.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Struct.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Union.
*/
/**
* The constant that indicates that an Interface Repository object is an
* Enum.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Primitive.
*/
/**
* The constant that indicates that an Interface Repository object is a
* String.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Sequence.
*/
/**
* The constant that indicates that an Interface Repository object is an
* Array.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Repository.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Wstring.
*/
/**
* The constant that indicates that an Interface Repository object is of type
* Fixed.
*/
/**
* The constant that indicates that an Interface Repository object is a
* Value.
*/
/**
* The constant that indicates that an Interface Repository object is a
* ValueBox.
*/
/**
* The constant that indicates that an Interface Repository object is a
* ValueMember.
*/
/**
* The constant that indicates that an Interface Repository object is of type
* Native.
*/
/**
* The constant that indicates that an Interface Repository object
* is representing an abstract interface.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object has no definition kind.
*/
/**
* The wildcard <code>DefinitionKind</code> constant, useful
* in all occasions where any
* <code>DefinitionKind</code> is appropriate. The Container's
* <code>contents</code> method
* makes use of this constant to return all contained definitions of any kind.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Attribute.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a constant.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Exception.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Interface.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Module.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Operation.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Typedef.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Alias.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Struct.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Union.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Enum.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Primitive.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a String.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Sequence.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is an Array.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Repository.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Wstring.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Fixed value.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Value.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a ValueBox.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a ValueMember.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object is a Native value.
*/
/**
* The static instance of <code>DefinitionKind</code> indicating that an
* Interface Repository object represents an abstract interface.
*/
public static final DefinitionKind dk_AbstractInterface = new DefinitionKind(_dk_AbstractInterface);
/**
* Returns the <code>int</code> constant identifying the type of an IR object.
* @return the <code>int</code> constant from the class
* <code>DefinitionKind</code> that is the value of this
* <code>DefinitionKind</code> instance
*/
public int value() {
return _value;
}
/**
* Creates a <code>DefinitionKind</code> instance corresponding to the given code
.
* @param i one of the <code>int</code> constants from the class
* <code>DefinitionKind</code>
* @return the <code>DefinitionKind</code> instance corresponding
* to the given code
* @throws org.omg.CORBA.BAD_PARAM if the given parameter is not
one
* of the <code>int</code> constants from the class
* <code>DefinitionKind</code>
*/
switch (i) {
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;
default:
}
}
/**
* Constructs a <code>DefinitionKind</code> object with its <code>_value</code>
* field initialized with the given value.
* @param _value one of the <code>int</code> constants defined in the
* class <code>DefinitionKind</code>
*/
}
/**
* The field that holds a value for a <code>DefinitionKind</code> object.
* @serial
*/
private int _value;
}