Exemplo n.º 1
0
  /**
   * Sets the current position to index. The current position is indexed 0 to n-1, that is, index
   * zero corresponds to the first component. The operation returns true if the resulting current
   * position indicates a component of the DynAny and false if index indicates a position that does
   * not correspond to a component. Calling seek with a negative index is legal. It sets the current
   * position to -1 to indicate no component and returns false. Passing a non-negative index value
   * for a DynAny that does not have a component at the corresponding position sets the current
   * position to -1 and returns false.
   */
  public boolean seek(int index) {
    org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke("seek", _opsClass);
    DynFixedOperations $self = (DynFixedOperations) $so.servant;

    try {
      return $self.seek(index);
    } finally {
      _servant_postinvoke($so);
    }
  } // seek