public static org.omg.DynamicAny.DynValue unchecked_narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynValue) return (org.omg.DynamicAny.DynValue)obj; else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.DynamicAny._DynValueStub stub = new org.omg.DynamicAny._DynValueStub (); stub._set_delegate(delegate); return stub; } }
/** * Returns true if the DynValueCommon represents a null value type. */ public boolean is_null () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("is_null", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.is_null (); } finally { _servant_postinvoke ($so); } } // is_null
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); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.rewind (); } finally { _servant_postinvoke ($so); } } // rewind
public static org.omg.DynamicAny.DynValue narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynValue) return (org.omg.DynamicAny.DynValue)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._DynValueStub stub = new org.omg.DynamicAny._DynValueStub (); stub._set_delegate(delegate); return stub; } }
/** * Changes the representation of a DynValueCommon to a null value type. */ public void set_to_null () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_to_null", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.set_to_null (); } finally { _servant_postinvoke ($so); } } // set_to_null
/** * Returns the TCKind associated with the member at the current position. * * @exception TypeMismatch if the DynValue represents a null value type. * @exception InvalidValue if the current position does not indicate a member */ public org.omg.CORBA.TCKind current_member_kind () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("current_member_kind", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.current_member_kind (); } finally { _servant_postinvoke ($so); } } // current_member_kind
/** * Inserts a TypeCode 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_typecode (org.omg.CORBA.TypeCode value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_typecode", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_typecode (value); } finally { _servant_postinvoke ($so); } } // insert_typecode
/** * Inserts a long value into the DynAny. The IDL 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_longlong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_longlong", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_longlong (value); } finally { _servant_postinvoke ($so); } } // insert_longlong
/** * Replaces a null value type with a newly constructed value. Its components are initialized * to default values as in DynAnyFactory.create_dyn_any_from_type_code. * If the DynValueCommon represents a non-null value type, then this operation has no effect. */ public void set_to_value () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("set_to_value", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.set_to_value (); } finally { _servant_postinvoke ($so); } } // set_to_value
/** * 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); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_short (value); } finally { _servant_postinvoke ($so); } } // insert_short
/** * Inserts an Any value into the Any represented by this 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_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_any", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_any (value); } finally { _servant_postinvoke ($so); } } // insert_any
/** * Inserts an integer value into the DynAny. The IDL long 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_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_long", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_long (value); } finally { _servant_postinvoke ($so); } } // insert_long
/** * 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); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_ulong (value); } finally { _servant_postinvoke ($so); } } // insert_ulong
/** * Inserts a double 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_double (double value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_double", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_double (value); } finally { _servant_postinvoke ($so); } } // insert_double
/** * 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); DynValueOperations $self = (DynValueOperations) $so.servant; try { $self.insert_wchar (value); } finally { _servant_postinvoke ($so); } } // insert_wchar
/** * Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int data type. * * @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 int get_long () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_long", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.get_long (); } finally { _servant_postinvoke ($so); } } // get_long
/** * Extracts the integer value from this DynAny. The IDL ulong data type is mapped to the Java int data type. * * @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 int get_ulong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_ulong", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.get_ulong (); } finally { _servant_postinvoke ($so); } } // get_ulong
/** * Extracts the reference to a CORBA Object 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 org.omg.CORBA.Object get_reference () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_reference", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.get_reference (); } finally { _servant_postinvoke ($so); } } // get_reference
/** * Extracts an Any value contained in the Any represented by 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 org.omg.CORBA.Any get_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_any", _opsClass); DynValueOperations $self = (DynValueOperations) $so.servant; try { return $self.get_any (); } finally { _servant_postinvoke ($so); } } // get_any