1. /*
  2. * @(#)PolicyOperations.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The interface for <tt>Policy</tt>. For more information on
  10. * Operations interfaces, see <a href="doc-files/generatedfiles.html#operations">
  11. * "Generated Files: Operations files"</a>.
  12. *<P>
  13. * org/omg/CORBA/PolicyOperations.java
  14. * Generated by the IDL-to-Java compiler (portable), version "3.0"
  15. * from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
  16. * Saturday, July 17, 1999 12:26:20 AM PDT
  17. */
  18. /**
  19. * Provides the operations for a <code>Policy</code> object.
  20. */
  21. public interface PolicyOperations
  22. {
  23. /**
  24. * Returns the constant value that corresponds to the
  25. * type of the policy object. The values of
  26. * the policy objects are allocated by the OMG.
  27. * New values for PolicyType should be obtained from the OMG by
  28. * sending mail to request@omg.org. In general the constant
  29. * values that are allocated are defined in conjunction with
  30. * the definition of the corresponding policy object.
  31. *
  32. * @return the constant value that corresponds to the type of
  33. * the policy object
  34. */
  35. int policy_type ();
  36. /**
  37. * Returns a copy of the <code>Policy</code> object. The copy does not retain
  38. * any relationships that the policy had with any domain or object.
  39. *
  40. * @return a copy of the <code>Policy</code> object
  41. */
  42. org.omg.CORBA.Policy copy ();
  43. /**
  44. * Destroys the <code>Policy</code> object. It is the responsibility of
  45. * the <code>Policy</code> object to determine whether it can be destroyed.
  46. */
  47. void destroy ();
  48. } // interface PolicyOperations