1. /*
  2. * @(#)Operation.java 1.13 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi.server;
  11. /**
  12. * An <code>Operation</code> contains a description of a Java method.
  13. * <code>Operation</code> objects were used in JDK1.1 version stubs and
  14. * skeletons. The <code>Operation</code> class is not needed for 1.2 style
  15. * stubs (stubs generated with <code>rmic -v1.2</code>); hence, this class
  16. * is deprecated.
  17. *
  18. * @version 1.13, 02/02/00
  19. * @since JDK1.1
  20. * @deprecated no replacement
  21. */
  22. public class Operation {
  23. private String operation;
  24. /**
  25. * Creates a new Operation object.
  26. * @param op method name
  27. * @deprecated no replacement
  28. * @since JDK1.1
  29. */
  30. public Operation(String op) {
  31. operation = op;
  32. }
  33. /**
  34. * Returns the name of the method.
  35. * @return method name
  36. * @deprecated no replacement
  37. * @since JDK1.1
  38. */
  39. public String getOperation() {
  40. return operation;
  41. }
  42. /**
  43. * Returns the string representation of the operation.
  44. * @deprecated no replacement
  45. * @since JDK1.1
  46. */
  47. public String toString() {
  48. return operation;
  49. }
  50. }