public static org.omg.DynamicAny.DynFixed unchecked_narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynFixed) return (org.omg.DynamicAny.DynFixed)obj; else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.DynamicAny._DynFixedStub stub = new org.omg.DynamicAny._DynFixedStub (); stub._set_delegate(delegate); return stub; } }
/** * Returns the value of a DynFixed. */ public String get_value () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("get_value", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { return $self.get_value (); } finally { _servant_postinvoke ($so); } } // get_value
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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.rewind (); } finally { _servant_postinvoke ($so); } } // rewind
public static org.omg.DynamicAny.DynFixed narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.DynamicAny.DynFixed) return (org.omg.DynamicAny.DynFixed)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._DynFixedStub stub = new org.omg.DynamicAny._DynFixedStub (); stub._set_delegate(delegate); return stub; } }
/** * Inserts a boolean 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_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_boolean", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_boolean (value); } finally { _servant_postinvoke ($so); } } // insert_boolean
/** * Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short 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_ushort (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_ushort", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_ushort (value); } finally { _servant_postinvoke ($so); } } // insert_ushort
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { return $self.next (); } finally { _servant_postinvoke ($so); } } // next
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_long (value); } finally { _servant_postinvoke ($so); } } // insert_long
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_longlong (value); } finally { _servant_postinvoke ($so); } } // insert_longlong
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_any (value); } finally { _servant_postinvoke ($so); } } // insert_any
/** * Creates an any value from a DynAny object. * A copy of the TypeCode associated with the DynAny object is assigned to the resulting any. * The value associated with the DynAny object is copied into the any. * * @return a new Any object with the same value and TypeCode */ public org.omg.CORBA.Any to_any () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("to_any", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { return $self.to_any (); } finally { _servant_postinvoke ($so); } } // to_any
/** * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked. * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny, * such as DynStruct, creates the derived type but returns its reference as the DynAny base type. * * @return a deep copy of the DynAny object */ public org.omg.DynamicAny.DynAny copy () { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("copy", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { return $self.copy (); } finally { _servant_postinvoke ($so); } } // copy
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_short (value); } finally { _servant_postinvoke ($so); } } // insert_short
/** * Inserts a string value into the DynAny. * Both bounded and unbounded strings are inserted using this method. * * @exception InvalidValue if this DynAny has components but has a current position of -1 * @exception InvalidValue if the string inserted is longer than the bound of a bounded string * @exception TypeMismatch if called on a DynAny whose current component itself has components */ public void insert_string (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("insert_string", _opsClass); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_string (value); } finally { _servant_postinvoke ($so); } } // insert_string
/** * 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); DynFixedOperations $self = (DynFixedOperations) $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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_char (value); } finally { _servant_postinvoke ($so); } } // insert_char
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_float (value); } finally { _servant_postinvoke ($so); } } // insert_float
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_typecode (value); } finally { _servant_postinvoke ($so); } } // insert_typecode
/** * 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); DynFixedOperations $self = (DynFixedOperations) $so.servant; try { $self.insert_wchar (value); } finally { _servant_postinvoke ($so); } } // insert_wchar