/** {@inheritDoc} */ public Object get_reference() throws TypeMismatch { try { return ((ObjectHolder) holder).value; } catch (ClassCastException cex) { TypeMismatch m = new TypeMismatch(); m.initCause(cex); throw m; } }
/** {@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; } }
/** * 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; } }
/** * Inserts the CORBA object. */ public void insert_Object(org.omg.CORBA.Object x) { has = new ObjectHolder(x); }
/** * 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); }