org.omg.CORBA

Class DefinitionKind

public class DefinitionKind extends Object implements IDLEntity, Serializable

This class indicates the kind of the definition, stored in the interface repository.
Field Summary
static DefinitionKinddk_AbstractInterface
Indicates that the current definition defines .
static DefinitionKinddk_Alias
Indicates that the current definition defines an alias.
static DefinitionKinddk_Array
Indicates that the current definition defines an array.
static DefinitionKinddk_Attribute
Indicates that the current definition defines an attribute.
static DefinitionKinddk_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .
static DefinitionKinddk_Constant
Indicates that the current definition defines a constant.
static DefinitionKinddk_Enum
Indicates that the current definition defines an enumeration.
static DefinitionKinddk_Exception
Indicates that the current definition defines an exception.
static DefinitionKinddk_Fixed
Indicates that the current definition defines a CORBA fixed.
static DefinitionKinddk_Interface
Indicates that the current definition defines an interface.
static DefinitionKinddk_Module
Indicates that the current definition defines a Module.
static DefinitionKinddk_none
Indicates that the current definition defines has no definition kind.
static DefinitionKinddk_Native
Indicates that the current definition defines a Native.
static DefinitionKinddk_Operation
Indicates that the current definition defines an operation, including the lists of parameters and exceptions raised by this operation.
static DefinitionKinddk_Primitive
Indicates that the current definition defines a primitive type.
static DefinitionKinddk_Repository
Indicates that the current definition defines an another interface repository.
static DefinitionKinddk_Sequence
Indicates that the current definition defines a sequence.
static DefinitionKinddk_String
Indicates that the current definition defines a string.
static DefinitionKinddk_Struct
Indicates that the current definition defines a structure.
static DefinitionKinddk_Typedef
Indicates that the current definition defines a named type that is not an interface nor a value definition.
static DefinitionKinddk_Union
Indicates that the current definition defines a union.
static DefinitionKinddk_Value
Indicates that the current definition defines a value.
static DefinitionKinddk_ValueBox
Indicates that the current definition defines a value box.
static DefinitionKinddk_ValueMember
Indicates that the current definition defines value member.
static DefinitionKinddk_Wstring
Indicates that the current definition defines a wide (usually 16-bit per character) string.
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_all
This is a "wildcard '*'", used in cases where any definition kind is appropriate .
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_none
Indicates that the current definition defines has no definition kind.
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.
Constructor Summary
protected DefinitionKind(int a_kind)
Creates a definition kind with the given integer definition kind code.
Method Summary
static DefinitionKindfrom_int(int a_kind)
Get the definition kind, corresponding the given integer code.
intvalue()
Get the definition code of the current instance of the definition kind.

Field Detail

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_all

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

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_none

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

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_AbstractInterface

public static final int _dk_AbstractInterface
Indicates that the current definition defines an abstract interface.

_dk_Alias

public static final int _dk_Alias
Indicates that the current definition defines an alias.

_dk_Array

public static final int _dk_Array
Indicates that the current definition defines an array.

_dk_Attribute

public static final int _dk_Attribute
Indicates that the current definition defines an attribute.

_dk_all

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

_dk_Constant

public static final int _dk_Constant
Indicates that the current definition defines a constant.

_dk_Enum

public static final int _dk_Enum
Indicates that the current definition defines an enumeration.

_dk_Exception

public static final int _dk_Exception
Indicates that the current definition defines an exception.

_dk_Fixed

public static final int _dk_Fixed
Indicates that the current definition defines a CORBA fixed.

_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.

_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.

_dk_none

public static final int _dk_none
Indicates that the current definition defines has no definition kind.

_dk_Native

public static final int _dk_Native
Indicates that the current definition defines a Native.

_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.

_dk_Primitive

public static final int _dk_Primitive
Indicates that the current definition defines a primitive type.

_dk_Repository

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

_dk_Sequence

public static final int _dk_Sequence
Indicates that the current definition defines a sequence.

_dk_String

public static final int _dk_String
Indicates that the current definition defines a string.

_dk_Struct

public static final int _dk_Struct
Indicates that the current definition defines a structure.

_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.

_dk_Union

public static final int _dk_Union
Indicates that the current definition defines a union.

_dk_Value

public static final int _dk_Value
Indicates that the current definition defines a value.

_dk_ValueBox

public static final int _dk_ValueBox
Indicates that the current definition defines a value box.

_dk_ValueMember

public static final int _dk_ValueMember
Indicates that the current definition defines value member.

_dk_Wstring

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

Constructor Detail

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 Detail

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.