org.omg.CosNaming
Class BindingIteratorHelper

java.lang.Object
  extended by org.omg.CosNaming.BindingIteratorHelper

public abstract class BindingIteratorHelper
extends Object

The helper operations for BindingIterator


Constructor Summary
BindingIteratorHelper()
           
 
Method Summary
static BindingIterator extract(Any a)
          Extract the binding iterator from the given Any.
static String id()
          Return the binding iterator repository id.
static void insert(Any a, BindingIterator that)
          Insert the binding iterator into the given Any.
static BindingIterator narrow(Object obj)
          Narrow the given object to the BindingIterator.
static BindingIterator read(InputStream istream)
          Read the exception from the given CDR stream.
static TypeCode type()
          Create the type code for the BindingIterator.
static BindingIterator unchecked_narrow(Object obj)
          Narrow the given object to the BindingIterator.
static void write(OutputStream ostream, BindingIterator value)
          Write the exception to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingIteratorHelper

public BindingIteratorHelper()
Method Detail

extract

public static BindingIterator extract(Any a)
Extract the binding iterator from the given Any.


id

public static String id()
Return the binding iterator repository id.


insert

public static void insert(Any a,
                          BindingIterator that)
Insert the binding iterator into the given Any.


narrow

public static BindingIterator narrow(Object obj)
Narrow the given object to the BindingIterator. The narrowing means either direct casting or re-instantiating with the same delegate.

Parameters:
obj - the object to cast.
Returns:
the casted binding iterator.

unchecked_narrow

public static BindingIterator unchecked_narrow(Object obj)
Narrow the given object to the BindingIterator. No type-checking is performed to verify that the object actually supports the requested type. The BAD_OPERATION will be thrown if unsupported operations are invoked on the new returned reference, but no failure is expected at the time of the unchecked_narrow. See OMG issue 4158.

Parameters:
obj - the object to cast.
Returns:
the casted binding iterator.
Since:
1.5

read

public static BindingIterator read(InputStream istream)
Read the exception from the given CDR stream.


type

public static TypeCode type()
Create the type code for the BindingIterator.


write

public static void write(OutputStream ostream,
                         BindingIterator value)
Write the exception to the CDR output stream.