duke@1: /* duke@1: * Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved. duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: * duke@1: * This code is free software; you can redistribute it and/or modify it duke@1: * under the terms of the GNU General Public License version 2 only, as duke@1: * published by the Free Software Foundation. Sun designates this duke@1: * particular file as subject to the "Classpath" exception as provided duke@1: * by Sun in the LICENSE file that accompanied this code. duke@1: * duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: * version 2 for more details (a copy is included in the LICENSE file that duke@1: * accompanied this code). duke@1: * duke@1: * You should have received a copy of the GNU General Public License version duke@1: * 2 along with this work; if not, write to the Free Software Foundation, duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: * duke@1: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, duke@1: * CA 95054 USA or visit www.sun.com if you need additional information or duke@1: * have any questions. duke@1: */ duke@1: package org.omg.CORBA; duke@1: duke@1: duke@1: /** duke@1: * The interface for IRObject. For more information on duke@1: * Operations interfaces, see duke@1: * "Generated Files: Operations files". duke@1: */ duke@1: duke@1: /* duke@1: tempout/org/omg/CORBA/IRObjectOperations.java duke@1: Generated by the IBM IDL-to-Java compiler, version 1.0 duke@1: from ../../Lib/ir.idl duke@1: Thursday, February 25, 1999 2:11:21 o'clock PM PST duke@1: */ duke@1: duke@1: /** duke@1: * This is the Operations interface for the mapping from IRObject. duke@1: * Several interfaces are used as base interfaces for objects in duke@1: * the Interface Repository (IR). These base interfaces are not instantiable. duke@1: * A common set of operations is used to locate objects within the duke@1: * Interface Repository. Some of these operations are defined in duke@1: * the IRObject. All IR objects inherit from the IRObject interface, duke@1: * which provides an operation for identifying the actual type of duke@1: * the object. (The IDL base interface IRObject represents the most duke@1: * generic interface from which all other Interface Repository interfaces duke@1: * are derived, even the Repository itself.) All java implementations of duke@1: * IR objects must implement the IRObjectOperations interface. duke@1: * @see IDLTypeOperations duke@1: * @see IDLType duke@1: * @see IRObject duke@1: */ duke@1: public interface IRObjectOperations duke@1: { duke@1: duke@1: // read interface duke@1: /** duke@1: * Returns the DefinitionKind corresponding to this Interface Repository object. duke@1: * @return the DefinitionKind corresponding to this Interface Repository object. duke@1: */ duke@1: org.omg.CORBA.DefinitionKind def_kind (); duke@1: duke@1: // write interface duke@1: /** duke@1: * Destroys this object. If the object is a Container, duke@1: * this method is applied to all its contents. If the object contains an IDLType duke@1: * attribute for an anonymous type, that IDLType is destroyed. duke@1: * If the object is currently contained in some other object, it is removed. duke@1: * If the method is invoked on a Repository or on a PrimitiveDef duke@1: * then the BAD_INV_ORDER exception is raised with minor value 2. duke@1: * An attempt to destroy an object that would leave the repository in an duke@1: * incoherent state causes BAD_INV_ORDER exception to be raised duke@1: * with the minor code 1. duke@1: * @exception BAD_INV_ORDER if this method is invoked on a repository or duke@1: * PrimitiveDef, or if an attempt to destroy an duke@1: * object would leave the repository in an incoherent state duke@1: */ duke@1: void destroy (); duke@1: } // interface IRObjectOperations