1. /*
  2. * @(#)IRObjectOperations.java 1.7 00/02/02
  3. *
  4. * Copyright 1999, 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 org.omg.CORBA;
  11. /*
  12. tempout/org/omg/CORBA/IRObjectOperations.java
  13. Generated by the IBM IDL-to-Java compiler, version 1.0
  14. from ../../Lib/ir.idl
  15. Thursday, February 25, 1999 2:11:21 o'clock PM PST
  16. */
  17. /**
  18. * This is the Operations interface for the mapping from IRObject.
  19. * Several interfaces are used as base interfaces for objects in
  20. * the Interface Repository (IR). These base interfaces are not instantiable.
  21. * A common set of operations is used to locate objects within the
  22. * Interface Repository. Some of these operations are defined in
  23. * the IRObject. All IR objects inherit from the IRObject interface,
  24. * which provides an operation for identifying the actual type of
  25. * the object. (The IDL base interface IRObject represents the most
  26. * generic interface from which all other Interface Repository interfaces
  27. * are derived, even the Repository itself.) All java implementations of
  28. * IR objects must implement the IRObjectOperations interface.
  29. * @see IDLTypeOperations
  30. * @see IDLType
  31. * @see IRObject
  32. */
  33. public interface IRObjectOperations
  34. {
  35. // read interface
  36. /**
  37. * Returns the <code>DefinitionKind</code> corresponding to this Interface Repository object.
  38. * @return the <code>DefinitionKind</code> corresponding to this Interface Repository object.
  39. */
  40. org.omg.CORBA.DefinitionKind def_kind ();
  41. // write interface
  42. /**
  43. * Destroys this object. If the object is a Container,
  44. * this method is applied to all its contents. If the object contains an IDLType
  45. * attribute for an anonymous type, that IDLType is destroyed.
  46. * If the object is currently contained in some other object, it is removed.
  47. * If the method is invoked on a <code>Repository</code> or on a <code>PrimitiveDef</code>
  48. * then the <code>BAD_INV_ORDER</code> exception is raised with minor value 2.
  49. * An attempt to destroy an object that would leave the repository in an
  50. * incoherent state causes <code>BAD_INV_ORDER</code> exception to be raised
  51. * with the minor code 1.
  52. * @exception <code>BAD_INV_ORDER</code>
  53. */
  54. void destroy ();
  55. } // interface IRObjectOperations