Exemplo n.º 1
0
  /**
   * 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