org.omg.CORBA
Class DefinitionKind

java.lang.Object
  extended by org.omg.CORBA.DefinitionKind
All Implemented Interfaces:
Serializable, IDLEntity

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_all
          This is a "wildcard '*'", used in cases where any definition kind is appropriate .
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_none
          Indicates that the current definition defines has no definition kind.
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 DefinitionKind dk_AbstractInterface
          Indicates that the current definition defines .
static DefinitionKind dk_Alias
          Indicates that the current definition defines an alias.
static DefinitionKind dk_all
          This is a "wildcard '*'", used in cases where any definition kind is appropriate .
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_none
          Indicates that the current definition defines has no definition kind.
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.
 
Constructor Summary
protected 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dk_none

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

See Also:
Constant Field Values

_dk_all

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

See Also:
Constant Field Values

_dk_Attribute

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

See Also:
Constant Field Values

_dk_Constant

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

See Also:
Constant Field Values

_dk_Exception

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

See Also:
Constant Field Values

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

See Also:
Constant Field Values

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

See Also:
Constant Field Values

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

See Also:
Constant Field Values

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

See Also:
Constant Field Values

_dk_Alias

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

See Also:
Constant Field Values

_dk_Struct

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

See Also:
Constant Field Values

_dk_Union

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

See Also:
Constant Field Values

_dk_Enum

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

See Also:
Constant Field Values

_dk_Primitive

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

See Also:
Constant Field Values

_dk_String

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

See Also:
Constant Field Values

_dk_Sequence

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

See Also:
Constant Field Values

_dk_Array

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

See Also:
Constant Field Values

_dk_Repository

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

See Also:
Constant Field Values

_dk_Wstring

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

See Also:
Constant Field Values

_dk_Fixed

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

See Also:
Constant Field Values

_dk_Value

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

See Also:
Constant Field Values

_dk_ValueBox

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

See Also:
Constant Field Values

_dk_ValueMember

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

See Also:
Constant Field Values

_dk_Native

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

See Also:
Constant Field Values

_dk_AbstractInterface

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

See Also:
Constant Field Values

dk_none

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


dk_all

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


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_Exception

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


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

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


dk_Struct

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


dk_Union

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


dk_Enum

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


dk_Primitive

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


dk_String

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


dk_Sequence

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


dk_Array

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


dk_Repository

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


dk_Wstring

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


dk_Fixed

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


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_Native

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


dk_AbstractInterface

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

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

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.

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.