1. /*
  2. * @(#)IRObject.java 1.14 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. /*
  8. * File: ./org/omg/CORBA/IRObject.java
  9. * From: ./ir.idl
  10. * Date: Fri Aug 28 16:03:31 1998
  11. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  12. */
  13. package org.omg.CORBA;
  14. /**
  15. An IRObject IDL interface represents the most generic interface
  16. from which all other Interface Repository interfaces are derived,
  17. even the Repository itself.
  18. */
  19. public interface IRObject
  20. extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
  21. {
  22. /**
  23. * Returns the <code>DefinitionKind</code> corresponding to this Interface Repository object.
  24. * @return the <code>DefinitionKind</code> corresponding to this Interface Repository object.
  25. */
  26. org.omg.CORBA.DefinitionKind def_kind();
  27. /**
  28. * Destroys this object. If the object is a Container,
  29. * this method is applied to all its contents. If the object contains an IDLType
  30. * attribute for an anonymous type, that IDLType is destroyed.
  31. * If the object is currently contained in some other object, it is removed.
  32. * If the method is invoked on a <code>Repository</code> or on a <code>PrimitiveDef</code>
  33. * then the <code>BAD_INV_ORDER</code> exception is raised with minor value 2.
  34. * An attempt to destroy an object that would leave the repository in an
  35. * incoherent state causes <code>BAD_INV_ORDER</code> exception to be raised
  36. * with the minor code 1.
  37. * @exception <code>BAD_INV_ORDER</code>
  38. */
  39. void destroy();
  40. }