1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/classes/org/omg/CORBA/IRObjectOperations.java Wed Apr 27 01:21:28 2016 +0800 1.3 @@ -0,0 +1,83 @@ 1.4 +/* 1.5 + * Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 +package org.omg.CORBA; 1.29 + 1.30 + 1.31 +/** 1.32 +* The interface for <tt>IRObject</tt>. For more information on 1.33 +* Operations interfaces, see <a href="doc-files/generatedfiles.html#operations"> 1.34 +* "Generated Files: Operations files"</a>. 1.35 +*/ 1.36 + 1.37 +/* 1.38 + tempout/org/omg/CORBA/IRObjectOperations.java 1.39 + Generated by the IBM IDL-to-Java compiler, version 1.0 1.40 + from ../../Lib/ir.idl 1.41 + Thursday, February 25, 1999 2:11:21 o'clock PM PST 1.42 +*/ 1.43 + 1.44 +/** 1.45 + * This is the Operations interface for the mapping from <tt>IRObject</tt>. 1.46 + * Several interfaces are used as base interfaces for objects in 1.47 + * the Interface Repository (IR). These base interfaces are not instantiable. 1.48 + * A common set of operations is used to locate objects within the 1.49 + * Interface Repository. Some of these operations are defined in 1.50 + * the IRObject. All IR objects inherit from the IRObject interface, 1.51 + * which provides an operation for identifying the actual type of 1.52 + * the object. (The IDL base interface IRObject represents the most 1.53 + * generic interface from which all other Interface Repository interfaces 1.54 + * are derived, even the Repository itself.) All java implementations of 1.55 + * IR objects must implement the IRObjectOperations interface. 1.56 + * @see IDLTypeOperations 1.57 + * @see IDLType 1.58 + * @see IRObject 1.59 + */ 1.60 +public interface IRObjectOperations 1.61 +{ 1.62 + 1.63 + // read interface 1.64 + /** 1.65 + * Returns the <code>DefinitionKind</code> corresponding to this Interface Repository object. 1.66 + * @return the <code>DefinitionKind</code> corresponding to this Interface Repository object. 1.67 + */ 1.68 + org.omg.CORBA.DefinitionKind def_kind (); 1.69 + 1.70 + // write interface 1.71 + /** 1.72 + * Destroys this object. If the object is a Container, 1.73 + * this method is applied to all its contents. If the object contains an IDLType 1.74 + * attribute for an anonymous type, that IDLType is destroyed. 1.75 + * If the object is currently contained in some other object, it is removed. 1.76 + * If the method is invoked on a <code>Repository</code> or on a <code>PrimitiveDef</code> 1.77 + * then the <code>BAD_INV_ORDER</code> exception is raised with minor value 2. 1.78 + * An attempt to destroy an object that would leave the repository in an 1.79 + * incoherent state causes <code>BAD_INV_ORDER</code> exception to be raised 1.80 + * with the minor code 1. 1.81 + * @exception BAD_INV_ORDER if this method is invoked on a repository or 1.82 + * <code>PrimitiveDef</code>, or if an attempt to destroy an 1.83 + * object would leave the repository in an incoherent state 1.84 + */ 1.85 + void destroy (); 1.86 +} // interface IRObjectOperations