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