IRObjectOperations.java revision 608:7e06bf1dcb09
1227569Sphilip/* 2283514Sarybchik * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved. 3227569Sphilip * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4227569Sphilip * 5227569Sphilip * This code is free software; you can redistribute it and/or modify it 6227569Sphilip * under the terms of the GNU General Public License version 2 only, as 7227569Sphilip * published by the Free Software Foundation. Oracle designates this 8227569Sphilip * particular file as subject to the "Classpath" exception as provided 9283514Sarybchik * by Oracle in the LICENSE file that accompanied this code. 10227569Sphilip * 11283514Sarybchik * This code is distributed in the hope that it will be useful, but WITHOUT 12283514Sarybchik * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13283514Sarybchik * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14283514Sarybchik * version 2 for more details (a copy is included in the LICENSE file that 15283514Sarybchik * accompanied this code). 16283514Sarybchik * 17283514Sarybchik * You should have received a copy of the GNU General Public License version 18283514Sarybchik * 2 along with this work; if not, write to the Free Software Foundation, 19283514Sarybchik * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20283514Sarybchik * 21283514Sarybchik * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22283514Sarybchik * or visit www.oracle.com if you need additional information or have any 23283514Sarybchik * questions. 24283514Sarybchik */ 25283514Sarybchikpackage org.omg.CORBA; 26283514Sarybchik 27283514Sarybchik 28283514Sarybchik/** 29283514Sarybchik* The interface for <tt>IRObject</tt>. For more information on 30283514Sarybchik* Operations interfaces, see <a href="doc-files/generatedfiles.html#operations"> 31283514Sarybchik* "Generated Files: Operations files"</a>. 32227569Sphilip*/ 33227569Sphilip 34227569Sphilip/* 35227569Sphilip tempout/org/omg/CORBA/IRObjectOperations.java 36227569Sphilip Generated by the IBM IDL-to-Java compiler, version 1.0 37227569Sphilip from ../../Lib/ir.idl 38227569Sphilip Thursday, February 25, 1999 2:11:21 o'clock PM PST 39227569Sphilip*/ 40227569Sphilip 41227569Sphilip/** 42227569Sphilip * This is the Operations interface for the mapping from <tt>IRObject</tt>. 43227569Sphilip * Several interfaces are used as base interfaces for objects in 44283514Sarybchik * the Interface Repository (IR). These base interfaces are not instantiable. 45227569Sphilip * A common set of operations is used to locate objects within the 46227569Sphilip * Interface Repository. Some of these operations are defined in 47227569Sphilip * the IRObject. All IR objects inherit from the IRObject interface, 48227569Sphilip * which provides an operation for identifying the actual type of 49227569Sphilip * the object. (The IDL base interface IRObject represents the most 50227569Sphilip * generic interface from which all other Interface Repository interfaces 51227569Sphilip * are derived, even the Repository itself.) All java implementations of 52291843Sarybchik * IR objects must implement the IRObjectOperations interface. 53291843Sarybchik * @see IDLTypeOperations 54291843Sarybchik * @see IDLType 55291843Sarybchik * @see IRObject 56227569Sphilip */ 57227569Sphilippublic interface IRObjectOperations 58227569Sphilip{ 59227569Sphilip 60227569Sphilip // read interface 61227569Sphilip /** 62227569Sphilip * Returns the <code>DefinitionKind</code> corresponding to this Interface Repository object. 63227569Sphilip * @return the <code>DefinitionKind</code> corresponding to this Interface Repository object. 64227569Sphilip */ 65227569Sphilip org.omg.CORBA.DefinitionKind def_kind (); 66227569Sphilip 67227569Sphilip // write interface 68227569Sphilip /** 69227569Sphilip * Destroys this object. If the object is a Container, 70227569Sphilip * this method is applied to all its contents. If the object contains an IDLType 71227569Sphilip * attribute for an anonymous type, that IDLType is destroyed. 72227569Sphilip * If the object is currently contained in some other object, it is removed. 73227569Sphilip * If the method is invoked on a <code>Repository</code> or on a <code>PrimitiveDef</code> 74227569Sphilip * then the <code>BAD_INV_ORDER</code> exception is raised with minor value 2. 75227569Sphilip * An attempt to destroy an object that would leave the repository in an 76227569Sphilip * incoherent state causes <code>BAD_INV_ORDER</code> exception to be raised 77227569Sphilip * with the minor code 1. 78227569Sphilip * @exception BAD_INV_ORDER if this method is invoked on a repository or 79227569Sphilip * <code>PrimitiveDef</code>, or if an attempt to destroy an 80227569Sphilip * object would leave the repository in an incoherent state 81227569Sphilip */ 82227569Sphilip void destroy (); 83227569Sphilip} // interface IRObjectOperations 84227569Sphilip