org.omg.CORBA

Class DefinitionKind

Implemented Interfaces:
IDLEntity, Serializable

public class DefinitionKind
extends Object
implements IDLEntity, Serializable

This class indicates the kind of the definition, stored in the interface repository.
See Also:
Serialized Form

Field Summary

static int
_dk_AbstractInterface
Indicates that the current definition defines an abstract interface.
static int
_dk_Alias
Indicates that the current definition defines an alias.
static int
_dk_Array
Indicates that the current definition defines an array.
static int
_dk_Attribute
Indicates that the current definition defines an attribute.
static int
_dk_Constant
Indicates that the current definition defines a constant.
static int
_dk_Enum
Indicates that the current definition defines an enumeration.
static int
_dk_Exception
Indicates that the current definition defines an exception.
static int
_dk_Fixed
Indicates that the current definition defines a CORBA fixed.
static int
_dk_Interface
Indicates that the current definition defines an interface.
static int
_dk_Module
Indicates that the current definition defines a Module.
static int
_dk_Native
Indicates that the current definition defines a Native.
static int
_dk_Operation
Indicates that the current definition defines an operation, including the lists of parameters and exceptions raised by this operation.
static int
_dk_Primitive
Indicates that the current definition defines a primitive type.
static int
_dk_Repository
Indicates that the current definition defines an another interface repository.
static int
_dk_Sequence
Indicates that the current definition defines a sequence.
static int
_dk_String
Indicates that the current definition defines a string.
static int
_dk_Struct
Indicates that the current definition defines a structure.
static int
_dk_Typedef
Indicates that the current definition defines a named type that is not an interface nor a value definition.
static int
_dk_Union
Indicates that the current definition defines a union.
static int
_dk_Value
Indicates that the current definition defines a value.
static int
_dk_ValueBox
Indicates that the current definition defines a value box.
static int
_dk_ValueMember
Indicates that the current definition defines value member.
static int
_dk_Wstring
Indicates that the current definition defines a wide (usually 16-bit per character) string.
static int
_dk_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .
static int
_dk_none
Indicates that the current definition defines has no definition kind.
static DefinitionKind
dk_AbstractInterface
Indicates that the current definition defines .
static DefinitionKind
dk_Alias
Indicates that the current definition defines an alias.
static DefinitionKind
dk_Array
Indicates that the current definition defines an array.
static DefinitionKind
dk_Attribute
Indicates that the current definition defines an attribute.
static DefinitionKind
dk_Constant
Indicates that the current definition defines a constant.
static DefinitionKind
dk_Enum
Indicates that the current definition defines an enumeration.
static DefinitionKind
dk_Exception
Indicates that the current definition defines an exception.
static DefinitionKind
dk_Fixed
Indicates that the current definition defines a CORBA fixed.
static DefinitionKind
dk_Interface
Indicates that the current definition defines an interface.
static DefinitionKind
dk_Module
Indicates that the current definition defines a Module.
static DefinitionKind
dk_Native
Indicates that the current definition defines a Native.
static DefinitionKind
dk_Operation
Indicates that the current definition defines an operation, including the lists of parameters and exceptions raised by this operation.
static DefinitionKind
dk_Primitive
Indicates that the current definition defines a primitive type.
static DefinitionKind
dk_Repository
Indicates that the current definition defines an another interface repository.
static DefinitionKind
dk_Sequence
Indicates that the current definition defines a sequence.
static DefinitionKind
dk_String
Indicates that the current definition defines a string.
static DefinitionKind
dk_Struct
Indicates that the current definition defines a structure.
static DefinitionKind
dk_Typedef
Indicates that the current definition defines a named type that is not an interface nor a value definition.
static DefinitionKind
dk_Union
Indicates that the current definition defines a union.
static DefinitionKind
dk_Value
Indicates that the current definition defines a value.
static DefinitionKind
dk_ValueBox
Indicates that the current definition defines a value box.
static DefinitionKind
dk_ValueMember
Indicates that the current definition defines value member.
static DefinitionKind
dk_Wstring
Indicates that the current definition defines a wide (usually 16-bit per character) string.
static DefinitionKind
dk_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .
static DefinitionKind
dk_none
Indicates that the current definition defines has no definition kind.

Constructor Summary

DefinitionKind(int a_kind)
Creates a definition kind with the given integer definition kind code.

Method Summary

static DefinitionKind
from_int(int a_kind)
Get the definition kind, corresponding the given integer code.
int
value()
Get the definition code of the current instance of the definition kind.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

_dk_AbstractInterface

public static final int _dk_AbstractInterface
Indicates that the current definition defines an abstract interface.
Field Value:
24

_dk_Alias

public static final int _dk_Alias
Indicates that the current definition defines an alias.
Field Value:
9

_dk_Array

public static final int _dk_Array
Indicates that the current definition defines an array.
Field Value:
16

_dk_Attribute

public static final int _dk_Attribute
Indicates that the current definition defines an attribute.
Field Value:
2

_dk_Constant

public static final int _dk_Constant
Indicates that the current definition defines a constant.
Field Value:
3

_dk_Enum

public static final int _dk_Enum
Indicates that the current definition defines an enumeration.
Field Value:
12

_dk_Exception

public static final int _dk_Exception
Indicates that the current definition defines an exception.
Field Value:
4

_dk_Fixed

public static final int _dk_Fixed
Indicates that the current definition defines a CORBA fixed.
Field Value:
19

_dk_Interface

public static final int _dk_Interface
Indicates that the current definition defines an interface. The interface definition can contain constants, types, exceptions, operations, and attributes.
Field Value:
5

_dk_Module

