org.omg.CosNaming
Class BindingType

java.lang.Object
  extended by org.omg.CosNaming.BindingType
All Implemented Interfaces:
Serializable, IDLEntity

public class BindingType
extends Object
implements IDLEntity

Specifies the binding type (how the binding has been created).

See Also:
Serialized Form

Field Summary
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 _ncontext description.
static BindingType ncontext
          This constant means that the binding has been created with operations bind_context, rebind_context or bind_new_context.
static BindingType nobject
          This constant means that the binding has been created by the means, different from the listed in _ncontext description.
 
Constructor Summary
protected BindingType(int value)
          Create the new binding type definition.
 
Method Summary
static BindingType from_int(int value)
          Get the binding type instance, matching its integer code.
 int value()
          Return the integer code for this binding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

See Also:
Constant Field Values

_nobject

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

See Also:
Constant Field Values

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