public static org.omg.DynamicAny.DynUnion unchecked_narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynUnion) return (org.omg.DynamicAny.DynUnion)obj; else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.DynamicAny._DynUnionStub stub = new org.omg.DynamicAny._DynUnionStub (); stub._set_delegate(delegate); return stub; } }
/** * Returns the current discriminator value. */ public org.omg.DynamicAny.DynAny get_discriminator () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_discriminator", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.get_discriminator (); } finally { _servant_postinvoke ($so); } } // get_discriminator
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException { String str = s.readUTF (); String[] args = null; java.util.Properties props = null; org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props); try { org.omg.CORBA.Object obj = orb.string_to_object (str); org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); _set_delegate (delegate); } finally { orb.destroy() ; } }
/** * Is equivalent to seek(0). */ public void rewind () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("rewind", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.rewind (); } finally { _servant_postinvoke ($so); } } // rewind
public static org.omg.DynamicAny.DynUnion narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynUnion) return (org.omg.DynamicAny.DynUnion)obj; else if (!obj._is_a (id ())) throw new org.omg.CORBA.BAD_PARAM (); else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.DynamicAny._DynUnionStub stub = new org.omg.DynamicAny._DynUnionStub (); stub._set_delegate(delegate); return stub; } }
/** * Returns the TCKind value of the discriminators TypeCode. */ public org.omg.CORBA.TCKind discriminator_kind () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("discriminator_kind", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.discriminator_kind (); } finally { _servant_postinvoke ($so); } } // discriminator_kind
/** * Returns the TCKind value of the currently active members TypeCode. * * @exception InvalidValue if the union does not have a currently active member */ public org.omg.CORBA.TCKind member_kind () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("member_kind", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.member_kind (); } finally { _servant_postinvoke ($so); } } // member_kind
/** * Sets the discriminator to a value that is consistent with the value of the default case of a union. * It sets the current position to zero and causes component_count to return 2. * * @exception TypeMismatch if the union does not have an explicit default case */ public void set_to_default_member () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_to_default_member", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.set_to_default_member (); } finally { _servant_postinvoke ($so); } } // set_to_default_member
/** * Inserts a short value into the DynAny. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_short (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_short", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_short (value); } finally { _servant_postinvoke ($so); } } // insert_short
/** * Inserts a float value into the DynAny. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_float (float value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_float", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_float (value); } finally { _servant_postinvoke ($so); } } // insert_float
/** * Inserts a char value into the DynAny. The IDL wchar data type is mapped to the Java char data type. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_wchar (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_wchar", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_wchar (value); } finally { _servant_postinvoke ($so); } } // insert_wchar
/** * Inserts a long value into the DynAny. * The IDL unsigned long long data type is mapped to the Java long data type. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_ulonglong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ulonglong", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_ulonglong (value); } finally { _servant_postinvoke ($so); } } // insert_ulonglong
/** * Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_octet (byte value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_octet", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_octet (value); } finally { _servant_postinvoke ($so); } } // insert_octet
/** * Inserts a char value into the DynAny. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_char (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_char", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_char (value); } finally { _servant_postinvoke ($so); } } // insert_char
/** * Inserts an integer value into the DynAny. The IDL ulong data type is mapped to the Java int data type. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ulong", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_ulong (value); } finally { _servant_postinvoke ($so); } } // insert_ulong
/** * Inserts a reference to a CORBA object into the DynAny. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_reference (org.omg.CORBA.Object value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_reference", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_reference (value); } finally { _servant_postinvoke ($so); } } // insert_reference
/** * Advances the current position to the next component. * The operation returns true while the resulting current position indicates a component, false otherwise. * A false return value leaves the current position at -1. * Invoking next on a DynAny without components leaves the current position at -1 and returns false. */ public boolean next () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("next", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.next (); } finally { _servant_postinvoke ($so); } } // next
/** * Returns the currently active member. Note that the returned reference remains valid only * for as long as the currently active member does not change. Using the returned reference * beyond the life time of the currently active member raises OBJECT_NOT_EXIST. * * @exception InvalidValue if the union has no active member */ public org.omg.DynamicAny.DynAny member () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("member", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.member (); } finally { _servant_postinvoke ($so); } } // member
/** * Inserts a reference to a Serializable object into this DynAny. * The IDL ValueBase type is mapped to the Java Serializable type. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_val (java.io.Serializable value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_val", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { $self.insert_val (value); } finally { _servant_postinvoke ($so); } } // insert_val
/** * Extracts the char value from this DynAny. * * @exception TypeMismatch if the accessed component in the DynAny is of a type * that is not equivalent to the requested type. * @exception TypeMismatch if called on a DynAny whose current component itself has components * @exception InvalidValue if this DynAny has components but has a current position of -1 */ public char get_char () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_char", _opsClass); DynUnionOperations $self = (DynUnionOperations) $so.servant; try { return $self.get_char (); } finally { _servant_postinvoke ($so); } } // get_char