public static final int _dk_Module
Indicates that the current definition defines a Module. The Module can contain constants, typedefs, exceptions and also interface, component, home, value or event type definitions. The module can also enclose other (nested) modules.
Field Value:
6

_dk_Native

public static final int _dk_Native
Indicates that the current definition defines a Native.
Field Value:
23

_dk_Operation

public static final int _dk_Operation
Indicates that the current definition defines an operation, including the lists of parameters and exceptions raised by this operation.
Field Value:
7

_dk_Primitive

public static final int _dk_Primitive
Indicates that the current definition defines a primitive type.
Field Value:
13

_dk_Repository

public static final int _dk_Repository
Indicates that the current definition defines an another interface repository.
Field Value:
17

_dk_Sequence

public static final int _dk_Sequence
Indicates that the current definition defines a sequence.
Field Value:
15

_dk_String

public static final int _dk_String
Indicates that the current definition defines a string.
Field Value:
14

_dk_Struct

public static final int _dk_Struct
Indicates that the current definition defines a structure.
Field Value:
10

_dk_Typedef

public static final int _dk_Typedef
Indicates that the current definition defines a named type that is not an interface nor a value definition. Generally, it also cannot be a definition of component, home and event, but these three kinds are not listed in this class.
Field Value:
8

_dk_Union

public static final int _dk_Union
Indicates that the current definition defines a union.
Field Value:
11

_dk_Value

public static final int _dk_Value
Indicates that the current definition defines a value.
Field Value:
20

_dk_ValueBox

public static final int _dk_ValueBox
Indicates that the current definition defines a value box.
Field Value:
21

_dk_ValueMember

public static final int _dk_ValueMember
Indicates that the current definition defines value member.
Field Value:
22

_dk_Wstring

public static final int _dk_Wstring
Indicates that the current definition defines a wide (usually 16-bit per character) string.
Field Value:
18

_dk_all

public static final int _dk_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .
Field Value:
1

_dk_none

public static final int _dk_none
Indicates that the current definition defines has no definition kind.
Field Value:
0

dk_AbstractInterface

public static final DefinitionKind dk_AbstractInterface
Indicates that the current definition defines .

dk_Alias

public static final DefinitionKind dk_Alias
Indicates that the current definition defines an alias.

dk_Array

public static final DefinitionKind dk_Array
Indicates that the current definition defines an array.

dk_Attribute

public static final DefinitionKind dk_Attribute
Indicates that the current definition defines an attribute.

dk_Constant

public static final DefinitionKind dk_Constant
Indicates that the current definition defines a constant.

dk_Enum

public static final DefinitionKind dk_Enum
Indicates that the current definition defines an enumeration.

dk_Exception

public static final DefinitionKind dk_Exception
Indicates that the current definition defines an exception.

dk_Fixed

public static final DefinitionKind dk_Fixed
Indicates that the current definition defines a CORBA fixed.

dk_Interface

public static final DefinitionKind dk_Interface
Indicates that the current definition defines an interface. The interface definition can contain constants, types, exceptions, operations, and attributes.

dk_Module

public static final DefinitionKind dk_Module
Indicates that the current definition defines a Module. The Module can contain constants, typedefs, exceptions and also interface, component, home, value or event type definitions. The module can also enclose other (nested) modules.

dk_Native

public static final DefinitionKind dk_Native
Indicates that the current definition defines a Native.

dk_Operation

public static final DefinitionKind dk_Operation
Indicates that the current definition defines an operation, including the lists of parameters and exceptions raised by this operation.

dk_Primitive

public static final DefinitionKind dk_Primitive
Indicates that the current definition defines a primitive type.

dk_Repository

public static final DefinitionKind dk_Repository
Indicates that the current definition defines an another interface repository.

dk_Sequence

public static final DefinitionKind dk_Sequence
Indicates that the current definition defines a sequence.

dk_String

public static final DefinitionKind dk_String
Indicates that the current definition defines a string.

dk_Struct

public static final DefinitionKind dk_Struct
Indicates that the current definition defines a structure.

dk_Typedef

public static final DefinitionKind dk_Typedef
Indicates that the current definition defines a named type that is not an interface nor a value definition. Generally, it also cannot be a definition of component, home and event, but these three kinds are not listed in this class.

dk_Union

public static final DefinitionKind dk_Union
Indicates that the current definition defines a union.

dk_Value

public static final DefinitionKind dk_Value
Indicates that the current definition defines a value.

dk_ValueBox

public static final DefinitionKind dk_ValueBox
Indicates that the current definition defines a value box.

dk_ValueMember

public static final DefinitionKind dk_ValueMember
Indicates that the current definition defines value member.

dk_Wstring

public static final DefinitionKind dk_Wstring
Indicates that the current definition defines a wide (usually 16-bit per character) string.

dk_all

public static final DefinitionKind dk_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .

dk_none

public static final DefinitionKind dk_none
Indicates that the current definition defines has no definition kind.

Constructor Details

DefinitionKind

protected DefinitionKind(int a_kind)
Creates a definition kind with the given integer definition kind code.
Parameters:
a_kind - a definition kind code, one of the _dk_.. constants, defined in this class.

Method Details

from_int

public static DefinitionKind from_int(int a_kind)
Get the definition kind, corresponding the given integer code.
Parameters:
a_kind - the definition kind code, one of the _dk_... constants, defined in this class.
Returns:
the corresponding definition kind, one of the dk_... constants, defined in this class.
Throws:
BAD_PARAM - if the given integer does not match any definition kind.

value

public int value()
Get the definition code of the current instance of the definition kind.
Returns:
one of the _dk_... constants, defined in this class.

DefinitionKind.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath 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 for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.