Java Code Examples for org.omg.CORBA.ObjectHolder

The following are top voted examples for showing how to use org.omg.CORBA.ObjectHolder. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public Object get_reference() throws TypeMismatch
{
  try
    {
      return ((ObjectHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 2
Project: javify   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_reference(Object a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((ObjectHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 3
Project: javify   File: gnuAny.java   View source code 5 votes vote down vote up
/**
 * Extract the previously stored object.
 */
public org.omg.CORBA.Object extract_Object()
{
  try
    {
      return ((ObjectHolder) has).value;
    }
  catch (ClassCastException ex)
    {
      BAD_OPERATION bad = new BAD_OPERATION();
      bad.initCause(ex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 
Example 4
Project: jvm-stm   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public Object get_reference() throws TypeMismatch
{
  try
    {
      return ((ObjectHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 5
Project: jvm-stm   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_reference(Object a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((ObjectHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 6
Project: jvm-stm   File: gnuAny.java   View source code 5 votes vote down vote up
/**
 * Extract the previously stored object.
 */
public org.omg.CORBA.Object extract_Object()
{
  try
    {
      return ((ObjectHolder) has).value;
    }
  catch (ClassCastException ex)
    {
      BAD_OPERATION bad = new BAD_OPERATION();
      bad.initCause(ex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 
Example 7
Project: JamVM-PH   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public Object get_reference() throws TypeMismatch
{
  try
    {
      return ((ObjectHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 8
Project: JamVM-PH   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_reference(Object a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((ObjectHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 9
Project: JamVM-PH   File: gnuAny.java   View source code 5 votes vote down vote up
/**
 * Extract the previously stored object.
 */
public org.omg.CORBA.Object extract_Object()
{
  try
    {
      return ((ObjectHolder) has).value;
    }
  catch (ClassCastException ex)
    {
      BAD_OPERATION bad = new BAD_OPERATION();
      bad.initCause(ex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 
Example 10
Project: classpath   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public Object get_reference() throws TypeMismatch
{
  try
    {
      return ((ObjectHolder) holder).value;
    }
  catch (ClassCastException cex)
    {
      TypeMismatch m = new TypeMismatch();
      m.initCause(cex);
      throw m;
    }
}
 
Example 11
Project: classpath   File: gnuDynAny.java   View source code 5 votes vote down vote up
/** {@inheritDoc} */
public void insert_reference(Object a_x) throws InvalidValue, TypeMismatch
{
  try
    {
      ((ObjectHolder) holder).value = a_x;
      valueChanged();
    }
  catch (ClassCastException cex)
    {
      TypeMismatch t = new TypeMismatch();
      t.initCause(cex);
      throw t;
    }
}
 
Example 12
Project: classpath   File: gnuAny.java   View source code 5 votes vote down vote up
/**
 * Extract the previously stored object.
 */
public org.omg.CORBA.Object extract_Object()
{
  try
    {
      return ((ObjectHolder) has).value;
    }
  catch (ClassCastException ex)
    {
      BAD_OPERATION bad = new BAD_OPERATION();
      bad.initCause(ex);
      bad.minor = Minor.Any;
      throw bad;
    }
}
 
Example 13
Project: classpath   File: gnuAny.java   View source code 5 votes vote down vote up
/**
 * Inserts the CORBA object.
 */
public void insert_Object(org.omg.CORBA.Object x)
{
  has = new ObjectHolder(x);
}
 
Example 14
Project: javify   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object and sets the typecode to the given type.
 */
public void insert_Object(org.omg.CORBA.Object x, TypeCode typecode)
{
  has = new ObjectHolder(x);
  type(typecode);
}
 
Example 15
Project: javify   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object.
 */
public void insert_Object(org.omg.CORBA.Object x)
{
  has = new ObjectHolder(x);
}
 
Example 16
Project: jvm-stm   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object and sets the typecode to the given type.
 */
public void insert_Object(org.omg.CORBA.Object x, TypeCode typecode)
{
  has = new ObjectHolder(x);
  type(typecode);
}
 
Example 17
Project: jvm-stm   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object.
 */
public void insert_Object(org.omg.CORBA.Object x)
{
  has = new ObjectHolder(x);
}
 
Example 18
Project: JamVM-PH   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object and sets the typecode to the given type.
 */
public void insert_Object(org.omg.CORBA.Object x, TypeCode typecode)
{
  has = new ObjectHolder(x);
  type(typecode);
}
 
Example 19
Project: JamVM-PH   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object.
 */
public void insert_Object(org.omg.CORBA.Object x)
{
  has = new ObjectHolder(x);
}
 
Example 20
Project: classpath   File: gnuAny.java   View source code 4 votes vote down vote up
/**
 * Inserts the CORBA object and sets the typecode to the given type.
 */
public void insert_Object(org.omg.CORBA.Object x, TypeCode typecode)
{
  has = new ObjectHolder(x);
  type(typecode);
}