Exemplo n.º 1
0
  /**
   * Initializes the value associated with a DynAny object with the value contained in an any. The
   * current position of the target DynAny is set to zero for values that have components and to -1
   * for values that do not have components.
   *
   * @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target
   *     DynAny
   * @exception InvalidValue if the passed Any does not contain a legal value (such as a null
   *     string)
   */
  public void from_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("from_any", _opsClass);
    DynFixedOperations $self = (DynFixedOperations) $so.servant;

    try {
      $self.from_any(value);
    } finally {
      _servant_postinvoke($so);
    }
  } // from_any