org.omg.CosNaming

Class BindingType

public class BindingType extends Object implements IDLEntity

Specifies the binding type (how the binding has been created).
Field Summary
static BindingTypencontext
This constant means that the binding has been created with operations bind_context, rebind_context or bind_new_context.
static BindingTypenobject
This constant means that the binding has been created by the means, different from the listed in {@link #_ncontext} description.
static int_ncontext
This constant means that the binding has been created with operations bind_context, rebind_context or bind_new_context.
static int_nobject
This constant means that the binding has been created by the means, different from the listed in {@link #_ncontext} description.
Constructor Summary
protected BindingType(int value)
Create the new binding type definition.
Method Summary
static BindingTypefrom_int(int value)
Get the binding type instance, matching its integer code.
intvalue()
Return the integer code for this binding.

Field Detail

ncontext

public static final BindingType ncontext
This constant means that the binding has been created with operations bind_context, rebind_context or bind_new_context.

nobject

public static final BindingType nobject
This constant means that the binding has been created by the means, different from the listed in {@link #_ncontext} description.

_ncontext

public static final int _ncontext
This constant means that the binding has been created with operations bind_context, rebind_context or bind_new_context.

_nobject

public static final int _nobject
This constant means that the binding has been created by the means, different from the listed in {@link #_ncontext} description.

Constructor Detail

BindingType

protected BindingType(int value)
Create the new binding type definition.

Parameters: value the binding type, normally either _nobject or _ncontext.

Method Detail

from_int

public static BindingType from_int(int value)
Get the binding type instance, matching its integer code.

Parameters: value the binding type code.

Returns: the matching binding type instance.

Throws: BAD_PARAM if there is no matching binding type for the passed value.

value

public int value()
Return the integer code for this binding.