feat(jdk8): move files to new folder to avoid resources compiled.
This commit is contained in:
86
jdkSrc/jdk8/org/omg/CORBA/ACTIVITY_COMPLETED.java
Normal file
86
jdkSrc/jdk8/org/omg/CORBA/ACTIVITY_COMPLETED.java
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The <code>ACTIVITY_COMPLETED</code> system exception may be raised on any
|
||||
* method for which Activity context is accessed. It indicates that the
|
||||
* Activity context in which the method call was made has been completed due
|
||||
* to a timeout of either the Activity itself or a transaction that encompasses
|
||||
* the Activity, or that the Activity completed in a manner other than that
|
||||
* originally requested.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
public final class ACTIVITY_COMPLETED extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_COMPLETED</code> exception with
|
||||
* minor code set to 0 and CompletionStatus set to COMPLETED_NO.
|
||||
*/
|
||||
public ACTIVITY_COMPLETED() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
|
||||
* specified message.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
*/
|
||||
public ACTIVITY_COMPLETED(String detailMessage) {
|
||||
this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
|
||||
* specified minor code and completion status.
|
||||
*
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public ACTIVITY_COMPLETED(int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
this("", minorCode, completionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
|
||||
* specified message, minor code, and completion status.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public ACTIVITY_COMPLETED(String detailMessage,
|
||||
int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
super(detailMessage, minorCode, completionStatus);
|
||||
}
|
||||
}
|
||||
84
jdkSrc/jdk8/org/omg/CORBA/ACTIVITY_REQUIRED.java
Normal file
84
jdkSrc/jdk8/org/omg/CORBA/ACTIVITY_REQUIRED.java
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The <code>ACTIVITY_REQUIRED</code> system exception may be raised on any
|
||||
* method for which an Activity context is required. It indicates that an
|
||||
* Activity context was necessary to perform the invoked operation, but one
|
||||
* was not found associated with the calling thread.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
public final class ACTIVITY_REQUIRED extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_REQUIRED</code> exception with
|
||||
* minor code set to 0 and CompletionStatus set to COMPLETED_NO.
|
||||
*/
|
||||
public ACTIVITY_REQUIRED() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
|
||||
* specified message.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
*/
|
||||
public ACTIVITY_REQUIRED(String detailMessage) {
|
||||
this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
|
||||
* specified minor code and completion status.
|
||||
*
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public ACTIVITY_REQUIRED(int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
this("", minorCode, completionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
|
||||
* specified message, minor code, and completion status.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public ACTIVITY_REQUIRED(String detailMessage,
|
||||
int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
super(detailMessage, minorCode, completionStatus);
|
||||
}
|
||||
}
|
||||
53
jdkSrc/jdk8/org/omg/CORBA/ARG_IN.java
Normal file
53
jdkSrc/jdk8/org/omg/CORBA/ARG_IN.java
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Signifies an "input" argument to an invocation,
|
||||
* meaning that the argument is being passed from the client to
|
||||
* the server.
|
||||
* <code>ARG_IN.value</code> is one of the possible values used to
|
||||
* indicate the direction in
|
||||
* which a parameter is being passed during an invocation performed
|
||||
* using the Dynamic Invocation Interface (DII).
|
||||
* <P>
|
||||
* The code fragment below shows a typical usage:
|
||||
* <PRE>
|
||||
* ORB orb = ORB.init(args, null);
|
||||
* org.omg.CORBA.NamedValue nv = orb.create_named_value(
|
||||
* "IDLArgumentIdentifier", myAny, org.omg.CORBA.ARG_IN.value);
|
||||
* </PRE>
|
||||
*
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public interface ARG_IN {
|
||||
|
||||
/**
|
||||
* The value indicating an input argument.
|
||||
*/
|
||||
int value = 1;
|
||||
}
|
||||
54
jdkSrc/jdk8/org/omg/CORBA/ARG_INOUT.java
Normal file
54
jdkSrc/jdk8/org/omg/CORBA/ARG_INOUT.java
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Signifies an argument used for both input and output in an invocation,
|
||||
* meaning that the argument is being passed from the client to
|
||||
* the server and then back from the server to the client.
|
||||
* <code>ARG_INOUT.value</code> is one of the possible values used to
|
||||
* indicate the direction in
|
||||
* which a parameter is being passed during a dynamic invocation
|
||||
* using the Dynamic Invocation Interface (DII).
|
||||
* <P>
|
||||
* The code fragment below shows a typical usage:
|
||||
* <PRE>
|
||||
* ORB orb = ORB.init(args, null);
|
||||
* org.omg.CORBA.NamedValue nv = orb.create_named_value(
|
||||
* "argumentIdentifier", myAny, org.omg.CORBA.ARG_INOUT.value);
|
||||
* </PRE>
|
||||
*
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public interface ARG_INOUT {
|
||||
|
||||
/**
|
||||
* The constant value indicating an argument used for both
|
||||
* input and output.
|
||||
*/
|
||||
int value = 3;
|
||||
}
|
||||
53
jdkSrc/jdk8/org/omg/CORBA/ARG_OUT.java
Normal file
53
jdkSrc/jdk8/org/omg/CORBA/ARG_OUT.java
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A constant that signifies an "output" argument to an invocation,
|
||||
* meaning that the argument is being passed from the server to
|
||||
* the client.
|
||||
* <code>ARG_OUT.value</code> is one of the possible values used
|
||||
* to indicate the direction in
|
||||
* which a parameter is being passed during a dynamic invocation
|
||||
* using the Dynamic Invocation Interface (DII).
|
||||
* <P>
|
||||
* The code fragment below shows a typical usage:
|
||||
* <PRE>
|
||||
* ORB orb = ORB.init(args, null);
|
||||
* org.omg.CORBA.NamedValue nv = orb.create_named_value(
|
||||
* "argumentIdentifier", myAny, org.omg.CORBA.ARG_OUT.value);
|
||||
* </PRE>
|
||||
*
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public interface ARG_OUT {
|
||||
|
||||
/**
|
||||
* The constant value indicating an output argument.
|
||||
*/
|
||||
int value = 2;
|
||||
}
|
||||
721
jdkSrc/jdk8/org/omg/CORBA/Any.java
Normal file
721
jdkSrc/jdk8/org/omg/CORBA/Any.java
Normal file
@@ -0,0 +1,721 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.IDLEntity;
|
||||
|
||||
/**
|
||||
* Serves as a container for any data that can be
|
||||
* described in IDL or for any IDL primitive type.
|
||||
* An <code>Any</code> object is used as a component of a
|
||||
* <code>NamedValue</code> object, which provides information about
|
||||
* arguments or return values in requests, and which is used to define
|
||||
* name/value pairs in <code>Context</code> objects.
|
||||
<p>
|
||||
*
|
||||
* An <code>Any</code> object consists of two parts:
|
||||
* <OL>
|
||||
* <LI>a data value
|
||||
* <LI>a <code>TypeCode</code> object describing the type of the data
|
||||
* value contained in the <code>Any</code> object. For example,
|
||||
* a <code>TypeCode</code> object for an array contains
|
||||
* a field for the length of the array and a field for
|
||||
* the type of elements in the array. (Note that in this case, the
|
||||
* second field of the <code>TypeCode</code> object is itself a
|
||||
* <code>TypeCode</code> object.)
|
||||
* </OL>
|
||||
*
|
||||
* <P>
|
||||
* <a name="anyOps"</a>
|
||||
* A large part of the <code>Any</code> class consists of pairs of methods
|
||||
* for inserting values into and extracting values from an
|
||||
* <code>Any</code> object.
|
||||
* <P>
|
||||
* For a given primitive type X, these methods are:
|
||||
* <dl>
|
||||
* <dt><code><bold> void insert_X(X x)</bold></code>
|
||||
* <dd> This method allows the insertion of
|
||||
* an instance <code>x</code> of primitive type <code>X</code>
|
||||
* into the <code>value</code> field of the <code>Any</code> object.
|
||||
* Note that the method
|
||||
* <code>insert_X</code> also resets the <code>Any</code> object's
|
||||
* <code>type</code> field if necessary.
|
||||
* <dt> <code><bold>X extract_X()</bold></code>
|
||||
* <dd> This method allows the extraction of an instance of
|
||||
* type <code>X</code> from the <code>Any</code> object.
|
||||
* <BR>
|
||||
* <P>
|
||||
* This method throws the exception <code>BAD_OPERATION</code> under two conditions:
|
||||
* <OL>
|
||||
* <LI> the type of the element contained in the <code>Any</code> object is not
|
||||
* <code>X</code>
|
||||
* <LI> the method <code>extract_X</code> is called before
|
||||
* the <code>value</code> field of the <code>Any</code> object
|
||||
* has been set
|
||||
* </OL>
|
||||
* </dl>
|
||||
* <P>
|
||||
* There are distinct method pairs for each
|
||||
* primitive IDL data type (<code>insert_long</code> and <code>extract_long</code>,
|
||||
* <code>insert_string</code> and <code>extract_string</code>, and so on).<BR>
|
||||
* <P>
|
||||
* The class <code>Any</code> also has methods for
|
||||
* getting and setting the type code,
|
||||
* for testing two <code>Any</code> objects for equality,
|
||||
* and for reading an <code>Any</code> object from a stream or
|
||||
* writing it to a stream.
|
||||
* <BR>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
abstract public class Any implements IDLEntity {
|
||||
|
||||
/**
|
||||
* Checks for equality between this <code>Any</code> object and the
|
||||
* given <code>Any</code> object. Two <code>Any</code> objects are
|
||||
* equal if both their values and type codes are equal.
|
||||
*
|
||||
* @param a the <code>Any</code> object to test for equality
|
||||
* @return <code>true</code> if the <code>Any</code> objects are equal;
|
||||
* <code>false</code> otherwise
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
abstract public boolean equal(Any a);
|
||||
|
||||
/**
|
||||
* Returns type information for the element contained in this
|
||||
* <code>Any</code> object.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object containing type information
|
||||
* about the value contained in this <code>Any</code> object
|
||||
*/
|
||||
abstract public TypeCode type();
|
||||
|
||||
/**
|
||||
* Sets this <code>Any</code> object's <code>type</code> field
|
||||
* to the given <code>TypeCode</code> object and clears its value.
|
||||
* <P>
|
||||
* Note that using this method to set the type code wipes out the
|
||||
* value if there is one. The method
|
||||
* is provided primarily so that the type may be set properly for
|
||||
* IDL <code>out</code> parameters. Generally, setting the type
|
||||
* is done by the <code>insert_X</code> methods, which will set the type
|
||||
* to X if it is not already set to X.
|
||||
*
|
||||
* @param t the <code>TypeCode</code> object giving
|
||||
* information for the value in
|
||||
* this <code>Any</code> object
|
||||
*/
|
||||
abstract public void type(TypeCode t);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// marshalling/unmarshalling routines
|
||||
|
||||
/**
|
||||
* Reads off (unmarshals) the value of an <code>Any</code> object from
|
||||
* the given input stream using the given typecode.
|
||||
*
|
||||
* @param is the <code>org.omg.CORBA.portable.InputStream</code>
|
||||
* object from which to read
|
||||
* the value contained in this <code>Any</code> object
|
||||
*
|
||||
* @param t a <code>TypeCode</code> object containing type information
|
||||
* about the value to be read
|
||||
*
|
||||
* @exception MARSHAL when the given <code>TypeCode</code> object is
|
||||
* not consistent with the value that was contained
|
||||
* in the input stream
|
||||
*/
|
||||
abstract public void read_value(InputStream is, TypeCode t)
|
||||
throws MARSHAL;
|
||||
|
||||
/**
|
||||
* Writes out the value of this <code>Any</code> object
|
||||
* to the given output stream. If both <code>typecode</code>
|
||||
* and <code>value</code> need to be written, use
|
||||
* <code>create_output_stream()</code> to create an <code>OutputStream</code>,
|
||||
* then use <code>write_any</code> on the <code>OutputStream</code>.
|
||||
* <P>
|
||||
* If this method is called on an <code>Any</code> object that has not
|
||||
* had a value inserted into its <code>value</code> field, it will throw
|
||||
* the exception <code>java.lang.NullPointerException</code>.
|
||||
*
|
||||
* @param os the <code>org.omg.CORBA.portable.OutputStream</code>
|
||||
* object into which to marshal the value
|
||||
* of this <code>Any</code> object
|
||||
*
|
||||
*/
|
||||
abstract public void write_value(OutputStream os);
|
||||
|
||||
/**
|
||||
* Creates an output stream into which this <code>Any</code> object's
|
||||
* value can be marshalled.
|
||||
*
|
||||
* @return the newly-created <code>OutputStream</code>
|
||||
*/
|
||||
abstract public OutputStream create_output_stream();
|
||||
|
||||
/**
|
||||
* Creates an input stream from which this <code>Any</code> object's value
|
||||
* can be unmarshalled.
|
||||
*
|
||||
* @return the newly-created <code>InputStream</code>
|
||||
*/
|
||||
abstract public InputStream create_input_stream();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// basic insertion/extraction methods
|
||||
|
||||
/**
|
||||
* Extracts the <code>short</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>short</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>short</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public short extract_short() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>short</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param s the <code>short</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_short(short s);
|
||||
|
||||
/**
|
||||
* Extracts the <code>int</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>int</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than an <code>int</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public int extract_long() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>int</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param l the <code>int</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_long(int l);
|
||||
|
||||
|
||||
/**
|
||||
* Extracts the <code>long</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>long</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>long</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public long extract_longlong() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>long</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param l the <code>long</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_longlong(long l);
|
||||
|
||||
/**
|
||||
* Extracts the <code>short</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>short</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>short</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public short extract_ushort() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>short</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param s the <code>short</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_ushort(short s);
|
||||
|
||||
/**
|
||||
* Extracts the <code>int</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>int</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than an <code>int</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public int extract_ulong() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>int</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param l the <code>int</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_ulong(int l);
|
||||
|
||||
/**
|
||||
* Extracts the <code>long</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>long</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>long</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public long extract_ulonglong() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>long</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param l the <code>long</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_ulonglong(long l);
|
||||
|
||||
/**
|
||||
* Extracts the <code>float</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>float</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>float</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public float extract_float() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>float</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param f the <code>float</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_float(float f);
|
||||
|
||||
/**
|
||||
* Extracts the <code>double</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>double</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>double</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public double extract_double() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>double</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param d the <code>double</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_double(double d);
|
||||
|
||||
/**
|
||||
* Extracts the <code>boolean</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>boolean</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>boolean</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public boolean extract_boolean() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>boolean</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param b the <code>boolean</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_boolean(boolean b);
|
||||
|
||||
/**
|
||||
* Extracts the <code>char</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>char</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>char</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public char extract_char() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>char</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param c the <code>char</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
* @exception DATA_CONVERSION if there is a data conversion
|
||||
* error
|
||||
*/
|
||||
abstract public void insert_char(char c) throws DATA_CONVERSION;
|
||||
|
||||
/**
|
||||
* Extracts the <code>char</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>char</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>char</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public char extract_wchar() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>char</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param c the <code>char</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_wchar(char c);
|
||||
|
||||
/**
|
||||
* Extracts the <code>byte</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>byte</code> stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>byte</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public byte extract_octet() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>byte</code>
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param b the <code>byte</code> to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_octet(byte b);
|
||||
|
||||
/**
|
||||
* Extracts the <code>Any</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>Any</code> object stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than an <code>Any</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public Any extract_any() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>Any</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param a the <code>Any</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_any(Any a);
|
||||
|
||||
/**
|
||||
* Extracts the <code>org.omg.CORBA.Object</code> in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>org.omg.CORBA.Object</code> stored in
|
||||
* this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than an
|
||||
* <code>org.omg.CORBA.Object</code> or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public org.omg.CORBA.Object extract_Object() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>org.omg.CORBA.Object</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param o the <code>org.omg.CORBA.Object</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_Object(org.omg.CORBA.Object o);
|
||||
|
||||
/**
|
||||
* Extracts the <code>java.io.Serializable</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>java.io.Serializable</code> object stored in
|
||||
* this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>java.io.Serializable</code>
|
||||
* object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public java.io.Serializable extract_Value() throws BAD_OPERATION ;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>java.io.Serializable</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param v the <code>java.io.Serializable</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_Value(java.io.Serializable v) ;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>java.io.Serializable</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param v the <code>java.io.Serializable</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
* @param t the <code>TypeCode</code> object that is to be inserted into
|
||||
* this <code>Any</code> object's <code>type</code> field
|
||||
* and that describes the <code>java.io.Serializable</code>
|
||||
* object being inserted
|
||||
* @throws MARSHAL if the ORB has a problem marshalling or
|
||||
* unmarshalling parameters
|
||||
*/
|
||||
abstract public void insert_Value(java.io.Serializable v, TypeCode t)
|
||||
throws MARSHAL ;
|
||||
/**
|
||||
* Inserts the given <code>org.omg.CORBA.Object</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param o the <code>org.omg.CORBA.Object</code> instance to insert into this
|
||||
* <code>Any</code> object
|
||||
* @param t the <code>TypeCode</code> object that is to be inserted into
|
||||
* this <code>Any</code> object and that describes
|
||||
* the <code>Object</code> being inserted
|
||||
* @exception BAD_OPERATION if this method is invalid for this
|
||||
* <code>Any</code> object
|
||||
*
|
||||
*/
|
||||
abstract public void insert_Object(org.omg.CORBA.Object o, TypeCode t)
|
||||
throws BAD_PARAM;
|
||||
|
||||
/**
|
||||
* Extracts the <code>String</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>String</code> object stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>String</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public String extract_string() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>String</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param s the <code>String</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
* @exception DATA_CONVERSION if there is a data conversion error
|
||||
* @exception MARSHAL if the ORB has a problem marshalling or
|
||||
* unmarshalling parameters
|
||||
*/
|
||||
abstract public void insert_string(String s) throws DATA_CONVERSION, MARSHAL;
|
||||
|
||||
/**
|
||||
* Extracts the <code>String</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>String</code> object stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>String</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public String extract_wstring() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>String</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param s the <code>String</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
* @exception MARSHAL if the ORB has a problem marshalling or
|
||||
* unmarshalling parameters
|
||||
*/
|
||||
abstract public void insert_wstring(String s) throws MARSHAL;
|
||||
|
||||
/**
|
||||
* Extracts the <code>TypeCode</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a <code>TypeCode</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
*/
|
||||
abstract public TypeCode extract_TypeCode() throws BAD_OPERATION;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>TypeCode</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param t the <code>TypeCode</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
*/
|
||||
abstract public void insert_TypeCode(TypeCode t);
|
||||
|
||||
/**
|
||||
* Extracts the <code>Principal</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
* Note that the class <code>Principal</code> has been deprecated.
|
||||
*
|
||||
* @return the <code>Principal</code> object stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a
|
||||
* <code>Principal</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
* @deprecated Deprecated by CORBA 2.2.
|
||||
*/
|
||||
@Deprecated
|
||||
public Principal extract_Principal() throws BAD_OPERATION {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT() ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts the given <code>Principal</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
* Note that the class <code>Principal</code> has been deprecated.
|
||||
*
|
||||
* @param p the <code>Principal</code> object to insert into this
|
||||
* <code>Any</code> object
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
* @deprecated Deprecated by CORBA 2.2.
|
||||
*/
|
||||
@Deprecated
|
||||
public void insert_Principal(Principal p) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT() ;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// insertion/extraction of streamables
|
||||
|
||||
/**
|
||||
* Extracts a <code>Streamable</code> from this <code>Any</code> object's
|
||||
* <code>value</code> field. This method allows the extraction of
|
||||
* non-primitive IDL types.
|
||||
*
|
||||
* @return the <code>Streamable</code> stored in the <code>Any</code> object.
|
||||
* @throws BAD_INV_ORDER if the caller has invoked operations in the wrong order
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.portable.Streamable extract_Streamable()
|
||||
throws org.omg.CORBA.BAD_INV_ORDER {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT() ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts the given <code>Streamable</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
* This method allows the insertion of non-primitive IDL types.
|
||||
*
|
||||
* @param s the <code>Streamable</code> object to insert into this
|
||||
* <code>Any</code> object; may be a non-primitive
|
||||
* IDL type
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void insert_Streamable(Streamable s) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT() ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the <code>java.math.BigDecimal</code> object in this
|
||||
* <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @return the <code>java.math.BigDecimal</code> object
|
||||
* stored in this <code>Any</code> object
|
||||
* @exception BAD_OPERATION if this <code>Any</code> object
|
||||
* contains something other than a
|
||||
* <code>java.math.BigDecimal</code> object or the
|
||||
* <code>value</code> field has not yet been set
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public java.math.BigDecimal extract_fixed() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT();
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <a href="package-summary.html#NO_IMPLEMENT">
|
||||
* <code>org.omg.CORBA.NO_IMPLEMENT</code></a> exception.
|
||||
* <P>
|
||||
* Inserts the given <code>java.math.BigDecimal</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param value the <code>java.math.BigDecimal</code> object
|
||||
* to insert into this <code>Any</code> object
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void insert_fixed(java.math.BigDecimal value) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT();
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <a href="package-summary.html#NO_IMPLEMENT">
|
||||
* <code>org.omg.CORBA.NO_IMPLEMENT</code></a> exception.
|
||||
* <P>
|
||||
* Inserts the given <code>java.math.BigDecimal</code> object
|
||||
* into this <code>Any</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param value the <code>java.math.BigDecimal</code> object
|
||||
* to insert into this <code>Any</code> object
|
||||
* @param type the <code>TypeCode</code> object that is to be inserted into
|
||||
* this <code>Any</code> object's <code>type</code> field
|
||||
* and that describes the <code>java.math.BigDecimal</code>
|
||||
* object being inserted
|
||||
* @throws org.omg.CORBA.BAD_INV_ORDER if this method is invoked improperly
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type)
|
||||
throws org.omg.CORBA.BAD_INV_ORDER
|
||||
{
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT();
|
||||
}
|
||||
}
|
||||
107
jdkSrc/jdk8/org/omg/CORBA/AnyHolder.java
Normal file
107
jdkSrc/jdk8/org/omg/CORBA/AnyHolder.java
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Any</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for <code>Any</code> objects
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>any</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>AnyHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myAnyHolder</code> is an instance of <code>AnyHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myAnyHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class AnyHolder implements Streamable {
|
||||
/**
|
||||
* The <code>Any</code> value held by this <code>AnyHolder</code> object.
|
||||
*/
|
||||
|
||||
public Any value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>AnyHolder</code> object with its
|
||||
* <code>value</code> field initialized to <code>null</code>.
|
||||
*/
|
||||
public AnyHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>AnyHolder</code> object for the given
|
||||
* <code>Any</code> object.
|
||||
* @param initial the <code>Any</code> object with which to initialize
|
||||
* the <code>value</code> field of the new
|
||||
* <code>AnyHolder</code> object
|
||||
*/
|
||||
public AnyHolder(Any initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads from <code>input</code> and initalizes the value in the Holder
|
||||
* with the unmarshalled data.
|
||||
*
|
||||
* @param input the InputStream containing CDR formatted data from the wire.
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_any();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals to <code>output</code> the value in
|
||||
* this <code>AnyHolder</code> object.
|
||||
*
|
||||
* @param output the OutputStream which will contain the CDR formatted data.
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_any(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the <code>TypeCode</code> object corresponding to the value
|
||||
* held in this <code>AnyHolder</code> object.
|
||||
*
|
||||
* @return the TypeCode of the value held in
|
||||
* this <code>AnyHolder</code> object
|
||||
*/
|
||||
public TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_any);
|
||||
}
|
||||
}
|
||||
101
jdkSrc/jdk8/org/omg/CORBA/AnySeqHelper.java
Normal file
101
jdkSrc/jdk8/org/omg/CORBA/AnySeqHelper.java
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>AnySeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/AnySeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class AnySeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/AnySeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.Any[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.Any[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_any);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.AnySeqHelper.id (), "AnySeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.Any[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CORBA.Any value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.CORBA.Any[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = istream.read_any ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.Any[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
ostream.write_any (value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/AnySeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/AnySeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>AnySeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/AnySeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class AnySeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CORBA.Any value[] = null;
|
||||
|
||||
public AnySeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public AnySeqHolder (org.omg.CORBA.Any[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.AnySeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.AnySeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.AnySeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
86
jdkSrc/jdk8/org/omg/CORBA/BAD_CONTEXT.java
Normal file
86
jdkSrc/jdk8/org/omg/CORBA/BAD_CONTEXT.java
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when an operation is invoked by a client but the passed
|
||||
* context does not contain the context values required by the operation.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class BAD_CONTEXT extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_CONTEXT</code> exception
|
||||
* with a default minor code
|
||||
* of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public BAD_CONTEXT() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_CONTEXT</code> exception
|
||||
* with the specified detail message, a minor code
|
||||
* of 0 and a completion state of COMPLETED_NO.
|
||||
* @param s a <code>String</code> object containing a detail message
|
||||
*/
|
||||
public BAD_CONTEXT(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_CONTEXT</code> exception
|
||||
* with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_CONTEXT(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_CONTEXT</code> exception
|
||||
* with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_CONTEXT(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
85
jdkSrc/jdk8/org/omg/CORBA/BAD_INV_ORDER.java
Normal file
85
jdkSrc/jdk8/org/omg/CORBA/BAD_INV_ORDER.java
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates that the caller has invoked operations in
|
||||
* the wrong order. For example, it can be raised by an ORB if an
|
||||
* application makes an ORB-related call without having correctly
|
||||
* initialized the ORB first.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class BAD_INV_ORDER extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_INV_ORDER</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public BAD_INV_ORDER() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public BAD_INV_ORDER(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_INV_ORDER</code> exceptionBAD_INV_ORDER with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_INV_ORDER(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public BAD_INV_ORDER(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
|
||||
}
|
||||
82
jdkSrc/jdk8/org/omg/CORBA/BAD_OPERATION.java
Normal file
82
jdkSrc/jdk8/org/omg/CORBA/BAD_OPERATION.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when an object reference denotes an existing object,
|
||||
* but that the object does not support the operation that was invoked.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class BAD_OPERATION extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_OPERATION</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public BAD_OPERATION() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_OPERATION</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public BAD_OPERATION(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_OPERATION</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_OPERATION(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_OPERATION</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_OPERATION(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
91
jdkSrc/jdk8/org/omg/CORBA/BAD_PARAM.java
Normal file
91
jdkSrc/jdk8/org/omg/CORBA/BAD_PARAM.java
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown
|
||||
* when a parameter passed to a call is out of range or
|
||||
* otherwise considered illegal. An ORB may raise this exception
|
||||
* if null values or null pointers are passed to an operation (for
|
||||
* language mappings where the concept of a null pointers or null
|
||||
* values applies). BAD_PARAM can also be raised as a result of a
|
||||
* client generating requests with incorrect parameters using the DII. <P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning of
|
||||
* minor codes</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class BAD_PARAM extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_PARAM</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public BAD_PARAM() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_PARAM</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the String containing a detail message describing this
|
||||
* exception
|
||||
*/
|
||||
public BAD_PARAM(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_PARAM</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public BAD_PARAM(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_PARAM</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a <code>String</code> that describes
|
||||
* this particular exception.
|
||||
*
|
||||
* @param s the <code>String</code> containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public BAD_PARAM(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
39
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY.java
Normal file
39
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY.java
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
/**
|
||||
* A <tt>PolicyErrorCode</tt> which would be filled in
|
||||
* the <tt>PolicyError</tt> exception.
|
||||
*
|
||||
* @author rip-dev
|
||||
*/
|
||||
|
||||
public interface BAD_POLICY {
|
||||
/**
|
||||
* The Error code in PolicyError exception.
|
||||
*/
|
||||
final short value = (short) (0L);
|
||||
};
|
||||
39
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY_TYPE.java
Normal file
39
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY_TYPE.java
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A <tt>PolicyErrorCode</tt> which would be filled in
|
||||
* the <tt>PolicyError</tt> exception.
|
||||
*
|
||||
* @author rip-dev
|
||||
*/
|
||||
public interface BAD_POLICY_TYPE {
|
||||
/**
|
||||
* The Error code in PolicyError exception.
|
||||
*/
|
||||
final short value = (short) (2L);
|
||||
};
|
||||
41
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY_VALUE.java
Normal file
41
jdkSrc/jdk8/org/omg/CORBA/BAD_POLICY_VALUE.java
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Contains the value used to indicate a policy value that is
|
||||
* incorrect for a valid policy type in a call to the
|
||||
* <code>create_policy</code> method defined in the ORB class.
|
||||
*
|
||||
*/
|
||||
public interface BAD_POLICY_VALUE {
|
||||
/**
|
||||
* The value used to represent a bad policy value error
|
||||
* in a <code>PolicyError</code> exception.
|
||||
* @see org.omg.CORBA.PolicyError
|
||||
*/
|
||||
final short value = (short) (3L);
|
||||
};
|
||||
83
jdkSrc/jdk8/org/omg/CORBA/BAD_QOS.java
Normal file
83
jdkSrc/jdk8/org/omg/CORBA/BAD_QOS.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The <code>BAD_QOS</code> exception is raised whenever an object cannot
|
||||
* support the quality of service required by an invocation parameter that
|
||||
* has a quality of service semantics associated with it.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
public final class BAD_QOS extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>BAD_QOS</code> exception with
|
||||
* minor code set to 0 and CompletionStatus set to COMPLETED_NO.
|
||||
*/
|
||||
public BAD_QOS() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>BAD_QOS</code> exception with the
|
||||
* specified message.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
*/
|
||||
public BAD_QOS(String detailMessage) {
|
||||
this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>BAD_QOS</code> exception with the
|
||||
* specified minor code and completion status.
|
||||
*
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public BAD_QOS(int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
this("", minorCode, completionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>BAD_QOS</code> exception with the
|
||||
* specified message, minor code, and completion status.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public BAD_QOS(String detailMessage,
|
||||
int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
super(detailMessage, minorCode, completionStatus);
|
||||
}
|
||||
}
|
||||
83
jdkSrc/jdk8/org/omg/CORBA/BAD_TYPECODE.java
Normal file
83
jdkSrc/jdk8/org/omg/CORBA/BAD_TYPECODE.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when the ORB has encountered a malformed type code
|
||||
* (for example, a type code with an invalid <tt>TCKind</tt> value).<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class BAD_TYPECODE extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_TYPECODE</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public BAD_TYPECODE() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_TYPECODE</code> exception with the specified detail,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public BAD_TYPECODE(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_TYPECODE</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_TYPECODE(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>BAD_TYPECODE</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code> indicating
|
||||
* the completion status
|
||||
*/
|
||||
public BAD_TYPECODE(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
109
jdkSrc/jdk8/org/omg/CORBA/BooleanHolder.java
Normal file
109
jdkSrc/jdk8/org/omg/CORBA/BooleanHolder.java
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Boolean</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>boolean</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>boolean</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>BooleanHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myBooleanHolder</code> is an instance of <code>BooleanHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myBooleanHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class BooleanHolder implements Streamable {
|
||||
|
||||
/**
|
||||
* The <code>boolean</code> value held by this <code>BooleanHolder</code>
|
||||
* object.
|
||||
*/
|
||||
public boolean value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>BooleanHolder</code> object with its
|
||||
* <code>value</code> field initialized to <code>false</code>.
|
||||
*/
|
||||
public BooleanHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>BooleanHolder</code> object with its
|
||||
* <code>value</code> field initialized with the given <code>boolean</code>.
|
||||
* @param initial the <code>boolean</code> with which to initialize
|
||||
* the <code>value</code> field of the newly-created
|
||||
* <code>BooleanHolder</code> object
|
||||
*/
|
||||
public BooleanHolder(boolean initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads unmarshalled data from <code>input</code> and assigns it to this
|
||||
* <code>BooleanHolder</code> object's <code>value</code> field.
|
||||
*
|
||||
* @param input the <code>InputStream</code> object containing
|
||||
* CDR formatted data from the wire
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_boolean();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals the value in this <code>BooleanHolder</code> object's
|
||||
* <code>value</code> field to the output stream <code>output</code>.
|
||||
*
|
||||
* @param output the OutputStream which will contain the CDR formatted data
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_boolean(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the <code>TypeCode</code> object that corresponds to the
|
||||
* value held in this <code>BooleanHolder</code> object.
|
||||
*
|
||||
* @return the <code>TypeCode</code> for the value held
|
||||
* in this <code>BooleanHolder</code> object
|
||||
*/
|
||||
public TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_boolean);
|
||||
}
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/BooleanSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/BooleanSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>BooleanSeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/BooleanSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class BooleanSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/BooleanSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, boolean[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static boolean[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.BooleanSeqHelper.id (), "BooleanSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static boolean[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
boolean value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new boolean[_len0];
|
||||
istream.read_boolean_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, boolean[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_boolean_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/BooleanSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/BooleanSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>BooleanSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/BooleanSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class BooleanSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public boolean value[] = null;
|
||||
|
||||
public BooleanSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public BooleanSeqHolder (boolean[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.BooleanSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.BooleanSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.BooleanSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
54
jdkSrc/jdk8/org/omg/CORBA/Bounds.java
Normal file
54
jdkSrc/jdk8/org/omg/CORBA/Bounds.java
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A user exception thrown when a parameter is not within
|
||||
* the legal bounds for the object that a method is trying
|
||||
* to access.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
*/
|
||||
|
||||
public final class Bounds extends org.omg.CORBA.UserException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>Bounds</code> with no specified detail message.
|
||||
*/
|
||||
public Bounds() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>Bounds</code> with the specified detail message.
|
||||
*
|
||||
* @param reason the detail message.
|
||||
*/
|
||||
public Bounds(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
}
|
||||
110
jdkSrc/jdk8/org/omg/CORBA/ByteHolder.java
Normal file
110
jdkSrc/jdk8/org/omg/CORBA/ByteHolder.java
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Byte</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>byte</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>octet</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>ByteHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myByteHolder</code> is an instance of <code>ByteHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myByteHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class ByteHolder implements Streamable {
|
||||
/**
|
||||
* The <code>byte</code> value held by this <code>ByteHolder</code>
|
||||
* object.
|
||||
*/
|
||||
|
||||
public byte value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ByteHolder</code> object with its
|
||||
* <code>value</code> field initialized to 0.
|
||||
*/
|
||||
public ByteHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>ByteHolder</code> object for the given
|
||||
* <code>byte</code>.
|
||||
* @param initial the <code>byte</code> with which to initialize
|
||||
* the <code>value</code> field of the new
|
||||
* <code>ByteHolder</code> object
|
||||
*/
|
||||
public ByteHolder(byte initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads from <code>input</code> and initalizes the value in
|
||||
* this <code>ByteHolder</code> object
|
||||
* with the unmarshalled data.
|
||||
*
|
||||
* @param input the InputStream containing CDR formatted data from the wire.
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_octet();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals to <code>output</code> the value in
|
||||
* this <code>ByteHolder</code> object.
|
||||
*
|
||||
* @param output the OutputStream which will contain the CDR formatted data.
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_octet(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TypeCode corresponding to the value held in
|
||||
* this <code>ByteHolder</code> object.
|
||||
*
|
||||
* @return the TypeCode of the value held in
|
||||
* this <code>ByteHolder</code> object
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_octet);
|
||||
}
|
||||
}
|
||||
82
jdkSrc/jdk8/org/omg/CORBA/CODESET_INCOMPATIBLE.java
Normal file
82
jdkSrc/jdk8/org/omg/CORBA/CODESET_INCOMPATIBLE.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception is raised whenever meaningful communication is not possible
|
||||
* between client and server native code sets.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
public final class CODESET_INCOMPATIBLE extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>CODESET_INCOMPATIBLE</code> exception with
|
||||
* minor code set to 0 and CompletionStatus set to COMPLETED_NO.
|
||||
*/
|
||||
public CODESET_INCOMPATIBLE() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>CODESET_INCOMPATIBLE</code> exception with the
|
||||
* specified message.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
*/
|
||||
public CODESET_INCOMPATIBLE(String detailMessage) {
|
||||
this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>CODESET_INCOMPATIBLE</code> exception with the
|
||||
* specified minor code and completion status.
|
||||
*
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public CODESET_INCOMPATIBLE(int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
this("", minorCode, completionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>CODESET_INCOMPATIBLE</code> exception with the
|
||||
* specified message, minor code, and completion status.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public CODESET_INCOMPATIBLE(String detailMessage,
|
||||
int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
super(detailMessage, minorCode, completionStatus);
|
||||
}
|
||||
}
|
||||
90
jdkSrc/jdk8/org/omg/CORBA/COMM_FAILURE.java
Normal file
90
jdkSrc/jdk8/org/omg/CORBA/COMM_FAILURE.java
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception is raised if communication is lost while an operation
|
||||
* is in progress, after the request was sent by the client, but before
|
||||
* the reply from the server has been returned to the client.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning of
|
||||
* minor codes</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class COMM_FAILURE extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>COMM_FAILURE</code> exception with
|
||||
* a default minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public COMM_FAILURE() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>COMM_FAILURE</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the <code>String</code> containing a detail message describing
|
||||
* this exception
|
||||
*/
|
||||
public COMM_FAILURE(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>COMM_FAILURE</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status, which must be one of
|
||||
* <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
|
||||
* <code>COMPLETED_MAYBE</code>.
|
||||
*/
|
||||
public COMM_FAILURE(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>COMM_FAILURE</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status, which must be one of
|
||||
* <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
|
||||
* <code>COMPLETED_MAYBE</code>.
|
||||
*/
|
||||
public COMM_FAILURE(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
52
jdkSrc/jdk8/org/omg/CORBA/CTX_RESTRICT_SCOPE.java
Normal file
52
jdkSrc/jdk8/org/omg/CORBA/CTX_RESTRICT_SCOPE.java
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A flag that can be used as the second parameter to the method
|
||||
* <code>Context.get_values</code> to restrict the search scope.
|
||||
* When this flag is used, it restricts the search for
|
||||
* context values to this particular <code>Context</code> object
|
||||
* or to the scope specified in the first parameter to
|
||||
* <code>Context.get_values</code>.
|
||||
* <P>
|
||||
* Usage:
|
||||
* <PRE>
|
||||
* NVList props = myContext.get_values("_USER",
|
||||
* CTX_RESTRICT_SCOPE.value, "id*");
|
||||
* </PRE>
|
||||
*
|
||||
* @see org.omg.CORBA.Context#get_values(String, int, String)
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public interface CTX_RESTRICT_SCOPE {
|
||||
|
||||
/**
|
||||
* The field containing the <code>int</code> value of a
|
||||
* <code>CTX_RESTRICT_SCOPE</code> flag.
|
||||
*/
|
||||
int value = 15;
|
||||
}
|
||||
111
jdkSrc/jdk8/org/omg/CORBA/CharHolder.java
Normal file
111
jdkSrc/jdk8/org/omg/CORBA/CharHolder.java
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Char</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>char</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>char</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>CharHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myCharHolder</code> is an instance of <code>CharHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myCharHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class CharHolder implements Streamable {
|
||||
|
||||
/**
|
||||
* The <code>char</code> value held by this <code>CharHolder</code>
|
||||
* object.
|
||||
*/
|
||||
public char value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>CharHolder</code> object with its
|
||||
* <code>value</code> field initialized to <code>0</code>.
|
||||
*/
|
||||
public CharHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>CharHolder</code> object for the given
|
||||
* <code>char</code>.
|
||||
* @param initial the <code>char</code> with which to initialize
|
||||
* the <code>value</code> field of the new
|
||||
* <code>CharHolder</code> object
|
||||
*/
|
||||
public CharHolder(char initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads from <code>input</code> and initalizes the value in
|
||||
* this <code>CharHolder</code> object
|
||||
* with the unmarshalled data.
|
||||
*
|
||||
* @param input the InputStream containing CDR formatted data from the wire
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_char();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals to <code>output</code> the value in
|
||||
* this <code>CharHolder</code> object.
|
||||
*
|
||||
* @param output the OutputStream which will contain the CDR formatted data
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_char(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the <code>TypeCode</code> object corresponding
|
||||
* to the value held in
|
||||
* this <code>CharHolder</code> object.
|
||||
*
|
||||
* @return the TypeCode of the value held in
|
||||
* this <code>CharHolder</code> object
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_char);
|
||||
}
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/CharSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/CharSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>CharSeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/CharSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class CharSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/CharSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, char[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static char[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_char);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.CharSeqHelper.id (), "CharSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static char[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
char value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new char[_len0];
|
||||
istream.read_char_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, char[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_char_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/CharSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/CharSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>CharSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/CharSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class CharSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public char value[] = null;
|
||||
|
||||
public CharSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public CharSeqHolder (char[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.CharSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.CharSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.CharSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
142
jdkSrc/jdk8/org/omg/CORBA/CompletionStatus.java
Normal file
142
jdkSrc/jdk8/org/omg/CORBA/CompletionStatus.java
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* An object that indicates whether a method had completed running
|
||||
* when a <code>SystemException</code> was thrown.
|
||||
* <P>
|
||||
* The class <code>CompletionStatus</code>
|
||||
* contains three <code>CompletionStatus</code> instances, which are constants
|
||||
* representing each
|
||||
* possible completion status: <code>COMPLETED_MAYBE</code>,
|
||||
* <code>COMPLETED_NO</code>, and <code>COMPLETED_YES</code>.
|
||||
* It also contains
|
||||
* three <code>int</code> members, each a constant corresponding to one of
|
||||
* the <code>CompletionStatus</code> instances. These <code>int</code>
|
||||
* members make it possible to use a <code>switch</code> statement.
|
||||
* <P>
|
||||
* The class also contains two methods:
|
||||
* <UL>
|
||||
* <LI><code>public int <bold>value</bold>()</code> -- which accesses the
|
||||
* <code>value</code> field of a <code>CompletionStatus</code> object
|
||||
* <LI><code>public static CompletionStatus
|
||||
* <bold>from_int</bold>(int i)</code> --
|
||||
* for creating an instance from one of the <code>int</code> members
|
||||
* </UL>
|
||||
* @see org.omg.CORBA.SystemException
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class CompletionStatus implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
/**
|
||||
* The constant indicating that a method completed running
|
||||
* before a <code>SystemException</code> was thrown.
|
||||
*/
|
||||
public static final int _COMPLETED_YES = 0,
|
||||
|
||||
/**
|
||||
* The constant indicating that a method had not completed running
|
||||
* when a <code>SystemException</code> was thrown.
|
||||
*/
|
||||
_COMPLETED_NO = 1,
|
||||
|
||||
/**
|
||||
* The constant indicating that it is unknown whether a method had
|
||||
* completed running when a <code>SystemException</code> was thrown.
|
||||
*/
|
||||
_COMPLETED_MAYBE = 2;
|
||||
|
||||
|
||||
/**
|
||||
* An instance of <code>CompletionStatus</code> initialized with
|
||||
* the constant <code>_COMPLETED_YES</code>.
|
||||
*/
|
||||
public static final CompletionStatus COMPLETED_YES = new CompletionStatus(_COMPLETED_YES);
|
||||
|
||||
/**
|
||||
* An instance of <code>CompletionStatus</code> initialized with
|
||||
* the constant <code>_COMPLETED_NO</code>.
|
||||
*/
|
||||
public static final CompletionStatus COMPLETED_NO = new CompletionStatus(_COMPLETED_NO);
|
||||
|
||||
/**
|
||||
* An instance of <code>CompletionStatus</code> initialized with
|
||||
* the constant <code>_COMPLETED_MAYBE</code>.
|
||||
*/
|
||||
public static final CompletionStatus COMPLETED_MAYBE = new CompletionStatus(_COMPLETED_MAYBE);
|
||||
|
||||
/**
|
||||
* Retrieves the value of this <code>CompletionStatus</code> object.
|
||||
*
|
||||
* @return one of the possible <code>CompletionStatus</code> values:
|
||||
* <code>_COMPLETED_YES</code>, <code>_COMPLETED_NO</code>, or
|
||||
* <code>_COMPLETED_MAYBE</code>
|
||||
*
|
||||
*/
|
||||
public int value() { return _value; }
|
||||
|
||||
/**
|
||||
* Creates a <code>CompletionStatus</code> object from the given <code>int</code>.
|
||||
*
|
||||
* @param i one of <code>_COMPLETED_YES</code>, <code>_COMPLETED_NO</code>, or
|
||||
* <code>_COMPLETED_MAYBE</code>
|
||||
*
|
||||
* @return one of the possible <code>CompletionStatus</code> objects
|
||||
* with values:
|
||||
* <code>_COMPLETED_YES</code>, <code>_COMPLETED_NO</code>, or
|
||||
* <code>_COMPLETED_MAYBE</code>
|
||||
*
|
||||
* @exception org.omg.CORBA.BAD_PARAM if the argument given is not one of the
|
||||
* <code>int</code> constants defined in <code>CompletionStatus</code>
|
||||
*/
|
||||
public static CompletionStatus from_int(int i) {
|
||||
switch (i) {
|
||||
case _COMPLETED_YES:
|
||||
return COMPLETED_YES;
|
||||
case _COMPLETED_NO:
|
||||
return COMPLETED_NO;
|
||||
case _COMPLETED_MAYBE:
|
||||
return COMPLETED_MAYBE;
|
||||
default:
|
||||
throw new org.omg.CORBA.BAD_PARAM();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a <code>CompletionStatus</code> object from the given <code>int</code>.
|
||||
*
|
||||
* @param _value one of <code>_COMPLETED_YES</code>, <code>_COMPLETED_NO</code>, or
|
||||
* <code>_COMPLETED_MAYBE</code>
|
||||
*
|
||||
*/
|
||||
private CompletionStatus(int _value) {
|
||||
this._value = _value;
|
||||
}
|
||||
|
||||
private int _value;
|
||||
}
|
||||
79
jdkSrc/jdk8/org/omg/CORBA/CompletionStatusHelper.java
Normal file
79
jdkSrc/jdk8/org/omg/CORBA/CompletionStatusHelper.java
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>CompletionStatus</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/CompletionStatusHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* 03 June 1999 11:52:03 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
abstract public class CompletionStatusHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/CompletionStatus:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.CompletionStatus that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.CompletionStatus extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.CompletionStatusHelper.id (), "CompletionStatus", new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.CompletionStatus read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return org.omg.CORBA.CompletionStatus.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.CompletionStatus value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
244
jdkSrc/jdk8/org/omg/CORBA/Context.java
Normal file
244
jdkSrc/jdk8/org/omg/CORBA/Context.java
Normal file
@@ -0,0 +1,244 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* An object used in <code>Request</code> operations
|
||||
* to specify the context object in which context strings
|
||||
* must be resolved before being sent along with the request invocation.
|
||||
* A <code>Context</code> object
|
||||
* contains a list of properties in the form of <code>NamedValue</code>
|
||||
* objects. These properties represent information
|
||||
* about the client, the environment, or the circumstances of a request
|
||||
* and generally are properties that might be inconvenient
|
||||
* to pass as parameters.
|
||||
* <P>
|
||||
* A <code>Context</code> object is created by first calling the
|
||||
* <code>ORB</code> method <code>get_default_context</code>
|
||||
* and then calling the method <code>create_child</code> on the
|
||||
* default context.
|
||||
* <P>
|
||||
* Each property in a <code>Context</code> object is represented by
|
||||
* a <code>NamedValue</code> object. The property name is contained
|
||||
* in the <code>NamedValue</code> object's <code>name</code> field, and
|
||||
* the value associated with the name is contained in the <code>Any</code>
|
||||
* object that was assigned to the <code>NamedValue</code> object's
|
||||
* <code>value</code> field.
|
||||
* <P>
|
||||
* <code>Context</code> properties can represent a portion of a client's
|
||||
* or application's environment that is meant to be propagated to
|
||||
* (and made implicitly part of) a server's environment.
|
||||
* (Examples might be a window identifier or user preference information).
|
||||
* Once a server has been invoked (that is, after the properties are
|
||||
* propagated), the server may query its <code>Context</code> object
|
||||
* for these properties using the method <code>get_values</code>.
|
||||
*
|
||||
*<P>
|
||||
* When an operation declaration includes a context clause,
|
||||
* the stubs and skeletons will have an additional argument
|
||||
* added for the context. When an operation invocation occurs,
|
||||
* the ORB causes the properties that were named in the operation
|
||||
* definition in IDL and
|
||||
* that are present in the client's <code>Context</code> object
|
||||
* to be provided in the <code>Context</code> object parameter to
|
||||
* the invoked method.
|
||||
* <P>
|
||||
* <code>Context</code> property names (which are strings)
|
||||
* typically have the form of an OMG IDL identifier or
|
||||
* a series of OMG IDL identifiers separated by periods.
|
||||
* A context property name pattern is either a property name
|
||||
* or a property name followed by a single "*". A property
|
||||
* name pattern without a trailing "*" is said to match only
|
||||
* itself. A property name pattern of the form "<name>*" matches any
|
||||
* property name that starts with <name> and continues with zero
|
||||
* or more additional characters.
|
||||
* <P>
|
||||
* Property name patterns are used in the context clause of
|
||||
* an operation definition and as a parameter for the
|
||||
* method <code>Context.get_values</code>.
|
||||
* <P>
|
||||
* <code>Context</code> objects may be "chained" together to achieve a
|
||||
* particular defaulting behavior. A <code>Context</code>
|
||||
* object created with the method <code>create_child</code> will
|
||||
* be chained to its parent (the <code>Context</code> object
|
||||
* that created it), and that means that the parent will be searched
|
||||
* after the child in a search for property names.
|
||||
*<P>
|
||||
* Properties defined in a particular <code>Context</code> object
|
||||
* effectively override those properties in the next higher level.
|
||||
* The scope used in a search for properties may be restricted by specifying a
|
||||
* starting scope and by using the flag <code>CTX_RESTRICT_SCOPE</code>
|
||||
* when invoking the method <code>get_values</code>.
|
||||
* <P>
|
||||
* A <code>Context</code> object may be named for purposes of specifying
|
||||
* a starting search scope.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public abstract class Context {
|
||||
|
||||
/**
|
||||
* Retrieves the name of this <code>Context</code> object.
|
||||
*
|
||||
* @return the name of this <code>Context</code> object
|
||||
*/
|
||||
|
||||
public abstract String context_name();
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the parent of this <code>Context</code> object.
|
||||
*
|
||||
* @return the <code>Context</code> object that is the
|
||||
* parent of this <code>Context</code> object
|
||||
*/
|
||||
|
||||
public abstract Context parent();
|
||||
|
||||
/**
|
||||
* Creates a <code>Context</code> object with the given string as its
|
||||
* name and with this <code>Context</code> object set as its parent.
|
||||
* <P>
|
||||
* The new <code>Context</code> object is chained into its parent
|
||||
* <code>Context</code> object. This means that in a search for
|
||||
* matching property names, if a match is not found in this context,
|
||||
* the search will continue in the parent. If that is not successful,
|
||||
* the search will continue in the grandparent, if there is one, and
|
||||
* so on.
|
||||
*
|
||||
*
|
||||
* @param child_ctx_name the <code>String</code> object to be set as
|
||||
* the name of the new <code>Context</code> object
|
||||
* @return the newly-created child <code>Context</code> object
|
||||
* initialized with the specified name
|
||||
*/
|
||||
|
||||
public abstract Context create_child(String child_ctx_name);
|
||||
|
||||
/**
|
||||
* Creates a <code>NamedValue</code> object and adds it to this
|
||||
* <code>Context</code> object. The <code>name</code> field of the
|
||||
* new <code>NamedValue</code> object is set to the given string,
|
||||
* the <code>value</code> field is set to the given <code>Any</code>
|
||||
* object, and the <code>flags</code> field is set to zero.
|
||||
*
|
||||
* @param propname the name of the property to be set
|
||||
* @param propvalue the <code>Any</code> object to which the
|
||||
* value of the property will be set. The
|
||||
* <code>Any</code> object's <code>value</code>
|
||||
* field contains the value to be associated
|
||||
* with the given propname; the
|
||||
* <code>kind</code> field must be set to
|
||||
* <code>TCKind.tk_string</code>.
|
||||
*/
|
||||
|
||||
public abstract void set_one_value(String propname, Any propvalue);
|
||||
|
||||
/**
|
||||
I Sets one or more property values in this <code>Context</code>
|
||||
* object. The <code>NVList</code> supplied to this method
|
||||
* contains one or more <code>NamedValue</code> objects.
|
||||
* In each <code>NamedValue</code> object,
|
||||
* the <code>name</code> field holds the name of the property, and
|
||||
* the <code>flags</code> field must be set to zero.
|
||||
* The <code>NamedValue</code> object's <code>value</code> field
|
||||
* contains an <code>Any</code> object, which, in turn, contains the value
|
||||
* for the property. Since the value is always a string,
|
||||
* the <code>Any</code> object must have the <code>kind</code>
|
||||
* field of its <code>TypeCode</code> set to <code>TCKind.tk_string</code>.
|
||||
*
|
||||
* @param values an NVList containing the property
|
||||
* names and associated values to be set
|
||||
*
|
||||
* @see #get_values
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
* @see org.omg.CORBA.Any
|
||||
*/
|
||||
|
||||
public abstract void set_values(NVList values);
|
||||
|
||||
/**
|
||||
* Deletes from this <code>Context</code> object the
|
||||
* <code>NamedValue</code> object(s) whose
|
||||
* <code>name</code> field matches the given property name.
|
||||
* If the <code>String</code> object supplied for
|
||||
* <code>propname</code> has a
|
||||
* trailing wildcard character ("*"), then
|
||||
* all <code>NamedValue</code> objects whose <code>name</code>
|
||||
* fields match will be deleted. The search scope is always
|
||||
* limited to this <code>Context</code> object.
|
||||
* <P>
|
||||
* If no matching property is found, an exception is returned.
|
||||
*
|
||||
* @param propname name of the property to be deleted
|
||||
*/
|
||||
|
||||
public abstract void delete_values(String propname);
|
||||
|
||||
/**
|
||||
* Retrieves the <code>NamedValue</code> objects whose
|
||||
* <code>name</code> field matches the given name or name
|
||||
* pattern. This method allows for wildcard searches,
|
||||
* which means that there can be multiple matches and
|
||||
* therefore multiple values returned. If the
|
||||
* property is not found at the indicated level, the search
|
||||
* continues up the context object tree until a match is found or
|
||||
* all <code>Context</code> objects in the chain have been exhausted.
|
||||
* <P>
|
||||
* If no match is found, an error is returned and no property list
|
||||
* is returned.
|
||||
*
|
||||
* @param start_scope a <code>String</code> object indicating the
|
||||
* context object level at which to initiate the
|
||||
* search for the specified properties
|
||||
* (for example, "_USER", "_GROUP", "_SYSTEM"). Valid scope
|
||||
* names are implementation-specific. If a
|
||||
* scope name is omitted, the search
|
||||
* begins with the specified context
|
||||
* object. If the specified scope name is
|
||||
* not found, an exception is returned.
|
||||
* @param op_flags an operation flag. The one flag
|
||||
* that may be specified is <code>CTX_RESTRICT_SCOPE</code>.
|
||||
* If this flag is specified, searching is limited to the
|
||||
* specified <code>start_scope</code> or this
|
||||
* <code>Context</code> object.
|
||||
* @param pattern the property name whose values are to
|
||||
* be retrieved. <code>pattern</code> may be a
|
||||
* name or a name with a
|
||||
* trailing wildcard character ("*").
|
||||
*
|
||||
* @return an <code>NVList</code> containing all the property values
|
||||
* (in the form of <code>NamedValue</code> objects)
|
||||
* whose associated property name matches the given name or
|
||||
* name pattern
|
||||
* @see #set_values
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
*/
|
||||
|
||||
abstract public NVList get_values(String start_scope, int op_flags,
|
||||
String pattern);
|
||||
};
|
||||
106
jdkSrc/jdk8/org/omg/CORBA/ContextList.java
Normal file
106
jdkSrc/jdk8/org/omg/CORBA/ContextList.java
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* An object containing a modifiable list of <code>String</code> objects
|
||||
* that represent property names.
|
||||
* This class is used in <code>Request</code> operations to
|
||||
* describe the contexts that need to be resolved and sent with the
|
||||
* invocation. (A context is resolved by giving a property name
|
||||
* and getting back the value associated with it.) This is done
|
||||
* by calling the <code>Context</code> method
|
||||
* <code>get_values</code> and supplying a string from a
|
||||
* <code>ContextList</code> object as the third parameter.
|
||||
* The method <code>get_values</code> returns an <code>NVList</code>
|
||||
* object containing the <code>NamedValue</code> objects that hold
|
||||
* the value(s) identified by the given string.
|
||||
* <P>
|
||||
* A <code>ContextList</code> object is created by the ORB, as
|
||||
* illustrated here:
|
||||
* <PRE>
|
||||
* ORB orb = ORB.init(args, null);
|
||||
* org.omg.CORBA.ContextList ctxList = orb.create_context_list();
|
||||
* </PRE>
|
||||
* The variable <code>ctxList</code> represents an empty
|
||||
* <code>ContextList</code> object. Strings are added to
|
||||
* the list with the method <code>add</code>, accessed
|
||||
* with the method <code>item</code>, and removed with the
|
||||
* method <code>remove</code>.
|
||||
*
|
||||
* @see Context
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public abstract class ContextList {
|
||||
|
||||
/**
|
||||
* Returns the number of <code>String</code> objects in this
|
||||
* <code>ContextList</code> object.
|
||||
*
|
||||
* @return an <code>int</code> representing the number of
|
||||
* <code>String</code>s in this <code>ContextList</code> object
|
||||
*/
|
||||
|
||||
public abstract int count();
|
||||
|
||||
/**
|
||||
* Adds a <code>String</code> object to this <code>ContextList</code>
|
||||
* object.
|
||||
*
|
||||
* @param ctx the <code>String</code> object to be added
|
||||
*/
|
||||
|
||||
public abstract void add(String ctx);
|
||||
|
||||
/**
|
||||
* Returns the <code>String</code> object at the given index.
|
||||
*
|
||||
* @param index the index of the string desired, with 0 being the
|
||||
index of the first string
|
||||
* @return the string at the given index
|
||||
* @exception org.omg.CORBA.Bounds if the index is greater than
|
||||
* or equal to the number of strings in this
|
||||
* <code>ContextList</code> object
|
||||
*/
|
||||
|
||||
public abstract String item(int index) throws org.omg.CORBA.Bounds;
|
||||
|
||||
/**
|
||||
* Removes the <code>String</code> object at the given index. Note that
|
||||
* the indices of all strings following the one removed are
|
||||
* shifted down by one.
|
||||
*
|
||||
* @param index the index of the <code>String</code> object to be removed,
|
||||
* with 0 designating the first string
|
||||
* @exception org.omg.CORBA.Bounds if the index is greater than
|
||||
* or equal to the number of <code>String</code> objects in
|
||||
* this <code>ContextList</code> object
|
||||
*/
|
||||
|
||||
public abstract void remove(int index) throws org.omg.CORBA.Bounds;
|
||||
|
||||
}
|
||||
48
jdkSrc/jdk8/org/omg/CORBA/Current.java
Normal file
48
jdkSrc/jdk8/org/omg/CORBA/Current.java
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* Interfaces derived from the <tt>Current</tt> interface enable ORB and CORBA
|
||||
* services to provide access to information (context) associated with
|
||||
* the thread of execution in which they are running. This information
|
||||
* is accessed in a structured manner using interfaces derived from the
|
||||
* <tt>Current</tt> interface defined in the CORBA module.
|
||||
*
|
||||
* <P>Each ORB or CORBA service that needs its own context derives an
|
||||
* interface from the CORBA module's <tt>Current</tt>. Users of the
|
||||
* service can obtain an instance of the appropriate <tt>Current</tt>
|
||||
* interface by invoking <tt>ORB::resolve_initial_references</tt>.<P>
|
||||
*
|
||||
* org/omg/CORBA/Current.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
|
||||
* Saturday, July 17, 1999 12:26:21 AM PDT.
|
||||
*/
|
||||
|
||||
public interface Current extends CurrentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface Current
|
||||
87
jdkSrc/jdk8/org/omg/CORBA/CurrentHelper.java
Normal file
87
jdkSrc/jdk8/org/omg/CORBA/CurrentHelper.java
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>Current</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/CurrentHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
|
||||
* Saturday, July 17, 1999 12:26:21 AM PDT
|
||||
*/
|
||||
|
||||
abstract public class CurrentHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/Current:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.Current that)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL() ;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.Current extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL() ;
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CORBA.CurrentHelper.id (), "Current");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.Current read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL() ;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.Current value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL() ;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.Current narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CORBA.Current)
|
||||
return (org.omg.CORBA.Current)obj;
|
||||
else
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
}
|
||||
|
||||
}
|
||||
65
jdkSrc/jdk8/org/omg/CORBA/CurrentHolder.java
Normal file
65
jdkSrc/jdk8/org/omg/CORBA/CurrentHolder.java
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Current</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/CurrentHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
|
||||
* Saturday, July 17, 1999 12:26:21 AM PDT
|
||||
*/
|
||||
|
||||
public final class CurrentHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CORBA.Current value = null;
|
||||
|
||||
public CurrentHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public CurrentHolder (org.omg.CORBA.Current initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.CurrentHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.CurrentHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.CurrentHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
41
jdkSrc/jdk8/org/omg/CORBA/CurrentOperations.java
Normal file
41
jdkSrc/jdk8/org/omg/CORBA/CurrentOperations.java
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The interface for <tt>Current</tt>. For more information on
|
||||
* Operations interfaces, see <a href="doc-files/generatedfiles.html">
|
||||
* "Generated Files"</a>.
|
||||
*
|
||||
* org/omg/CORBA/CurrentOperations.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ../../../../../src/share/classes/org/omg/PortableServer/corba.idl
|
||||
* Saturday, July 17, 1999 12:26:21 AM PDT.
|
||||
*/
|
||||
|
||||
public interface CurrentOperations
|
||||
{
|
||||
} // interface CurrentOperations
|
||||
57
jdkSrc/jdk8/org/omg/CORBA/CustomMarshal.java
Normal file
57
jdkSrc/jdk8/org/omg/CORBA/CustomMarshal.java
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.DataOutputStream;
|
||||
import org.omg.CORBA.DataInputStream;
|
||||
|
||||
/**
|
||||
* An abstract value type that is meant to
|
||||
* be used by the ORB, not the user. Semantically it is treated
|
||||
* as a custom value type's implicit base class, although the custom
|
||||
* valuetype does not actually inherit it in IDL. The implementer
|
||||
* of a custom value type shall provide an implementation of the
|
||||
* <tt>CustomMarshal</tt> operations. The manner in which this is done is
|
||||
* specified in the IDL to Java langauge mapping. Each custom
|
||||
* marshaled value type shall have its own implementation.
|
||||
* @see DataInputStream
|
||||
*/
|
||||
public interface CustomMarshal {
|
||||
/**
|
||||
* Marshal method has to be implemented by the Customized Marshal class.
|
||||
* This is the method invoked for Marshalling.
|
||||
*
|
||||
* @param os a DataOutputStream
|
||||
*/
|
||||
void marshal(DataOutputStream os);
|
||||
/**
|
||||
* Unmarshal method has to be implemented by the Customized Marshal class.
|
||||
* This is the method invoked for Unmarshalling.
|
||||
*
|
||||
* @param is a DataInputStream
|
||||
*/
|
||||
void unmarshal(DataInputStream is);
|
||||
}
|
||||
85
jdkSrc/jdk8/org/omg/CORBA/DATA_CONVERSION.java
Normal file
85
jdkSrc/jdk8/org/omg/CORBA/DATA_CONVERSION.java
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception is raised if an ORB cannot convert the representation
|
||||
* of data as marshaled into its native representation or vice-versa.
|
||||
* For example, DATA_CONVERSION can be raised if wide character codeset
|
||||
* conversion fails, or if an ORB cannot convert floating point values
|
||||
* between different representations.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class DATA_CONVERSION extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>DATA_CONVERSION</code> exception with a default minor code
|
||||
* of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public DATA_CONVERSION() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>DATA_CONVERSION</code> exception with the specified detail.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public DATA_CONVERSION(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>DATA_CONVERSION</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public DATA_CONVERSION(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>DATA_CONVERSION</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public DATA_CONVERSION(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
344
jdkSrc/jdk8/org/omg/CORBA/DataInputStream.java
Normal file
344
jdkSrc/jdk8/org/omg/CORBA/DataInputStream.java
Normal file
@@ -0,0 +1,344 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/** Defines the methods used to read primitive data types from input streams
|
||||
* for unmarshaling custom value types. This interface is used by user
|
||||
* written custom unmarshaling code for custom value types.
|
||||
* @see org.omg.CORBA.DataOutputStream
|
||||
* @see org.omg.CORBA.CustomMarshal
|
||||
*/
|
||||
public interface DataInputStream extends org.omg.CORBA.portable.ValueBase
|
||||
{
|
||||
/** Reads an IDL <code>Any</code> value from the input stream.
|
||||
* @return the <code>Any</code> read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
org.omg.CORBA.Any read_any ();
|
||||
|
||||
/** Reads an IDL boolean value from the input stream.
|
||||
* @return the boolean read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
boolean read_boolean ();
|
||||
|
||||
/** Reads an IDL character value from the input stream.
|
||||
* @return the character read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
char read_char ();
|
||||
|
||||
/** Reads an IDL wide character value from the input stream.
|
||||
* @return the wide character read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
char read_wchar ();
|
||||
|
||||
/** Reads an IDL octet value from the input stream.
|
||||
* @return the octet value read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
byte read_octet ();
|
||||
|
||||
/** Reads an IDL short from the input stream.
|
||||
* @return the short read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
short read_short ();
|
||||
|
||||
/** Reads an IDL unsigned short from the input stream.
|
||||
* @return the unsigned short read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
short read_ushort ();
|
||||
|
||||
/** Reads an IDL long from the input stream.
|
||||
* @return the long read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
int read_long ();
|
||||
|
||||
/** Reads an IDL unsigned long from the input stream.
|
||||
* @return the unsigned long read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
int read_ulong ();
|
||||
|
||||
/** Reads an IDL long long from the input stream.
|
||||
* @return the long long read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
long read_longlong ();
|
||||
|
||||
/** Reads an unsigned IDL long long from the input stream.
|
||||
* @return the unsigned long long read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
long read_ulonglong ();
|
||||
|
||||
/** Reads an IDL float from the input stream.
|
||||
* @return the float read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
float read_float ();
|
||||
|
||||
/** Reads an IDL double from the input stream.
|
||||
* @return the double read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
double read_double ();
|
||||
// read_longdouble not supported by IDL/Java mapping
|
||||
|
||||
/** Reads an IDL string from the input stream.
|
||||
* @return the string read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
String read_string ();
|
||||
|
||||
/** Reads an IDL wide string from the input stream.
|
||||
* @return the wide string read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
String read_wstring ();
|
||||
|
||||
/** Reads an IDL CORBA::Object from the input stream.
|
||||
* @return the CORBA::Object read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
org.omg.CORBA.Object read_Object ();
|
||||
|
||||
/** Reads an IDL Abstract interface from the input stream.
|
||||
* @return the Abstract interface read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
java.lang.Object read_Abstract ();
|
||||
|
||||
/** Reads an IDL value type from the input stream.
|
||||
* @return the value type read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
java.io.Serializable read_Value ();
|
||||
|
||||
/** Reads an IDL typecode from the input stream.
|
||||
* @return the typecode read.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
org.omg.CORBA.TypeCode read_TypeCode ();
|
||||
|
||||
/** Reads array of IDL Anys from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_any_array (org.omg.CORBA.AnySeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL booleans from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_boolean_array (org.omg.CORBA.BooleanSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL characters from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_char_array (org.omg.CORBA.CharSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL wide characters from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_wchar_array (org.omg.CORBA.WCharSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL octets from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_octet_array (org.omg.CORBA.OctetSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL shorts from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_short_array (org.omg.CORBA.ShortSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL unsigned shorts from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_ushort_array (org.omg.CORBA.UShortSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL longs from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_long_array (org.omg.CORBA.LongSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL unsigned longs from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_ulong_array (org.omg.CORBA.ULongSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL unsigned long longs from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_ulonglong_array (org.omg.CORBA.ULongLongSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL long longs from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_longlong_array (org.omg.CORBA.LongLongSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL floats from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_float_array (org.omg.CORBA.FloatSeqHolder seq, int offset, int length);
|
||||
|
||||
/** Reads array of IDL doubles from offset for length elements from the
|
||||
* input stream.
|
||||
* @param seq The out parameter holder for the array to be read.
|
||||
* @param offset The index into seq of the first element to read from the
|
||||
* input stream.
|
||||
* @param length The number of elements to read from the input stream.
|
||||
* @throws <code>org.omg.CORBA.MARSHAL</code>
|
||||
* If an inconsistency is detected, including not having registered
|
||||
* a streaming policy, then the standard system exception MARSHAL is raised.
|
||||
*/
|
||||
void read_double_array (org.omg.CORBA.DoubleSeqHolder seq, int offset, int length);
|
||||
} // interface DataInputStream
|
||||
283
jdkSrc/jdk8/org/omg/CORBA/DataOutputStream.java
Normal file
283
jdkSrc/jdk8/org/omg/CORBA/DataOutputStream.java
Normal file
@@ -0,0 +1,283 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/** Defines the methods used to write primitive data types to output streams
|
||||
* for marshalling custom value types. This interface is used by user
|
||||
* written custom marshalling code for custom value types.
|
||||
* @see org.omg.CORBA.DataInputStream
|
||||
* @see org.omg.CORBA.CustomMarshal
|
||||
*/
|
||||
public interface DataOutputStream extends org.omg.CORBA.portable.ValueBase
|
||||
{
|
||||
/**
|
||||
* Writes the Any value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_any (org.omg.CORBA.Any value);
|
||||
|
||||
/**
|
||||
* Writes the boolean value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_boolean (boolean value);
|
||||
|
||||
/**
|
||||
* Writes the IDL character value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_char (char value);
|
||||
|
||||
/**
|
||||
* Writes the IDL wide character value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_wchar (char value);
|
||||
|
||||
/**
|
||||
* Writes the IDL octet value (represented as a Java byte) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_octet (byte value);
|
||||
|
||||
/**
|
||||
* Writes the IDL short value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_short (short value);
|
||||
|
||||
/**
|
||||
* Writes the IDL unsigned short value (represented as a Java short
|
||||
* value) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_ushort (short value);
|
||||
|
||||
/**
|
||||
* Writes the IDL long value (represented as a Java int) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_long (int value);
|
||||
|
||||
/**
|
||||
* Writes the IDL unsigned long value (represented as a Java int) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_ulong (int value);
|
||||
|
||||
/**
|
||||
* Writes the IDL long long value (represented as a Java long) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_longlong (long value);
|
||||
|
||||
/**
|
||||
* Writes the IDL unsigned long long value (represented as a Java long)
|
||||
* to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_ulonglong (long value);
|
||||
|
||||
/**
|
||||
* Writes the IDL float value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_float (float value);
|
||||
|
||||
/**
|
||||
* Writes the IDL double value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_double (double value);
|
||||
|
||||
// write_longdouble not supported by IDL/Java mapping
|
||||
|
||||
/**
|
||||
* Writes the IDL string value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_string (String value);
|
||||
|
||||
/**
|
||||
* Writes the IDL wide string value (represented as a Java String) to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_wstring (String value);
|
||||
|
||||
/**
|
||||
* Writes the IDL CORBA::Object value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_Object (org.omg.CORBA.Object value);
|
||||
|
||||
/**
|
||||
* Writes the IDL Abstract interface type to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_Abstract (java.lang.Object value);
|
||||
|
||||
/**
|
||||
* Writes the IDL value type value to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_Value (java.io.Serializable value);
|
||||
|
||||
/**
|
||||
* Writes the typecode to the output stream.
|
||||
* @param value The value to be written.
|
||||
*/
|
||||
void write_TypeCode (org.omg.CORBA.TypeCode value);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL Anys from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_any_array (org.omg.CORBA.Any[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL booleans from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_boolean_array (boolean[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL characters from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_char_array (char[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL wide characters from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_wchar_array (char[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL octets from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_octet_array (byte[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL shorts from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_short_array (short[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL unsigned shorts (represented as Java shorts)
|
||||
* from offset for length elements to the output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_ushort_array (short[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL longs from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_long_array (int[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL unsigned longs (represented as Java ints)
|
||||
* from offset for length elements to the output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_ulong_array (int[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL unsigned long longs (represented as Java longs)
|
||||
* from offset for length elements to the output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_ulonglong_array (long[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL long longs from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_longlong_array (long[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL floats from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_float_array (float[] seq, int offset, int length);
|
||||
|
||||
/**
|
||||
* Writes the array of IDL doubles from offset for length elements to the
|
||||
* output stream.
|
||||
* @param seq The array to be written.
|
||||
* @param offset The index into seq of the first element to write to the
|
||||
* output stream.
|
||||
* @param length The number of elements to write to the output stream.
|
||||
*/
|
||||
void write_double_array (double[] seq, int offset, int length);
|
||||
} // interface DataOutputStream
|
||||
501
jdkSrc/jdk8/org/omg/CORBA/DefinitionKind.java
Normal file
501
jdkSrc/jdk8/org/omg/CORBA/DefinitionKind.java
Normal file
@@ -0,0 +1,501 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: ./org/omg/CORBA/DefinitionKind.java
|
||||
* From: ./ir.idl
|
||||
* Date: Fri Aug 28 16:03:31 1998
|
||||
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The class that provides the constants used to identify the type of an
|
||||
* Interface Repository object. This class contains two kinds of constants,
|
||||
* those that are an <code>int</code> and those that are an instance of the class
|
||||
* <code>DefinitionKind</code>. This class provides the method
|
||||
* <code>from_int</code>, which given one
|
||||
* of the <code>int</code> constants, creates the corresponding
|
||||
* <code>DefinitionKind</code> instance. It also provides the method
|
||||
* <code>value</code>, which returns the <code>int</code> constant that
|
||||
* is the value for a <code>DefinitionKind</code> instance.
|
||||
*
|
||||
* @see IRObject
|
||||
*/
|
||||
|
||||
public class DefinitionKind implements org.omg.CORBA.portable.IDLEntity {
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object
|
||||
* does not have a definition kind.
|
||||
*/
|
||||
public static final int _dk_none = 0,
|
||||
|
||||
/**
|
||||
* The constant that indicates that the type of an Interface Repository object
|
||||
* may be any type.
|
||||
*/
|
||||
_dk_all = 1,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* attribute.
|
||||
*/
|
||||
_dk_Attribute = 2,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* constant.
|
||||
*/
|
||||
_dk_Constant = 3,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* exception.
|
||||
*/
|
||||
|
||||
_dk_Exception = 4,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* interface.
|
||||
*/
|
||||
|
||||
_dk_Interface = 5,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* module.
|
||||
*/
|
||||
|
||||
_dk_Module = 6,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* operation.
|
||||
*/
|
||||
|
||||
_dk_Operation = 7,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Typedef.
|
||||
*/
|
||||
|
||||
_dk_Typedef = 8,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* Alias.
|
||||
*/
|
||||
|
||||
_dk_Alias = 9,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Struct.
|
||||
*/
|
||||
|
||||
_dk_Struct = 10,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Union.
|
||||
*/
|
||||
|
||||
_dk_Union = 11,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* Enum.
|
||||
*/
|
||||
|
||||
_dk_Enum = 12,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Primitive.
|
||||
*/
|
||||
|
||||
_dk_Primitive = 13,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* String.
|
||||
*/
|
||||
|
||||
_dk_String = 14,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Sequence.
|
||||
*/
|
||||
|
||||
_dk_Sequence = 15,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is an
|
||||
* Array.
|
||||
*/
|
||||
|
||||
_dk_Array = 16,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Repository.
|
||||
*/
|
||||
|
||||
_dk_Repository = 17,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Wstring.
|
||||
*/
|
||||
|
||||
_dk_Wstring = 18,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is of type
|
||||
* Fixed.
|
||||
*/
|
||||
|
||||
_dk_Fixed = 19,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* Value.
|
||||
*/
|
||||
|
||||
_dk_Value = 20,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* ValueBox.
|
||||
*/
|
||||
|
||||
_dk_ValueBox = 21,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is a
|
||||
* ValueMember.
|
||||
*/
|
||||
|
||||
_dk_ValueMember = 22,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object is of type
|
||||
* Native.
|
||||
*/
|
||||
|
||||
_dk_Native = 23,
|
||||
|
||||
/**
|
||||
* The constant that indicates that an Interface Repository object
|
||||
* is representing an abstract interface.
|
||||
*/
|
||||
_dk_AbstractInterface = 24;
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object has no definition kind.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_none = new DefinitionKind(_dk_none);
|
||||
|
||||
/**
|
||||
* The wildcard <code>DefinitionKind</code> constant, useful
|
||||
* in all occasions where any
|
||||
* <code>DefinitionKind</code> is appropriate. The Container's
|
||||
* <code>contents</code> method
|
||||
* makes use of this constant to return all contained definitions of any kind.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_all = new DefinitionKind(_dk_all);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Attribute.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Attribute = new DefinitionKind(_dk_Attribute);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a constant.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Constant = new DefinitionKind(_dk_Constant);
|
||||
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Exception.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Exception = new DefinitionKind(_dk_Exception);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Interface.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Interface = new DefinitionKind(_dk_Interface);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Module.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Module = new DefinitionKind(_dk_Module);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Operation.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Operation = new DefinitionKind(_dk_Operation);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Typedef.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Typedef = new DefinitionKind(_dk_Typedef);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Alias.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Alias = new DefinitionKind(_dk_Alias);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Struct.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Struct = new DefinitionKind(_dk_Struct);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Union.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Union = new DefinitionKind(_dk_Union);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Enum.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Enum = new DefinitionKind(_dk_Enum);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Primitive.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Primitive = new DefinitionKind(_dk_Primitive);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a String.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_String = new DefinitionKind(_dk_String);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Sequence.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Sequence = new DefinitionKind(_dk_Sequence);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is an Array.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Array = new DefinitionKind(_dk_Array);
|
||||
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Repository.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Repository = new DefinitionKind(_dk_Repository);
|
||||
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Wstring.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Wstring = new DefinitionKind(_dk_Wstring);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Fixed value.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Fixed = new DefinitionKind(_dk_Fixed);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Value.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Value = new DefinitionKind(_dk_Value);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a ValueBox.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_ValueBox = new DefinitionKind(_dk_ValueBox);
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a ValueMember.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_ValueMember = new DefinitionKind(_dk_ValueMember);
|
||||
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object is a Native value.
|
||||
*/
|
||||
|
||||
public static final DefinitionKind dk_Native = new DefinitionKind(_dk_Native);
|
||||
|
||||
|
||||
/**
|
||||
* The static instance of <code>DefinitionKind</code> indicating that an
|
||||
* Interface Repository object represents an abstract interface.
|
||||
*/
|
||||
public static final DefinitionKind dk_AbstractInterface = new DefinitionKind(_dk_AbstractInterface);
|
||||
|
||||
|
||||
/**
|
||||
* Returns the <code>int</code> constant identifying the type of an IR object.
|
||||
* @return the <code>int</code> constant from the class
|
||||
* <code>DefinitionKind</code> that is the value of this
|
||||
* <code>DefinitionKind</code> instance
|
||||
*/
|
||||
|
||||
public int value() {
|
||||
return _value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a <code>DefinitionKind</code> instance corresponding to the given code
|
||||
.
|
||||
* @param i one of the <code>int</code> constants from the class
|
||||
* <code>DefinitionKind</code>
|
||||
* @return the <code>DefinitionKind</code> instance corresponding
|
||||
* to the given code
|
||||
* @throws org.omg.CORBA.BAD_PARAM if the given parameter is not
|
||||
one
|
||||
* of the <code>int</code> constants from the class
|
||||
* <code>DefinitionKind</code>
|
||||
*/
|
||||
|
||||
public static DefinitionKind from_int(int i) {
|
||||
switch (i) {
|
||||
case _dk_none:
|
||||
return dk_none;
|
||||
case _dk_all:
|
||||
return dk_all;
|
||||
case _dk_Attribute:
|
||||
return dk_Attribute;
|
||||
case _dk_Constant:
|
||||
return dk_Constant;
|
||||
case _dk_Exception:
|
||||
return dk_Exception;
|
||||
case _dk_Interface:
|
||||
return dk_Interface;
|
||||
case _dk_Module:
|
||||
return dk_Module;
|
||||
case _dk_Operation:
|
||||
return dk_Operation;
|
||||
case _dk_Typedef:
|
||||
return dk_Typedef;
|
||||
case _dk_Alias:
|
||||
return dk_Alias;
|
||||
case _dk_Struct:
|
||||
return dk_Struct;
|
||||
case _dk_Union:
|
||||
return dk_Union;
|
||||
case _dk_Enum:
|
||||
return dk_Enum;
|
||||
case _dk_Primitive:
|
||||
return dk_Primitive;
|
||||
case _dk_String:
|
||||
return dk_String;
|
||||
case _dk_Sequence:
|
||||
return dk_Sequence;
|
||||
case _dk_Array:
|
||||
return dk_Array;
|
||||
case _dk_Repository:
|
||||
return dk_Repository;
|
||||
case _dk_Wstring:
|
||||
return dk_Wstring;
|
||||
case _dk_Fixed:
|
||||
return dk_Fixed;
|
||||
case _dk_Value:
|
||||
return dk_Value;
|
||||
case _dk_ValueBox:
|
||||
return dk_ValueBox;
|
||||
case _dk_ValueMember:
|
||||
return dk_ValueMember;
|
||||
case _dk_Native:
|
||||
return dk_Native;
|
||||
default:
|
||||
throw new org.omg.CORBA.BAD_PARAM();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>DefinitionKind</code> object with its <code>_value</code>
|
||||
* field initialized with the given value.
|
||||
* @param _value one of the <code>int</code> constants defined in the
|
||||
* class <code>DefinitionKind</code>
|
||||
*/
|
||||
|
||||
protected DefinitionKind(int _value){
|
||||
this._value = _value;
|
||||
}
|
||||
|
||||
/**
|
||||
* The field that holds a value for a <code>DefinitionKind</code> object.
|
||||
* @serial
|
||||
*/
|
||||
|
||||
private int _value;
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/CORBA/DefinitionKindHelper.java
Normal file
80
jdkSrc/jdk8/org/omg/CORBA/DefinitionKindHelper.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>DefinitionKind</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/DefinitionKindHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ir.idl
|
||||
* 03 June 1999 11:33:43 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
abstract public class DefinitionKindHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/DefinitionKind:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.DefinitionKind that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.DefinitionKind extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CORBA.DefinitionKindHelper.id (), "DefinitionKind", new String[] { "dk_none", "dk_all", "dk_Attribute", "dk_Constant", "dk_Exception", "dk_Interface", "dk_Module", "dk_Operation", "dk_Typedef", "dk_Alias", "dk_Struct", "dk_Union", "dk_Enum", "dk_Primitive", "dk_String", "dk_Sequence", "dk_Array", "dk_Repository", "dk_Wstring", "dk_Fixed", "dk_Value", "dk_ValueBox", "dk_ValueMember", "dk_Native"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.DefinitionKind read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return org.omg.CORBA.DefinitionKind.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.DefinitionKind value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
43
jdkSrc/jdk8/org/omg/CORBA/DomainManager.java
Normal file
43
jdkSrc/jdk8/org/omg/CORBA/DomainManager.java
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/** Provides mechanisms for establishing and navigating relationships to
|
||||
* superior and subordinate domains, as well as for creating and accessing
|
||||
* policies. The <tt>DomainManager</tt> has associated with it the policy
|
||||
* objects for a
|
||||
* particular domain. The domain manager also records the membership of
|
||||
* the domain and provides the means to add and remove members. The domain
|
||||
* manager is itself a member of a domain, possibly the domain it manages.
|
||||
* The domain manager provides mechanisms for establishing and navigating
|
||||
* relationships to superior and subordinate domains and
|
||||
* creating and accessing policies.
|
||||
*/
|
||||
|
||||
public interface DomainManager extends DomainManagerOperations,
|
||||
org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
}
|
||||
49
jdkSrc/jdk8/org/omg/CORBA/DomainManagerOperations.java
Normal file
49
jdkSrc/jdk8/org/omg/CORBA/DomainManagerOperations.java
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Provides the <tt>DomainManager</tt> with the means to access policies.
|
||||
* <P>
|
||||
* The <tt>DomainManager</tt> has associated with it the policy objects for a
|
||||
* particular domain. The domain manager also records the membership of
|
||||
* the domain and provides the means to add and remove members. The domain
|
||||
* manager is itself a member of a domain, possibly the domain it manages.
|
||||
* The domain manager provides mechanisms for establishing and navigating
|
||||
* relationships to superior and subordinate domains and
|
||||
* creating and accessing policies.
|
||||
*/
|
||||
|
||||
public interface DomainManagerOperations
|
||||
{
|
||||
/** This returns the policy of the specified type for objects in
|
||||
* this domain. The types of policies available are domain specific.
|
||||
* See the CORBA specification for a list of standard ORB policies.
|
||||
*
|
||||
*@param policy_type Type of policy to request
|
||||
*/
|
||||
public org.omg.CORBA.Policy get_domain_policy(int policy_type);
|
||||
}
|
||||
109
jdkSrc/jdk8/org/omg/CORBA/DoubleHolder.java
Normal file
109
jdkSrc/jdk8/org/omg/CORBA/DoubleHolder.java
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Double</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>double</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>double</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>DoubleHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myDoubleHolder</code> is an instance of <code>DoubleHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myDoubleHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class DoubleHolder implements Streamable {
|
||||
|
||||
/**
|
||||
* The <code>double</code> value held by this <code>DoubleHolder</code>
|
||||
* object.
|
||||
*/
|
||||
|
||||
public double value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>DoubleHolder</code> object with its
|
||||
* <code>value</code> field initialized to 0.0.
|
||||
*/
|
||||
public DoubleHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>DoubleHolder</code> object for the given
|
||||
* <code>double</code>.
|
||||
* @param initial the <code>double</code> with which to initialize
|
||||
* the <code>value</code> field of the new
|
||||
* <code>DoubleHolder</code> object
|
||||
*/
|
||||
public DoubleHolder(double initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a double value from the input stream and store it in the
|
||||
* value member.
|
||||
*
|
||||
* @param input the <code>InputStream</code> to read from.
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_double();
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the double value stored in this holder to an
|
||||
* <code>OutputStream</code>.
|
||||
*
|
||||
* @param output the <code>OutputStream</code> to write into.
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_double(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the <code>TypeCode</code> of this holder object.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object.
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_double);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/DoubleSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/DoubleSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>DoubleSeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/DoubleSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:37 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class DoubleSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/DoubleSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, double[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static double[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.DoubleSeqHelper.id (), "DoubleSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static double[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
double value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new double[_len0];
|
||||
istream.read_double_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, double[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_double_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/DoubleSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/DoubleSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>DoubleSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/DoubleSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:37 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class DoubleSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public double value[] = null;
|
||||
|
||||
public DoubleSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public DoubleSeqHolder (double[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.DoubleSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.DoubleSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.DoubleSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
731
jdkSrc/jdk8/org/omg/CORBA/DynAny.java
Normal file
731
jdkSrc/jdk8/org/omg/CORBA/DynAny.java
Normal file
@@ -0,0 +1,731 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/** Enables <tt>org.omg.CORBA.Any</tt> values to be dynamically
|
||||
* interpreted (traversed) and
|
||||
* constructed. A <tt>DynAny</tt> object is associated with a data value
|
||||
* which may correspond to a copy of the value inserted into an <tt>Any</tt>.
|
||||
* The <tt>DynAny</tt> APIs enable traversal of the data value associated with an
|
||||
* Any at runtime and extraction of the primitive constituents of the
|
||||
* data value.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynAny.html">DynAny</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynAny extends org.omg.CORBA.Object
|
||||
{
|
||||
/**
|
||||
* Returns the <code>TypeCode</code> of the object inserted into
|
||||
* this <code>DynAny</code>.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object.
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode type() ;
|
||||
|
||||
/**
|
||||
* Copy the contents from one Dynamic Any into another.
|
||||
*
|
||||
* @param dyn_any the <code>DynAny</code> object whose contents
|
||||
* are assigned to this <code>DynAny</code>.
|
||||
* @throws Invalid if the source <code>DynAny</code> is
|
||||
* invalid
|
||||
*/
|
||||
public void assign(org.omg.CORBA.DynAny dyn_any)
|
||||
throws org.omg.CORBA.DynAnyPackage.Invalid;
|
||||
|
||||
/**
|
||||
* Make a <code>DynAny</code> object from an <code>Any</code>
|
||||
* object.
|
||||
*
|
||||
* @param value the <code>Any</code> object.
|
||||
* @throws Invalid if the source <code>Any</code> object is
|
||||
* empty or bad
|
||||
*/
|
||||
public void from_any(org.omg.CORBA.Any value)
|
||||
throws org.omg.CORBA.DynAnyPackage.Invalid;
|
||||
|
||||
/**
|
||||
* Convert a <code>DynAny</code> object to an <code>Any</code>
|
||||
* object.
|
||||
*
|
||||
* @return the <code>Any</code> object.
|
||||
* @throws Invalid if this <code>DynAny</code> is empty or
|
||||
* bad.
|
||||
* created or does not contain a meaningful value
|
||||
*/
|
||||
public org.omg.CORBA.Any to_any()
|
||||
throws org.omg.CORBA.DynAnyPackage.Invalid;
|
||||
|
||||
/**
|
||||
* Destroys this <code>DynAny</code> object and frees any resources
|
||||
* used to represent the data value associated with it. This method
|
||||
* also destroys all <code>DynAny</code> objects obtained from it.
|
||||
* <p>
|
||||
* Destruction of <code>DynAny</code> objects should be handled with
|
||||
* care, taking into account issues dealing with the representation of
|
||||
* data values associated with <code>DynAny</code> objects. A programmer
|
||||
* who wants to destroy a <code>DynAny</code> object but still be able
|
||||
* to manipulate some component of the data value associated with it,
|
||||
* should first create a <code>DynAny</code> object for the component
|
||||
* and then make a copy of the created <code>DynAny</code> object.
|
||||
*/
|
||||
public void destroy() ;
|
||||
|
||||
/**
|
||||
* Clones this <code>DynAny</code> object.
|
||||
*
|
||||
* @return a copy of this <code>DynAny</code> object
|
||||
*/
|
||||
public org.omg.CORBA.DynAny copy() ;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>boolean</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>boolean</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_boolean(boolean value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>byte</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>byte</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_octet(byte value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>char</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>char</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_char(char value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>short</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>short</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_short(short value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>short</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>short</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_ushort(short value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>int</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>int</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_long(int value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>int</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>int</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_ulong(int value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>float</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>float</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_float(float value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>double</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>double</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_double(double value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>String</code> object as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>String</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_string(String value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>org.omg.CORBA.Object</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>org.omg.CORBA.Object</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_reference(org.omg.CORBA.Object value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>org.omg.CORBA.TypeCode</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>org.omg.CORBA.TypeCode</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_typecode(org.omg.CORBA.TypeCode value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>long</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>long</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_longlong(long value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>long</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>long</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_ulonglong(long value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>char</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>char</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_wchar(char value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>String</code> as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>String</code> to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_wstring(String value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the given <code>org.omg.CORBA.Any</code> object as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>org.omg.CORBA.Any</code> object to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_any(org.omg.CORBA.Any value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
// orbos 98-01-18: Objects By Value -- begin
|
||||
|
||||
/**
|
||||
* Inserts the given <code>java.io.Serializable</code> object as the value for this
|
||||
* <code>DynAny</code> object.
|
||||
*
|
||||
* <p> If this method is called on a constructed <code>DynAny</code>
|
||||
* object, it initializes the next component of the constructed data
|
||||
* value associated with this <code>DynAny</code> object.
|
||||
*
|
||||
* @param value the <code>java.io.Serializable</code> object to insert into this
|
||||
* <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue
|
||||
* if the value inserted is not consistent with the type
|
||||
* of the accessed component in this <code>DynAny</code> object
|
||||
*/
|
||||
public void insert_val(java.io.Serializable value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Retrieves the <code>java.io.Serializable</code> object contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>java.io.Serializable</code> object that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>java.io.Serializable</code> object
|
||||
*/
|
||||
public java.io.Serializable get_val()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
// orbos 98-01-18: Objects By Value -- end
|
||||
|
||||
/**
|
||||
* Retrieves the <code>boolean</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>boolean</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>boolean</code>
|
||||
*/
|
||||
public boolean get_boolean()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>byte</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>byte</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>byte</code>
|
||||
*/
|
||||
public byte get_octet()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Retrieves the <code>char</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>char</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>char</code>
|
||||
*/
|
||||
public char get_char()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>short</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>short</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>short</code>
|
||||
*/
|
||||
public short get_short()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>short</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>short</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>short</code>
|
||||
*/
|
||||
public short get_ushort()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>int</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>int</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>int</code>
|
||||
*/
|
||||
public int get_long()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>int</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>int</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>int</code>
|
||||
*/
|
||||
public int get_ulong()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>float</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>float</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>float</code>
|
||||
*/
|
||||
public float get_float()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>double</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>double</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>double</code>
|
||||
*/
|
||||
public double get_double()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>String</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>String</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>String</code>
|
||||
*/
|
||||
public String get_string()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>org.omg.CORBA.Other</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>org.omg.CORBA.Other</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for an <code>org.omg.CORBA.Other</code>
|
||||
*/
|
||||
public org.omg.CORBA.Object get_reference()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>org.omg.CORBA.TypeCode</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>org.omg.CORBA.TypeCode</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>org.omg.CORBA.TypeCode</code>
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode get_typecode()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>long</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>long</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>long</code>
|
||||
*/
|
||||
public long get_longlong()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>long</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>long</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>long</code>
|
||||
*/
|
||||
public long get_ulonglong()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>char</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>char</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>char</code>
|
||||
*/
|
||||
public char get_wchar()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>String</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>String</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for a <code>String</code>
|
||||
*/
|
||||
public String get_wstring()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the <code>org.omg.CORBA.Any</code> contained
|
||||
* in this <code>DynAny</code> object.
|
||||
*
|
||||
* @return the <code>org.omg.CORBA.Any</code> that is the
|
||||
* value for this <code>DynAny</code> object
|
||||
* @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
|
||||
* if the type code of the accessed component in this
|
||||
* <code>DynAny</code> object is not equivalent to
|
||||
* the type code for an <code>org.omg.CORBA.Any</code>
|
||||
*/
|
||||
public org.omg.CORBA.Any get_any()
|
||||
throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Returns a <code>DynAny</code> object reference that can
|
||||
* be used to get/set the value of the component currently accessed.
|
||||
* The appropriate <code>insert</code> method
|
||||
* can be called on the resulting <code>DynAny</code> object
|
||||
* to initialize the component.
|
||||
* The appropriate <code>get</code> method
|
||||
* can be called on the resulting <code>DynAny</code> object
|
||||
* to extract the value of the component.
|
||||
*
|
||||
* @return a <code>DynAny</code> object reference that can be
|
||||
* used to retrieve or set the value of the component currently
|
||||
* accessed
|
||||
*/
|
||||
public org.omg.CORBA.DynAny current_component() ;
|
||||
|
||||
/**
|
||||
* Moves to the next component of this <code>DynAny</code> object.
|
||||
* This method is used for iterating through the components of
|
||||
* a constructed type, effectively moving a pointer from one
|
||||
* component to the next. The pointer starts out on the first
|
||||
* component when a <code>DynAny</code> object is created.
|
||||
*
|
||||
* @return <code>true</code> if the pointer points to a component;
|
||||
* <code>false</code> if there are no more components or this
|
||||
* <code>DynAny</code> is associated with a basic type rather than
|
||||
* a constructed type
|
||||
*/
|
||||
public boolean next() ;
|
||||
|
||||
/**
|
||||
* Moves the internal pointer to the given index. Logically, this method
|
||||
* sets a new offset for this pointer.
|
||||
*
|
||||
* @param index an <code>int</code> indicating the position to which
|
||||
* the pointer should move. The first position is 0.
|
||||
* @return <code>true</code> if the pointer points to a component;
|
||||
* <code>false</code> if there is no component at the designated
|
||||
* index. If this <code>DynAny</code> object is associated with a
|
||||
* basic type, this method returns <code>false</code> for any index
|
||||
* other than 0.
|
||||
*/
|
||||
public boolean seek(int index) ;
|
||||
|
||||
/**
|
||||
* Moves the internal pointer to the first component.
|
||||
*/
|
||||
public void rewind() ;
|
||||
}
|
||||
51
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/Invalid.java
Normal file
51
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/Invalid.java
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA.DynAnyPackage;
|
||||
|
||||
/**
|
||||
* Invalid is thrown by dynamic any operations when a bad
|
||||
* <code>DynAny</code> or <code>Any</code> is passed as a parameter.
|
||||
*/
|
||||
public final class Invalid
|
||||
extends org.omg.CORBA.UserException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>Invalid</code> object.
|
||||
*/
|
||||
public Invalid() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>Invalid</code> object.
|
||||
* @param reason a <code>String</code> giving more information
|
||||
* regarding the bad parameter passed to a dynamic any operation.
|
||||
*/
|
||||
public Invalid(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
}
|
||||
52
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/InvalidSeq.java
Normal file
52
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/InvalidSeq.java
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA.DynAnyPackage;
|
||||
|
||||
/**
|
||||
* The InvalidSeq exception is thrown by all operations on dynamic
|
||||
* anys that take a sequence (Java array) as an argument, when that
|
||||
* sequence is invalid.
|
||||
*/
|
||||
public final class InvalidSeq
|
||||
extends org.omg.CORBA.UserException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>InvalidSeq</code> object.
|
||||
*/
|
||||
public InvalidSeq() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>InvalidSeq</code> object.
|
||||
* @param reason a <code>String</code> giving more information
|
||||
* regarding the exception.
|
||||
*/
|
||||
public InvalidSeq(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
}
|
||||
53
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/InvalidValue.java
Normal file
53
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/InvalidValue.java
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA.DynAnyPackage;
|
||||
|
||||
/**
|
||||
* @author unattributed
|
||||
*
|
||||
* Dynamic Any insert operations raise the <code>InvalidValue</code>
|
||||
* exception if the value inserted is not consistent with the type
|
||||
* of the accessed component in the <code>DynAny</code> object.
|
||||
*/
|
||||
public final class InvalidValue
|
||||
extends org.omg.CORBA.UserException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>InvalidValue</code> object.
|
||||
*/
|
||||
public InvalidValue() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>InvalidValue</code> object.
|
||||
* @param reason a <code>String</code> giving more information
|
||||
* regarding the exception.
|
||||
*/
|
||||
public InvalidValue(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
}
|
||||
52
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/TypeMismatch.java
Normal file
52
jdkSrc/jdk8/org/omg/CORBA/DynAnyPackage/TypeMismatch.java
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA.DynAnyPackage;
|
||||
|
||||
/**
|
||||
* TypeMismatch is thrown by dynamic any accessor methods when
|
||||
* type of the actual contents do not match what is trying to be
|
||||
* accessed.
|
||||
*/
|
||||
public final class TypeMismatch
|
||||
extends org.omg.CORBA.UserException {
|
||||
|
||||
/**
|
||||
* Constructs a <code>TypeMismatch</code> object.
|
||||
*/
|
||||
public TypeMismatch() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>TypeMismatch</code> object.
|
||||
* @param reason a <code>String</code> giving more information
|
||||
* regarding the exception.
|
||||
*/
|
||||
public TypeMismatch(String reason) {
|
||||
super(reason);
|
||||
}
|
||||
}
|
||||
56
jdkSrc/jdk8/org/omg/CORBA/DynArray.java
Normal file
56
jdkSrc/jdk8/org/omg/CORBA/DynArray.java
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/** Represents a <tt>DynAny</tt> object associated
|
||||
* with an array.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynArray.html">DynArray</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynArray extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
/**
|
||||
* Returns the value of all the elements of this array.
|
||||
*
|
||||
* @return the array of <code>Any</code> objects that is the value
|
||||
* for this <code>DynArray</code> object
|
||||
* @see #set_elements
|
||||
*/
|
||||
public org.omg.CORBA.Any[] get_elements();
|
||||
|
||||
/**
|
||||
* Sets the value of this
|
||||
* <code>DynArray</code> object to the given array.
|
||||
*
|
||||
* @param value the array of <code>Any</code> objects
|
||||
* @exception InvalidSeq if the sequence is bad
|
||||
* @see #get_elements
|
||||
*/
|
||||
public void set_elements(org.omg.CORBA.Any[] value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
|
||||
}
|
||||
64
jdkSrc/jdk8/org/omg/CORBA/DynEnum.java
Normal file
64
jdkSrc/jdk8/org/omg/CORBA/DynEnum.java
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/** Represents a <tt>DynAny</tt> object associated
|
||||
* with an IDL enum.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynEnum.html">DynEnum</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynEnum extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
/**
|
||||
* Return the value of the IDL enum stored in this
|
||||
* <code>DynEnum</code> as a string.
|
||||
*
|
||||
* @return the stringified value.
|
||||
*/
|
||||
public String value_as_string();
|
||||
|
||||
/**
|
||||
* Set a particular enum in this <code>DynEnum</code>.
|
||||
*
|
||||
* @param arg the string corresponding to the value.
|
||||
*/
|
||||
public void value_as_string(String arg);
|
||||
|
||||
/**
|
||||
* Return the value of the IDL enum as a Java int.
|
||||
*
|
||||
* @return the integer value.
|
||||
*/
|
||||
public int value_as_ulong();
|
||||
|
||||
/**
|
||||
* Set the value of the IDL enum.
|
||||
*
|
||||
* @param arg the int value of the enum.
|
||||
*/
|
||||
public void value_as_ulong(int arg);
|
||||
}
|
||||
57
jdkSrc/jdk8/org/omg/CORBA/DynFixed.java
Normal file
57
jdkSrc/jdk8/org/omg/CORBA/DynFixed.java
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Represents a <code>DynAny</code> object that is associated
|
||||
* with an IDL fixed type.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynFixed.html">DynFixed</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynFixed extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
/**
|
||||
* Returns the value of the fixed type represented in this
|
||||
* <code>DynFixed</code> object.
|
||||
*
|
||||
* @return the value as a byte array
|
||||
* @see #set_value
|
||||
*/
|
||||
public byte[] get_value();
|
||||
|
||||
/**
|
||||
* Sets the given fixed type instance as the value for this
|
||||
* <code>DynFixed</code> object.
|
||||
*
|
||||
* @param val the value of the fixed type as a byte array
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidValue if the given
|
||||
* argument is bad
|
||||
* @see #get_value
|
||||
*/
|
||||
public void set_value(byte[] val)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidValue;
|
||||
}
|
||||
73
jdkSrc/jdk8/org/omg/CORBA/DynSequence.java
Normal file
73
jdkSrc/jdk8/org/omg/CORBA/DynSequence.java
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The representation of a <code>DynAny</code> object that is associated
|
||||
* with an IDL sequence.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynSequence.html">DynSequence</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynSequence extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the length of the sequence represented by this
|
||||
* <code>DynFixed</code> object.
|
||||
*
|
||||
* @return the length of the sequence
|
||||
*/
|
||||
public int length();
|
||||
|
||||
/**
|
||||
* Sets the length of the sequence represented by this
|
||||
* <code>DynFixed</code> object to the given argument.
|
||||
*
|
||||
* @param arg the length of the sequence
|
||||
*/
|
||||
public void length(int arg);
|
||||
|
||||
/**
|
||||
* Returns the value of every element in this sequence.
|
||||
*
|
||||
* @return an array of <code>Any</code> objects containing the values in
|
||||
* the sequence
|
||||
* @see #set_elements
|
||||
*/
|
||||
public org.omg.CORBA.Any[] get_elements();
|
||||
|
||||
/**
|
||||
* Sets the values of all elements in this sequence with the given
|
||||
* array.
|
||||
*
|
||||
* @param value the array of <code>Any</code> objects to be set
|
||||
* @exception InvalidSeq if the array of values is bad
|
||||
* @see #get_elements
|
||||
*/
|
||||
public void set_elements(org.omg.CORBA.Any[] value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
|
||||
}
|
||||
70
jdkSrc/jdk8/org/omg/CORBA/DynStruct.java
Normal file
70
jdkSrc/jdk8/org/omg/CORBA/DynStruct.java
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The representation of a <code>DynAny</code> object that is associated
|
||||
* with an IDL struct.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynStruct.html">DynStruct</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynStruct extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
/**
|
||||
* During a traversal, returns the name of the current member.
|
||||
*
|
||||
* @return the string name of the current member
|
||||
*/
|
||||
public String current_member_name();
|
||||
|
||||
/**
|
||||
* Returns the <code>TCKind</code> object that describes the kind of
|
||||
* the current member.
|
||||
*
|
||||
* @return the <code>TCKind</code> object that describes the current member
|
||||
*/
|
||||
public org.omg.CORBA.TCKind current_member_kind();
|
||||
|
||||
/**
|
||||
* Returns an array containing all the members of the stored struct.
|
||||
*
|
||||
* @return the array of name-value pairs
|
||||
* @see #set_members
|
||||
*/
|
||||
public org.omg.CORBA.NameValuePair[] get_members();
|
||||
|
||||
/**
|
||||
* Set the members of the struct.
|
||||
*
|
||||
* @param value the array of name-value pairs.
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidSeq if the given argument
|
||||
* is invalid
|
||||
* @see #get_members
|
||||
*/
|
||||
public void set_members(org.omg.CORBA.NameValuePair[] value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
|
||||
}
|
||||
94
jdkSrc/jdk8/org/omg/CORBA/DynUnion.java
Normal file
94
jdkSrc/jdk8/org/omg/CORBA/DynUnion.java
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The <code>DynUnion</code> interface represents a <code>DynAny</code> object
|
||||
* that is associated with an IDL union.
|
||||
* Union values can be traversed using the operations defined in <code>DynAny</code>.
|
||||
* The first component in the union corresponds to the discriminator;
|
||||
* the second corresponds to the actual value of the union.
|
||||
* Calling the method <code>next()</code> twice allows you to access both components.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynUnion.html">DynUnion</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynUnion extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
|
||||
{
|
||||
/**
|
||||
* Determines whether the discriminator associated with this union has been assigned
|
||||
* a valid default value.
|
||||
* @return <code>true</code> if the discriminator has a default value;
|
||||
* <code>false</code> otherwise
|
||||
*/
|
||||
public boolean set_as_default();
|
||||
|
||||
/**
|
||||
* Determines whether the discriminator associated with this union gets assigned
|
||||
* a valid default value.
|
||||
* @param arg <code>true</code> if the discriminator gets assigned a default value
|
||||
*/
|
||||
public void set_as_default(boolean arg);
|
||||
|
||||
/**
|
||||
* Returns a DynAny object reference that must be narrowed to the type
|
||||
* of the discriminator in order to insert/get the discriminator value.
|
||||
* @return a <code>DynAny</code> object reference representing the discriminator value
|
||||
*/
|
||||
public org.omg.CORBA.DynAny discriminator();
|
||||
|
||||
/**
|
||||
* Returns the TCKind object associated with the discriminator of this union.
|
||||
* @return the <code>TCKind</code> object associated with the discriminator of this union
|
||||
*/
|
||||
public org.omg.CORBA.TCKind discriminator_kind();
|
||||
|
||||
/**
|
||||
* Returns a DynAny object reference that is used in order to insert/get
|
||||
* a member of this union.
|
||||
* @return the <code>DynAny</code> object representing a member of this union
|
||||
*/
|
||||
public org.omg.CORBA.DynAny member();
|
||||
|
||||
/**
|
||||
* Allows for the inspection of the name of this union member
|
||||
* without checking the value of the discriminator.
|
||||
* @return the name of this union member
|
||||
*/
|
||||
public String member_name();
|
||||
|
||||
/**
|
||||
* Allows for the assignment of the name of this union member.
|
||||
* @param arg the new name of this union member
|
||||
*/
|
||||
public void member_name(String arg);
|
||||
|
||||
/**
|
||||
* Returns the TCKind associated with the member of this union.
|
||||
* @return the <code>TCKind</code> object associated with the member of this union
|
||||
*/
|
||||
public org.omg.CORBA.TCKind member_kind();
|
||||
}
|
||||
73
jdkSrc/jdk8/org/omg/CORBA/DynValue.java
Normal file
73
jdkSrc/jdk8/org/omg/CORBA/DynValue.java
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The representation of a <code>DynAny</code> object that is associated
|
||||
* with an IDL value type.
|
||||
* @deprecated Use the new <a href="../DynamicAny/DynValue.html">DynValue</a> instead
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DynValue extends org.omg.CORBA.Object, org.omg.CORBA.DynAny {
|
||||
|
||||
/**
|
||||
* Returns the name of the current member while traversing a
|
||||
* <code>DynAny</code> object that represents a Value object.
|
||||
*
|
||||
* @return the name of the current member
|
||||
*/
|
||||
String current_member_name();
|
||||
|
||||
/**
|
||||
* Returns the <code>TCKind</code> object that describes the current member.
|
||||
*
|
||||
* @return the <code>TCKind</code> object corresponding to the current
|
||||
* member
|
||||
*/
|
||||
TCKind current_member_kind();
|
||||
|
||||
/**
|
||||
* Returns an array containing all the members of the value object
|
||||
* stored in this <code>DynValue</code>.
|
||||
*
|
||||
* @return an array of name-value pairs.
|
||||
* @see #set_members
|
||||
*/
|
||||
org.omg.CORBA.NameValuePair[] get_members();
|
||||
|
||||
/**
|
||||
* Sets the members of the value object this <code>DynValue</code>
|
||||
* object represents to the given array of <code>NameValuePair</code>
|
||||
* objects.
|
||||
*
|
||||
* @param value the array of name-value pairs to be set
|
||||
* @throws org.omg.CORBA.DynAnyPackage.InvalidSeq
|
||||
* if an inconsistent value is part of the given array
|
||||
* @see #get_members
|
||||
*/
|
||||
void set_members(NameValuePair[] value)
|
||||
throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
|
||||
}
|
||||
47
jdkSrc/jdk8/org/omg/CORBA/DynamicImplementation.java
Normal file
47
jdkSrc/jdk8/org/omg/CORBA/DynamicImplementation.java
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.ObjectImpl;
|
||||
|
||||
/**
|
||||
* @deprecated org.omg.CORBA.DynamicImplementation
|
||||
*/
|
||||
@Deprecated
|
||||
public class DynamicImplementation extends org.omg.CORBA.portable.ObjectImpl {
|
||||
|
||||
/**
|
||||
* @deprecated Deprecated by Portable Object Adapter
|
||||
*/
|
||||
@Deprecated
|
||||
public void invoke(ServerRequest request) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT();
|
||||
}
|
||||
|
||||
public String[] _ids() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT();
|
||||
}
|
||||
}
|
||||
61
jdkSrc/jdk8/org/omg/CORBA/Environment.java
Normal file
61
jdkSrc/jdk8/org/omg/CORBA/Environment.java
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A container (holder) for an exception that is used in <code>Request</code>
|
||||
* operations to make exceptions available to the client. An
|
||||
* <code>Environment</code> object is created with the <code>ORB</code>
|
||||
* method <code>create_environment</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public abstract class Environment {
|
||||
|
||||
/**
|
||||
* Retrieves the exception in this <code>Environment</code> object.
|
||||
*
|
||||
* @return the exception in this <code>Environment</code> object
|
||||
*/
|
||||
|
||||
public abstract java.lang.Exception exception();
|
||||
|
||||
/**
|
||||
* Inserts the given exception into this <code>Environment</code> object.
|
||||
*
|
||||
* @param except the exception to be set
|
||||
*/
|
||||
|
||||
public abstract void exception(java.lang.Exception except);
|
||||
|
||||
/**
|
||||
* Clears this <code>Environment</code> object of its exception.
|
||||
*/
|
||||
|
||||
public abstract void clear();
|
||||
|
||||
}
|
||||
110
jdkSrc/jdk8/org/omg/CORBA/ExceptionList.java
Normal file
110
jdkSrc/jdk8/org/omg/CORBA/ExceptionList.java
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* An object used in <code>Request</code> operations to
|
||||
* describe the exceptions that can be thrown by a method. It maintains a
|
||||
* modifiable list of <code>TypeCode</code>s of the exceptions.
|
||||
* <P>
|
||||
* The following code fragment demonstrates creating
|
||||
* an <code>ExceptionList</code> object:
|
||||
* <PRE>
|
||||
* ORB orb = ORB.init(args, null);
|
||||
* org.omg.CORBA.ExceptionList excList = orb.create_exception_list();
|
||||
* </PRE>
|
||||
* The variable <code>excList</code> represents an <code>ExceptionList</code>
|
||||
* object with no <code>TypeCode</code> objects in it.
|
||||
* <P>
|
||||
* To add items to the list, you first create a <code>TypeCode</code> object
|
||||
* for the exception you want to include, using the <code>ORB</code> method
|
||||
* <code>create_exception_tc</code>. Then you use the <code>ExceptionList</code>
|
||||
* method <code>add</code> to add it to the list.
|
||||
* The class <code>ExceptionList</code> has a method for getting
|
||||
* the number of <code>TypeCode</code> objects in the list, and after
|
||||
* items have been added, it is possible to call methods for accessing
|
||||
* or deleting an item at a designated index.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public abstract class ExceptionList {
|
||||
|
||||
/**
|
||||
* Retrieves the number of <code>TypeCode</code> objects in this
|
||||
* <code>ExceptionList</code> object.
|
||||
*
|
||||
* @return the number of <code>TypeCode</code> objects in this
|
||||
* <code>ExceptionList</code> object
|
||||
*/
|
||||
|
||||
public abstract int count();
|
||||
|
||||
/**
|
||||
* Adds a <code>TypeCode</code> object describing an exception
|
||||
* to this <code>ExceptionList</code> object.
|
||||
*
|
||||
* @param exc the <code>TypeCode</code> object to be added
|
||||
*/
|
||||
|
||||
public abstract void add(TypeCode exc);
|
||||
|
||||
/**
|
||||
* Returns the <code>TypeCode</code> object at the given index. The first
|
||||
* item is at index 0.
|
||||
*
|
||||
* @param index the index of the <code>TypeCode</code> object desired.
|
||||
* This must be an <code>int</code> between 0 and the
|
||||
* number of <code>TypeCode</code> objects
|
||||
* minus one, inclusive.
|
||||
* @return the <code>TypeCode</code> object at the given index
|
||||
* @exception org.omg.CORBA.Bounds if the index given is greater than
|
||||
* or equal to the number of <code>TypeCode</code> objects
|
||||
* in this <code>ExceptionList</code> object
|
||||
*/
|
||||
|
||||
public abstract TypeCode item(int index)
|
||||
throws org.omg.CORBA.Bounds;
|
||||
|
||||
/**
|
||||
* Removes the <code>TypeCode</code> object at the given index.
|
||||
* Note that the indices of all the <code>TypeCoded</code> objects
|
||||
* following the one deleted are shifted down by one.
|
||||
*
|
||||
* @param index the index of the <code>TypeCode</code> object to be
|
||||
* removed.
|
||||
* This must be an <code>int</code> between 0 and the
|
||||
* number of <code>TypeCode</code> objects
|
||||
* minus one, inclusive.
|
||||
*
|
||||
* @exception org.omg.CORBA.Bounds if the index is greater than
|
||||
* or equal to the number of <code>TypeCode</code> objects
|
||||
* in this <code>ExceptionList</code> object
|
||||
*/
|
||||
|
||||
public abstract void remove(int index)
|
||||
throws org.omg.CORBA.Bounds;
|
||||
}
|
||||
81
jdkSrc/jdk8/org/omg/CORBA/FREE_MEM.java
Normal file
81
jdkSrc/jdk8/org/omg/CORBA/FREE_MEM.java
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown
|
||||
* when the ORB failed in an attempt to free dynamic memory, for example
|
||||
* because of heap corruption or memory segments being locked.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class FREE_MEM extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>FREE_MEM</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public FREE_MEM() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>FREE_MEM</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public FREE_MEM(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>FREE_MEM</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public FREE_MEM(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>FREE_MEM</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public FREE_MEM(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
82
jdkSrc/jdk8/org/omg/CORBA/FieldNameHelper.java
Normal file
82
jdkSrc/jdk8/org/omg/CORBA/FieldNameHelper.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>FieldName</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/FieldNameHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* 03 June 1999 11:52:03 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
abstract public class FieldNameHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/FieldName:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.FieldNameHelper.id (), "FieldName", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
98
jdkSrc/jdk8/org/omg/CORBA/FixedHolder.java
Normal file
98
jdkSrc/jdk8/org/omg/CORBA/FixedHolder.java
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Fixed</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* FixedHolder is a container class for values of IDL type "fixed",
|
||||
* which is mapped to the Java class java.math.BigDecimal.
|
||||
* It is usually used to store "out" and "inout" IDL method parameters.
|
||||
* If an IDL method signature has a fixed as an "out" or "inout" parameter,
|
||||
* the programmer must pass an instance of FixedHolder as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the contained
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
*
|
||||
*/
|
||||
public final class FixedHolder implements Streamable {
|
||||
/**
|
||||
* The value held by the FixedHolder
|
||||
*/
|
||||
public java.math.BigDecimal value;
|
||||
|
||||
/**
|
||||
* Construct the FixedHolder without initializing the contained value.
|
||||
*/
|
||||
public FixedHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct the FixedHolder and initialize it with the given value.
|
||||
* @param initial the value used to initialize the FixedHolder
|
||||
*/
|
||||
public FixedHolder(java.math.BigDecimal initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a fixed point value from the input stream and store it in
|
||||
* the value member.
|
||||
*
|
||||
* @param input the <code>InputStream</code> to read from.
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_fixed();
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the fixed point value stored in this holder to an
|
||||
* <code>OutputStream</code>.
|
||||
*
|
||||
* @param output the <code>OutputStream</code> to write into.
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_fixed(value);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the <code>TypeCode</code> of this holder object.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object.
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_fixed);
|
||||
}
|
||||
|
||||
}
|
||||
105
jdkSrc/jdk8/org/omg/CORBA/FloatHolder.java
Normal file
105
jdkSrc/jdk8/org/omg/CORBA/FloatHolder.java
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Float</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>float</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>float</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>FloatHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myFloatHolder</code> is an instance of <code>FloatHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myFloatHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class FloatHolder implements Streamable {
|
||||
/**
|
||||
* The <code>float</code> value held by this <code>FloatHolder</code>
|
||||
* object.
|
||||
*/
|
||||
public float value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>FloatHolder</code> object with its
|
||||
* <code>value</code> field initialized to 0.0.
|
||||
*/
|
||||
public FloatHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>FloatHolder</code> object for the given
|
||||
* <code>float</code>.
|
||||
* @param initial the <code>float</code> with which to initialize
|
||||
* the <code>value</code> field of the new
|
||||
* <code>FloatHolder</code> object
|
||||
*/
|
||||
public FloatHolder(float initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read a float from an input stream and initialize the value
|
||||
* member with the float value.
|
||||
*
|
||||
* @param input the <code>InputStream</code> to read from.
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_float();
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the float value into an output stream.
|
||||
*
|
||||
* @param output the <code>OutputStream</code> to write into.
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_float(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the <code>TypeCode</code> of this Streamable.
|
||||
*
|
||||
* @return the <code>TypeCode</code> object.
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_float);
|
||||
}
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/FloatSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/FloatSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>FloatSeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/FloatSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:37 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class FloatSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/FloatSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, float[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static float[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.FloatSeqHelper.id (), "FloatSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static float[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
float value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new float[_len0];
|
||||
istream.read_float_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, float[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_float_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/FloatSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/FloatSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>FloatSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/FloatSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:37 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class FloatSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public float value[] = null;
|
||||
|
||||
public FloatSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public FloatSeqHolder (float[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.FloatSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.FloatSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.FloatSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
49
jdkSrc/jdk8/org/omg/CORBA/IDLType.java
Normal file
49
jdkSrc/jdk8/org/omg/CORBA/IDLType.java
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
* File: ./org/omg/CORBA/IDLType.java
|
||||
* From: ./ir.idl
|
||||
* Date: Fri Aug 28 16:03:31 1998
|
||||
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
/**
|
||||
* tempout/org/omg/CORBA/IDLType.java
|
||||
* Generated by the IBM IDL-to-Java compiler, version 1.0
|
||||
* from ../../Lib/ir.idl
|
||||
* Thursday, February 25, 1999 2:11:23 o'clock PM PST
|
||||
*/
|
||||
|
||||
/**
|
||||
* An abstract interface inherited by all Interface Repository
|
||||
* (IR) objects that represent OMG IDL types. It provides access
|
||||
* to the <code>TypeCode</code> object describing the type and is used in defining the
|
||||
* other interfaces wherever definitions of <code>IDLType</code> must be referenced.
|
||||
*/
|
||||
|
||||
public interface IDLType extends IDLTypeOperations, org.omg.CORBA.IRObject, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface IDLType
|
||||
95
jdkSrc/jdk8/org/omg/CORBA/IDLTypeHelper.java
Normal file
95
jdkSrc/jdk8/org/omg/CORBA/IDLTypeHelper.java
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>IDLType</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/IDLTypeHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ir.idl
|
||||
* 03 June 1999 11:33:44 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
abstract public class IDLTypeHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/IDLType:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.IDLType that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.IDLType extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CORBA.IDLTypeHelper.id (), "IDLType");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.IDLType read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_IDLTypeStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.IDLType value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static org.omg.CORBA.IDLType narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CORBA.IDLType)
|
||||
return (org.omg.CORBA.IDLType)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
return new org.omg.CORBA._IDLTypeStub (delegate);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
58
jdkSrc/jdk8/org/omg/CORBA/IDLTypeOperations.java
Normal file
58
jdkSrc/jdk8/org/omg/CORBA/IDLTypeOperations.java
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The interface for <tt>IDLType</tt>. For more information on
|
||||
* Operations interfaces, see <a href="doc-files/generatedfiles.html#operations">
|
||||
* "Generated Files: Operations files"</a>.
|
||||
*/
|
||||
|
||||
/*
|
||||
tempout/org/omg/CORBA/IDLTypeOperations.java
|
||||
Generated by the IBM IDL-to-Java compiler, version 1.0
|
||||
from ../../Lib/ir.idl
|
||||
Thursday, February 25, 1999 2:11:23 o'clock PM PST
|
||||
*/
|
||||
|
||||
/**
|
||||
* This interface must be implemented by all IDLType objects.
|
||||
* The IDLType is inherited by all IR objects that
|
||||
* represent IDL types, including interfaces, typedefs, and
|
||||
* anonymous types.
|
||||
* @see IDLType
|
||||
* @see IRObject
|
||||
* @see IRObjectOperations
|
||||
*/
|
||||
|
||||
public interface IDLTypeOperations extends org.omg.CORBA.IRObjectOperations
|
||||
{
|
||||
/**
|
||||
* The type attribute describes the type defined by an object
|
||||
* derived from <code>IDLType</code>.
|
||||
* @return the <code>TypeCode</code> defined by this object.
|
||||
*/
|
||||
org.omg.CORBA.TypeCode type ();
|
||||
} // interface IDLTypeOperations
|
||||
85
jdkSrc/jdk8/org/omg/CORBA/IMP_LIMIT.java
Normal file
85
jdkSrc/jdk8/org/omg/CORBA/IMP_LIMIT.java
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates that an implementation limit was
|
||||
* exceeded in the ORB run time. For example, an ORB may reach
|
||||
* the maximum number of references it can hold simultaneously
|
||||
* in an address space, the size of a parameter may have
|
||||
* exceeded the allowed maximum, or an ORB may impose a maximum
|
||||
* on the number of clients or servers that can run simultaneously.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
|
||||
public final class IMP_LIMIT extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>IMP_LIMIT</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public IMP_LIMIT() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>IMP_LIMIT</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
*
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public IMP_LIMIT(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>IMP_LIMIT</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public IMP_LIMIT(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>IMP_LIMIT</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public IMP_LIMIT(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
87
jdkSrc/jdk8/org/omg/CORBA/INITIALIZE.java
Normal file
87
jdkSrc/jdk8/org/omg/CORBA/INITIALIZE.java
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown
|
||||
* when an ORB has encountered a failure during its initialization,
|
||||
* such as failure to acquire networking resources or detecting a
|
||||
* configuration error.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INITIALIZE extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INITIALIZE</code> exception with a default
|
||||
* minor code of 0 and a completion state of
|
||||
* <code>CompletionStatus.COMPLETED_NO</code>.
|
||||
*/
|
||||
public INITIALIZE() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INITIALIZE</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of
|
||||
* <code>CompletionStatus.COMPLETED_NO</code>.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INITIALIZE(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INITIALIZE</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* indicating the completion status of the method
|
||||
* that threw this exception
|
||||
*/
|
||||
public INITIALIZE(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INITIALIZE</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* indicating the completion status of the method
|
||||
* that threw this exception
|
||||
*/
|
||||
public INITIALIZE(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
87
jdkSrc/jdk8/org/omg/CORBA/INTERNAL.java
Normal file
87
jdkSrc/jdk8/org/omg/CORBA/INTERNAL.java
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates an internal failure in an ORB, for
|
||||
* example, if an ORB has detected corruption of its internal
|
||||
* data structures.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">meaning
|
||||
* of minor codes</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INTERNAL extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INTERNAL</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INTERNAL() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTERNAL</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INTERNAL(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTERNAL</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* that indicates the completion status of the method
|
||||
* that threw this exception
|
||||
*/
|
||||
public INTERNAL(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTERNAL</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* that indicates the completion status of the method
|
||||
* that threw this exception
|
||||
*/
|
||||
public INTERNAL(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/CORBA/INTF_REPOS.java
Normal file
80
jdkSrc/jdk8/org/omg/CORBA/INTF_REPOS.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception raised
|
||||
* when an ORB cannot reach the interface
|
||||
* repository, or some other failure relating to the interface repository
|
||||
* is detected.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INTF_REPOS extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INTF_REPOS</code> exception with a default minor code
|
||||
* of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INTF_REPOS() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTF_REPOS</code> exception with the specified detail.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INTF_REPOS(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTF_REPOS</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INTF_REPOS(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INTF_REPOS</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INTF_REPOS(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
85
jdkSrc/jdk8/org/omg/CORBA/INVALID_ACTIVITY.java
Normal file
85
jdkSrc/jdk8/org/omg/CORBA/INVALID_ACTIVITY.java
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* The <code>INVALID_ACTIVITY</code> system exception may be raised on the
|
||||
* Activity or Transaction services' resume methods if a transaction or
|
||||
* Activity is resumed in a context different to that from which it was
|
||||
* suspended. It is also raised when an attempted invocation is made that
|
||||
* is incompatible with the Activity's current state.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since J2SE 1.5
|
||||
*/
|
||||
|
||||
public final class INVALID_ACTIVITY extends SystemException {
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_ACTIVITY</code> exception with
|
||||
* minor code set to 0 and CompletionStatus set to COMPLETED_NO.
|
||||
*/
|
||||
public INVALID_ACTIVITY() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_ACTIVITY</code> exception with the
|
||||
* specified message.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
*/
|
||||
public INVALID_ACTIVITY(String detailMessage) {
|
||||
this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_ACTIVITY</code> exception with the
|
||||
* specified minor code and completion status.
|
||||
*
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public INVALID_ACTIVITY(int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
this("", minorCode, completionStatus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_ACTIVITY</code> exception with the
|
||||
* specified message, minor code, and completion status.
|
||||
*
|
||||
* @param detailMessage string containing a detailed message.
|
||||
* @param minorCode minor code.
|
||||
* @param completionStatus completion status.
|
||||
*/
|
||||
public INVALID_ACTIVITY(String detailMessage,
|
||||
int minorCode,
|
||||
CompletionStatus completionStatus) {
|
||||
super(detailMessage, minorCode, completionStatus);
|
||||
}
|
||||
}
|
||||
82
jdkSrc/jdk8/org/omg/CORBA/INVALID_TRANSACTION.java
Normal file
82
jdkSrc/jdk8/org/omg/CORBA/INVALID_TRANSACTION.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown
|
||||
* when the request carried an invalid transaction context.
|
||||
* For example, this exception could be raised if an error
|
||||
* occurred when trying to register a resource.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*
|
||||
*/
|
||||
|
||||
public final class INVALID_TRANSACTION extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INVALID_TRANSACTION</code> exception with a default minor code
|
||||
* of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INVALID_TRANSACTION() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_TRANSACTION</code> exception
|
||||
* with the specified detail message.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INVALID_TRANSACTION(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_TRANSACTION</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INVALID_TRANSACTION(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INVALID_TRANSACTION</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INVALID_TRANSACTION(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
82
jdkSrc/jdk8/org/omg/CORBA/INV_FLAG.java
Normal file
82
jdkSrc/jdk8/org/omg/CORBA/INV_FLAG.java
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown
|
||||
* when an invalid flag was passed to an operation (for example, when
|
||||
* creating a DII request).<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INV_FLAG extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INV_FLAG</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INV_FLAG() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_FLAG</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INV_FLAG(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_FLAG</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* indicating the completion status
|
||||
*/
|
||||
public INV_FLAG(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_FLAG</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed an instance of <code>CompletionStatus</code>
|
||||
* indicating the completion status
|
||||
*/
|
||||
public INV_FLAG(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
83
jdkSrc/jdk8/org/omg/CORBA/INV_IDENT.java
Normal file
83
jdkSrc/jdk8/org/omg/CORBA/INV_IDENT.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates that an IDL identifier is syntactically
|
||||
* invalid. It may be raised if, for example, an identifier passed
|
||||
* to the interface repository does not conform to IDL identifier
|
||||
* syntax, or if an illegal operation name is used with the DII.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INV_IDENT extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INV_IDENT</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INV_IDENT() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_IDENT</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INV_IDENT(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_IDENT</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed a <code>CompletionStatus</code> object indicating
|
||||
* the completion status
|
||||
*/
|
||||
public INV_IDENT(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_IDENT</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed a <code>CompletionStatus</code> object indicating
|
||||
* the completion status
|
||||
*/
|
||||
public INV_IDENT(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
89
jdkSrc/jdk8/org/omg/CORBA/INV_OBJREF.java
Normal file
89
jdkSrc/jdk8/org/omg/CORBA/INV_OBJREF.java
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates that an object reference is internally
|
||||
* malformed. For example, the repository ID may have incorrect
|
||||
* syntax or the addressing information may be invalid. This
|
||||
* exception is raised by ORB::string_to_object if the passed
|
||||
* string does not decode correctly. An ORB may choose to detect
|
||||
* calls via nil references (but is not obliged to do detect them).
|
||||
* <tt>INV_OBJREF</tt> is used to indicate this.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class INV_OBJREF extends SystemException {
|
||||
/**
|
||||
* Constructs an <code>INV_OBJREF</code> exception with a default
|
||||
* minor code of 0 and a completion state of COMPLETED_NO.
|
||||
*/
|
||||
public INV_OBJREF() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_OBJREF</code> exception with the specified detail
|
||||
* message, a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INV_OBJREF(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_OBJREF</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed a <code>CompletionStatus</code> instance indicating
|
||||
* the completion status
|
||||
*/
|
||||
public INV_OBJREF(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an <code>INV_OBJREF</code> exception with the specified detail
|
||||
* message, minor code, and completion status.
|
||||
* A detail message is a String that describes this particular exception.
|
||||
* @param s the String containing a detail message
|
||||
* @param minor the minor code
|
||||
* @param completed a <code>CompletionStatus</code> instance indicating
|
||||
* the completion status
|
||||
*/
|
||||
public INV_OBJREF(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/CORBA/INV_POLICY.java
Normal file
80
jdkSrc/jdk8/org/omg/CORBA/INV_POLICY.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Standard exception thrown
|
||||
* when an invocation cannot be made because of an incompatibility between
|
||||
* <tt>Policy</tt> overrides that apply to the particular invocation.
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
*/
|
||||
|
||||
public final class INV_POLICY extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>INV_POLICY</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public INV_POLICY() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>INV_POLICY</code> exception with the
|
||||
* specified description message,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a detail message
|
||||
*/
|
||||
public INV_POLICY(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>INV_POLICY</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INV_POLICY(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>INV_POLICY</code> exception with the
|
||||
* specified description message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public INV_POLICY(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
42
jdkSrc/jdk8/org/omg/CORBA/IRObject.java
Normal file
42
jdkSrc/jdk8/org/omg/CORBA/IRObject.java
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
* File: ./org/omg/CORBA/IRObject.java
|
||||
* From: ./ir.idl
|
||||
* Date: Fri Aug 28 16:03:31 1998
|
||||
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
/**
|
||||
An IRObject IDL interface represents the most generic interface
|
||||
from which all other Interface Repository interfaces are derived,
|
||||
even the Repository itself.
|
||||
*/
|
||||
|
||||
public interface IRObject extends IRObjectOperations, org.omg.CORBA.Object,
|
||||
org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
}
|
||||
83
jdkSrc/jdk8/org/omg/CORBA/IRObjectOperations.java
Normal file
83
jdkSrc/jdk8/org/omg/CORBA/IRObjectOperations.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The interface for <tt>IRObject</tt>. For more information on
|
||||
* Operations interfaces, see <a href="doc-files/generatedfiles.html#operations">
|
||||
* "Generated Files: Operations files"</a>.
|
||||
*/
|
||||
|
||||
/*
|
||||
tempout/org/omg/CORBA/IRObjectOperations.java
|
||||
Generated by the IBM IDL-to-Java compiler, version 1.0
|
||||
from ../../Lib/ir.idl
|
||||
Thursday, February 25, 1999 2:11:21 o'clock PM PST
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is the Operations interface for the mapping from <tt>IRObject</tt>.
|
||||
* Several interfaces are used as base interfaces for objects in
|
||||
* the Interface Repository (IR). These base interfaces are not instantiable.
|
||||
* A common set of operations is used to locate objects within the
|
||||
* Interface Repository. Some of these operations are defined in
|
||||
* the IRObject. All IR objects inherit from the IRObject interface,
|
||||
* which provides an operation for identifying the actual type of
|
||||
* the object. (The IDL base interface IRObject represents the most
|
||||
* generic interface from which all other Interface Repository interfaces
|
||||
* are derived, even the Repository itself.) All java implementations of
|
||||
* IR objects must implement the IRObjectOperations interface.
|
||||
* @see IDLTypeOperations
|
||||
* @see IDLType
|
||||
* @see IRObject
|
||||
*/
|
||||
public interface IRObjectOperations
|
||||
{
|
||||
|
||||
// read interface
|
||||
/**
|
||||
* Returns the <code>DefinitionKind</code> corresponding to this Interface Repository object.
|
||||
* @return the <code>DefinitionKind</code> corresponding to this Interface Repository object.
|
||||
*/
|
||||
org.omg.CORBA.DefinitionKind def_kind ();
|
||||
|
||||
// write interface
|
||||
/**
|
||||
* Destroys this object. If the object is a Container,
|
||||
* this method is applied to all its contents. If the object contains an IDLType
|
||||
* attribute for an anonymous type, that IDLType is destroyed.
|
||||
* If the object is currently contained in some other object, it is removed.
|
||||
* If the method is invoked on a <code>Repository</code> or on a <code>PrimitiveDef</code>
|
||||
* then the <code>BAD_INV_ORDER</code> exception is raised with minor value 2.
|
||||
* An attempt to destroy an object that would leave the repository in an
|
||||
* incoherent state causes <code>BAD_INV_ORDER</code> exception to be raised
|
||||
* with the minor code 1.
|
||||
* @exception BAD_INV_ORDER if this method is invoked on a repository or
|
||||
* <code>PrimitiveDef</code>, or if an attempt to destroy an
|
||||
* object would leave the repository in an incoherent state
|
||||
*/
|
||||
void destroy ();
|
||||
} // interface IRObjectOperations
|
||||
83
jdkSrc/jdk8/org/omg/CORBA/IdentifierHelper.java
Normal file
83
jdkSrc/jdk8/org/omg/CORBA/IdentifierHelper.java
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>Identifier</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/IdentifierHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from ir.idl
|
||||
* 03 June 1999 11:33:42 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
abstract public class IdentifierHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/Identifier:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.IdentifierHelper.id (), "Identifier", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
112
jdkSrc/jdk8/org/omg/CORBA/IntHolder.java
Normal file
112
jdkSrc/jdk8/org/omg/CORBA/IntHolder.java
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Int</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for an <code>int</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>long</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>IntHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myIntHolder</code> is an instance of <code>IntHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myIntHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class IntHolder implements Streamable {
|
||||
|
||||
/**
|
||||
* The <code>int</code> value held by this <code>IntHolder</code>
|
||||
* object in its <code>value</code> field.
|
||||
*/
|
||||
public int value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>IntHolder</code> object with its
|
||||
* <code>value</code> field initialized to <code>0</code>.
|
||||
*/
|
||||
public IntHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>IntHolder</code> object with its
|
||||
* <code>value</code> field initialized to the given
|
||||
* <code>int</code>.
|
||||
* @param initial the <code>int</code> with which to initialize
|
||||
* the <code>value</code> field of the newly-created
|
||||
* <code>IntHolder</code> object
|
||||
*/
|
||||
public IntHolder(int initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads unmarshalled data from <code>input</code> and assigns it to
|
||||
* the <code>value</code> field in this <code>IntHolder</code> object.
|
||||
*
|
||||
* @param input the <code>InputStream</code> object containing CDR
|
||||
* formatted data from the wire
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_long();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals the value in this <code>IntHolder</code> object's
|
||||
* <code>value</code> field to the output stream <code>output</code>.
|
||||
*
|
||||
* @param output the <code>OutputStream</code> object that will contain
|
||||
* the CDR formatted data
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_long(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the <code>TypeCode</code> object that corresponds
|
||||
* to the value held in this <code>IntHolder</code> object's
|
||||
* <code>value</code> field.
|
||||
*
|
||||
* @return the type code for the value held in this <code>IntHolder</code>
|
||||
* object
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_long);
|
||||
}
|
||||
}
|
||||
500
jdkSrc/jdk8/org/omg/CORBA/LocalObject.java
Normal file
500
jdkSrc/jdk8/org/omg/CORBA/LocalObject.java
Normal file
@@ -0,0 +1,500 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
import org.omg.CORBA.portable.*;
|
||||
|
||||
|
||||
/**
|
||||
* <P>Used as a base class for implementation of a local IDL interface in the
|
||||
* Java language mapping. It is a class which implements all the operations
|
||||
* in the <tt>org.omg.CORBA.Object</tt> interface.
|
||||
* <P>Local interfaces are implemented by using CORBA::LocalObject
|
||||
* to provide implementations of <code>Object</code> pseudo
|
||||
* operations and any other ORB-specific support mechanisms that are
|
||||
* appropriate for such objects. Object implementation techniques are
|
||||
* inherently language-mapping specific. Therefore, the
|
||||
* <code>LocalObject</code> type is not defined in IDL, but is specified
|
||||
* in each language mapping.
|
||||
* <P>Methods that do not apply to local objects throw
|
||||
* an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with the message,
|
||||
* "This is a locally contrained object." Attempting to use a
|
||||
* <TT>LocalObject</TT> to create a DII request results in NO_IMPLEMENT
|
||||
* system exception. Attempting to marshal or stringify a
|
||||
* <TT>LocalObject</TT> results in a MARSHAL system exception. Narrowing
|
||||
* and widening references to <TT>LocalObjects</TT> must work as for regular
|
||||
* object references.
|
||||
* <P><code>LocalObject</code> is to be used as the base class of locally
|
||||
* constrained objects, such as those in the PortableServer module.
|
||||
* The specification here is based on the CORBA Components
|
||||
* Volume I - orbos/99-07-01<P>
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
|
||||
public class LocalObject implements org.omg.CORBA.Object
|
||||
{
|
||||
private static String reason = "This is a locally constrained object.";
|
||||
|
||||
/**
|
||||
* Constructs a default <code>LocalObject</code> instance.
|
||||
*/
|
||||
public LocalObject() {}
|
||||
|
||||
/**
|
||||
* <P>Determines whether the two object references are equivalent,
|
||||
* so far as the ORB can easily determine. Two object references are equivalent
|
||||
* if they are identical. Two distinct object references which in fact refer to
|
||||
* the same object are also equivalent. However, ORBs are not required
|
||||
* to attempt determination of whether two distinct object references
|
||||
* refer to the same object, since such determination could be impractically
|
||||
* expensive.
|
||||
* <P>Default implementation of the org.omg.CORBA.Object method. <P>
|
||||
*
|
||||
* @param that the object reference with which to check for equivalence
|
||||
* @return <code>true</code> if this object reference is known to be
|
||||
* equivalent to the given object reference.
|
||||
* Note that <code>false</code> indicates only that the two
|
||||
* object references are distinct, not necessarily that
|
||||
* they reference distinct objects.
|
||||
*/
|
||||
public boolean _is_equivalent(org.omg.CORBA.Object that) {
|
||||
return equals(that) ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Always returns <code>false</code>.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
*
|
||||
* @return <code>false</code>
|
||||
*/
|
||||
public boolean _non_existent() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a hash value that is consistent for the
|
||||
* lifetime of the object, using the given number as the maximum.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @param maximum an <code>int</code> identifying maximum value of
|
||||
* the hashcode
|
||||
* @return this instance's hashcode
|
||||
*/
|
||||
public int _hash(int maximum) {
|
||||
return hashCode() ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
*
|
||||
* @param repository_id a <code>String</code>
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public boolean _is_a(String repository_id) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @return a duplicate of this <code>LocalObject</code> instance.
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.Object _duplicate() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void _release() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
*
|
||||
* @param operation a <code>String</code> giving the name of an operation
|
||||
* to be performed by the request that is returned
|
||||
* @return a <code>Request</code> object with the given operation
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public Request _request(String operation) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
*
|
||||
* @param ctx a <code>Context</code> object containing
|
||||
* a list of properties
|
||||
* @param operation the <code>String</code> representing the name of the
|
||||
* method to be invoked
|
||||
* @param arg_list an <code>NVList</code> containing the actual arguments
|
||||
* to the method being invoked
|
||||
* @param result a <code>NamedValue</code> object to serve as a
|
||||
* container for the method's return value
|
||||
* @return a new <code>Request</code> object initialized with the given
|
||||
* arguments
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public Request _create_request(Context ctx,
|
||||
String operation,
|
||||
NVList arg_list,
|
||||
NamedValue result) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
*
|
||||
* @param ctx a <code>Context</code> object containing
|
||||
* a list of properties
|
||||
* @param operation the name of the method to be invoked
|
||||
* @param arg_list an <code>NVList</code> containing the actual arguments
|
||||
* to the method being invoked
|
||||
* @param result a <code>NamedValue</code> object to serve as a
|
||||
* container for the method's return value
|
||||
* @param exceptions an <code>ExceptionList</code> object containing a
|
||||
* list of possible exceptions the method can throw
|
||||
* @param contexts a <code>ContextList</code> object containing a list of
|
||||
* context strings that need to be resolved and sent
|
||||
* with the
|
||||
* <code>Request</code> instance
|
||||
* @return the new <code>Request</code> object initialized with the given
|
||||
* arguments
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public Request _create_request(Context ctx,
|
||||
String operation,
|
||||
NVList arg_list,
|
||||
NamedValue result,
|
||||
ExceptionList exceptions,
|
||||
ContextList contexts) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.Object _get_interface()
|
||||
{
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.Object _get_interface_def()
|
||||
{
|
||||
// First try to call the delegate implementation class's
|
||||
// "Object get_interface_def(..)" method (will work for JDK1.2
|
||||
// ORBs).
|
||||
// Else call the delegate implementation class's
|
||||
// "InterfaceDef get_interface(..)" method using reflection
|
||||
// (will work for pre-JDK1.2 ORBs).
|
||||
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @return the ORB instance that created the Delegate contained in this
|
||||
* <code>ObjectImpl</code>
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.ORB _orb() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @param policy_type an <code>int</code>
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.Policy _get_policy(int policy_type) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.DomainManager[] _get_domain_managers() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.
|
||||
*
|
||||
* @param policies an array
|
||||
* @param set_add a flag
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public org.omg.CORBA.Object
|
||||
_set_policy_override(org.omg.CORBA.Policy[] policies,
|
||||
org.omg.CORBA.SetOverrideType set_add) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* Returns <code>true</code> for this <code>LocalObject</code> instance.<P>
|
||||
* @return <code>true</code> always
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public boolean _is_local() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @param operation a <code>String</code> indicating which operation
|
||||
* to preinvoke
|
||||
* @param expectedType the class of the type of operation mentioned above
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local object
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public ServantObject _servant_preinvoke(String operation,
|
||||
Class expectedType) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @param servant the servant object on which to post-invoke
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void _servant_postinvoke(ServantObject servant) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/*
|
||||
* The following methods were added by orbos/98-04-03: Java to IDL
|
||||
* Mapping. These are used by RMI over IIOP.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.
|
||||
* <P>Called by a stub to obtain an OutputStream for
|
||||
* marshaling arguments. The stub must supply the operation name,
|
||||
* and indicate if a response is expected (i.e is this a oneway
|
||||
* call).<P>
|
||||
* @param operation the name of the operation being requested
|
||||
* @param responseExpected <code>true</code> if a response is expected,
|
||||
* <code>false</code> if it is a one-way call
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public OutputStream _request(String operation,
|
||||
boolean responseExpected) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.
|
||||
* <P>Called to invoke an operation. The stub provides an
|
||||
* <code>OutputStream</code> that was previously returned by a
|
||||
* <code>_request()</code>
|
||||
* call. <code>_invoke</code> returns an <code>InputStream</code> which
|
||||
* contains the
|
||||
* marshaled reply. If an exception occurs, <code>_invoke</code> may throw an
|
||||
* <code>ApplicationException</code> object which contains an
|
||||
* <code>InputStream</code> from
|
||||
* which the user exception state may be unmarshaled.<P>
|
||||
* @param output the <code>OutputStream</code> to invoke
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @throws ApplicationException If an exception occurs,
|
||||
* <code>_invoke</code> may throw an
|
||||
* <code>ApplicationException</code> object which contains
|
||||
* an <code>InputStream</code> from
|
||||
* which the user exception state may be unmarshaled.
|
||||
* @throws RemarshalException If an exception occurs,
|
||||
* <code>_invoke</code> may throw an
|
||||
* <code>ApplicationException</code> object which contains
|
||||
* an <code>InputStream</code> from
|
||||
* which the user exception state may be unmarshaled.
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public InputStream _invoke(OutputStream output)
|
||||
throws ApplicationException, RemarshalException
|
||||
{
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object."
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.
|
||||
* <P>May optionally be called by a stub to release a
|
||||
* reply stream back to the ORB when the unmarshaling has
|
||||
* completed. The stub passes the <code>InputStream</code> returned by
|
||||
* <code>_invoke()</code> or
|
||||
* <code>ApplicationException.getInputStream()</code>.
|
||||
* A null
|
||||
* value may also be passed to <code>_releaseReply</code>, in which case the
|
||||
* method is a no-op.<P>
|
||||
* @param input the reply stream back to the ORB or null
|
||||
* @exception NO_IMPLEMENT
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
public void _releaseReply(InputStream input) {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws an <code>org.omg.CORBA.NO_IMPLEMENT</code> exception with
|
||||
* the message "This is a locally constrained object." This method
|
||||
* does not apply to local objects and is therefore not implemented.
|
||||
* This method is the default implementation of the
|
||||
* <code>org.omg.CORBA.Object</code> method.<P>
|
||||
* @return NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @exception NO_IMPLEMENT because this is a locally constrained object
|
||||
* and this method does not apply to local objects
|
||||
* @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
|
||||
* comments for unimplemented features</a>
|
||||
*/
|
||||
|
||||
public boolean validate_connection() {
|
||||
throw new org.omg.CORBA.NO_IMPLEMENT(reason);
|
||||
}
|
||||
}
|
||||
108
jdkSrc/jdk8/org/omg/CORBA/LongHolder.java
Normal file
108
jdkSrc/jdk8/org/omg/CORBA/LongHolder.java
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
import org.omg.CORBA.portable.Streamable;
|
||||
import org.omg.CORBA.portable.InputStream;
|
||||
import org.omg.CORBA.portable.OutputStream;
|
||||
|
||||
/**
|
||||
* The Holder for <tt>Long</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* A Holder class for a <code>long</code>
|
||||
* that is used to store "out" and "inout" parameters in IDL methods.
|
||||
* If an IDL method signature has an IDL <code>long long</code> as an "out"
|
||||
* or "inout" parameter, the programmer must pass an instance of
|
||||
* <code>LongHolder</code> as the corresponding
|
||||
* parameter in the method invocation; for "inout" parameters, the programmer
|
||||
* must also fill the "in" value to be sent to the server.
|
||||
* Before the method invocation returns, the ORB will fill in the
|
||||
* value corresponding to the "out" value returned from the server.
|
||||
* <P>
|
||||
* If <code>myLongHolder</code> is an instance of <code>LongHolder</code>,
|
||||
* the value stored in its <code>value</code> field can be accessed with
|
||||
* <code>myLongHolder.value</code>.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
public final class LongHolder implements Streamable {
|
||||
|
||||
/**
|
||||
* The <code>long</code> value held by this <code>LongHolder</code>
|
||||
* object.
|
||||
*/
|
||||
public long value;
|
||||
|
||||
/**
|
||||
* Constructs a new <code>LongHolder</code> object with its
|
||||
* <code>value</code> field initialized to <code>0</code>.
|
||||
*/
|
||||
public LongHolder() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new <code>LongHolder</code> object with its
|
||||
* <code>value</code> field initialized to the given
|
||||
* <code>long</code>.
|
||||
* @param initial the <code>long</code> with which to initialize
|
||||
* the <code>value</code> field of the newly-created
|
||||
* <code>LongHolder</code> object
|
||||
*/
|
||||
public LongHolder(long initial) {
|
||||
value = initial;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads from <code>input</code> and initalizes the value in the Holder
|
||||
* with the unmarshalled data.
|
||||
*
|
||||
* @param input the InputStream containing CDR formatted data from the wire
|
||||
*/
|
||||
public void _read(InputStream input) {
|
||||
value = input.read_longlong();
|
||||
}
|
||||
|
||||
/**
|
||||
* Marshals to <code>output</code> the value in the Holder.
|
||||
*
|
||||
* @param output the OutputStream which will contain the CDR formatted data
|
||||
*/
|
||||
public void _write(OutputStream output) {
|
||||
output.write_longlong(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the <code>TypeCode</code> object
|
||||
* corresponding to the value held in the Holder.
|
||||
*
|
||||
* @return the TypeCode of the value held in the holder
|
||||
*/
|
||||
public org.omg.CORBA.TypeCode _type() {
|
||||
return ORB.init().get_primitive_tc(TCKind.tk_longlong);
|
||||
}
|
||||
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/LongLongSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/LongLongSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>LongLongSeq</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/LongLongSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:37 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class LongLongSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/LongLongSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, long[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static long[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_longlong);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.LongLongSeqHelper.id (), "LongLongSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static long[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
long value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new long[_len0];
|
||||
istream.read_longlong_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, long[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_longlong_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/LongLongSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/LongLongSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>LongLongSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/LongLongSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class LongLongSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public long value[] = null;
|
||||
|
||||
public LongLongSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public LongLongSeqHolder (long[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.LongLongSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.LongLongSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.LongLongSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
99
jdkSrc/jdk8/org/omg/CORBA/LongSeqHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CORBA/LongSeqHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Helper for <tt>LongSeqHelper</tt>. For more information on
|
||||
* Helper files, see <a href="doc-files/generatedfiles.html#helper">
|
||||
* "Generated Files: Helper Files"</a>.<P>
|
||||
* org/omg/CORBA/LongSeqHelper.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*
|
||||
* The class definition has been modified to conform to the following
|
||||
* OMG specifications :
|
||||
* <ul>
|
||||
* <li> ORB core as defined by CORBA 2.3.1
|
||||
* (<a href="http://cgi.omg.org/cgi-bin/doc?formal/99-10-07">formal/99-10-07</a>)
|
||||
* </li>
|
||||
*
|
||||
* <li> IDL/Java Language Mapping as defined in
|
||||
* <a href="http://cgi.omg.org/cgi-bin/doc?ptc/00-01-08">ptc/00-01-08</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
|
||||
public abstract class LongSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CORBA/LongSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, int[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static int[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.LongSeqHelper.id (), "LongSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static int[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
int value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new int[_len0];
|
||||
istream.read_long_array (value, 0, _len0);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, int[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
ostream.write_long_array (value, 0, value.length);
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CORBA/LongSeqHolder.java
Normal file
66
jdkSrc/jdk8/org/omg/CORBA/LongSeqHolder.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package org.omg.CORBA;
|
||||
|
||||
|
||||
/**
|
||||
* The Holder for <tt>LongSeq</tt>. For more information on
|
||||
* Holder files, see <a href="doc-files/generatedfiles.html#holder">
|
||||
* "Generated Files: Holder Files"</a>.<P>
|
||||
* org/omg/CORBA/LongSeqHolder.java
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.0"
|
||||
* from streams.idl
|
||||
* 13 May 1999 22:41:36 o'clock GMT+00:00
|
||||
*/
|
||||
|
||||
public final class LongSeqHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public int value[] = null;
|
||||
|
||||
public LongSeqHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public LongSeqHolder (int[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CORBA.LongSeqHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CORBA.LongSeqHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CORBA.LongSeqHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
87
jdkSrc/jdk8/org/omg/CORBA/MARSHAL.java
Normal file
87
jdkSrc/jdk8/org/omg/CORBA/MARSHAL.java
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A request or reply from the network is structurally invalid.
|
||||
* This error typically indicates a bug in either the client-side
|
||||
* or server-side run time. For example, if a reply from the server
|
||||
* indicates that the message contains 1000 bytes, but the actual
|
||||
* message is shorter or longer than 1000 bytes, the ORB raises
|
||||
* this exception. <tt>MARSHAL</tt> can also be caused by using
|
||||
* the DII or DSI incorrectly, for example, if the type of the
|
||||
* actual parameters sent does not agree with IDL signature of an
|
||||
* operation.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class MARSHAL extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>MARSHAL</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public MARSHAL() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>MARSHAL</code> exception with the specified description message,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description of the exception
|
||||
*/
|
||||
public MARSHAL(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>MARSHAL</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public MARSHAL(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>MARSHAL</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public MARSHAL(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
86
jdkSrc/jdk8/org/omg/CORBA/NO_IMPLEMENT.java
Normal file
86
jdkSrc/jdk8/org/omg/CORBA/NO_IMPLEMENT.java
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception indicates that even though the operation that
|
||||
* was invoked exists (it has an IDL definition), no implementation
|
||||
* for that operation exists. <tt>NO_IMPLEMENT</tt> can, for
|
||||
* example, be raised by an ORB if a client asks for an object's
|
||||
* type definition from the interface repository, but no interface
|
||||
* repository is provided by the ORB.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
* <P>
|
||||
* See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
|
||||
* Code Meanings</A> to see the minor codes for this exception.
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class NO_IMPLEMENT extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>NO_IMPLEMENT</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public NO_IMPLEMENT() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_IMPLEMENT</code> exception with the specified description message,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description of the exception
|
||||
*/
|
||||
public NO_IMPLEMENT(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_IMPLEMENT</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor an <code>int</code> specifying the minor code
|
||||
* @param completed a <code>CompletionStatus</code> instance indicating
|
||||
* the completion status
|
||||
*/
|
||||
public NO_IMPLEMENT(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_IMPLEMENT</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor an <code>int</code> specifying the minor code
|
||||
* @param completed a <code>CompletionStatus</code> instance indicating
|
||||
* the completion status
|
||||
*/
|
||||
public NO_IMPLEMENT(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
79
jdkSrc/jdk8/org/omg/CORBA/NO_MEMORY.java
Normal file
79
jdkSrc/jdk8/org/omg/CORBA/NO_MEMORY.java
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when the ORB run time has run out of memory.
|
||||
* <P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class NO_MEMORY extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>NO_MEMORY</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public NO_MEMORY() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_MEMORY</code> exception with the specified description message,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description message
|
||||
*/
|
||||
public NO_MEMORY(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_MEMORY</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_MEMORY(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_MEMORY</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_MEMORY(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
79
jdkSrc/jdk8/org/omg/CORBA/NO_PERMISSION.java
Normal file
79
jdkSrc/jdk8/org/omg/CORBA/NO_PERMISSION.java
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when an invocation failed because the caller
|
||||
* has insufficient privileges.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class NO_PERMISSION extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>NO_PERMISSION</code> exception with a default minor code
|
||||
* of 0 and a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public NO_PERMISSION() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_PERMISSION</code> exception with the specified description,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description message
|
||||
*/
|
||||
public NO_PERMISSION(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_PERMISSION</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_PERMISSION(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_PERMISSION</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_PERMISSION(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/CORBA/NO_RESOURCES.java
Normal file
80
jdkSrc/jdk8/org/omg/CORBA/NO_RESOURCES.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Exception thrown when the ORB has encountered some general resource
|
||||
* limitation. For example, the run time may have reached the maximum
|
||||
* permissible number of open connections.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class NO_RESOURCES extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>NO_RESOURCES</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public NO_RESOURCES() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESOURCES</code> exception with the specified description,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description message
|
||||
*/
|
||||
public NO_RESOURCES(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESOURCES</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_RESOURCES(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESOURCES</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_RESOURCES(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/CORBA/NO_RESPONSE.java
Normal file
80
jdkSrc/jdk8/org/omg/CORBA/NO_RESPONSE.java
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* This exception is raised if a client attempts to retrieve the result
|
||||
* of a deferred synchronous call, but the response for the request is
|
||||
* not yet available.<P>
|
||||
* It contains a minor code, which gives more detailed information about
|
||||
* what caused the exception, and a completion status. It may also contain
|
||||
* a string describing the exception.
|
||||
*
|
||||
* @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
|
||||
* Java IDL exceptions</A>
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public final class NO_RESPONSE extends SystemException {
|
||||
/**
|
||||
* Constructs a <code>NO_RESPONSE</code> exception with a default minor code
|
||||
* of 0, a completion state of CompletionStatus.COMPLETED_NO,
|
||||
* and a null description.
|
||||
*/
|
||||
public NO_RESPONSE() {
|
||||
this("");
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESPONSE</code> exception with the specified description message,
|
||||
* a minor code of 0, and a completion state of COMPLETED_NO.
|
||||
* @param s the String containing a description message
|
||||
*/
|
||||
public NO_RESPONSE(String s) {
|
||||
this(s, 0, CompletionStatus.COMPLETED_NO);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESPONSE</code> exception with the specified
|
||||
* minor code and completion status.
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_RESPONSE(int minor, CompletionStatus completed) {
|
||||
this("", minor, completed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>NO_RESPONSE</code> exception with the specified description
|
||||
* message, minor code, and completion status.
|
||||
* @param s the String containing a description message
|
||||
* @param minor the minor code
|
||||
* @param completed the completion status
|
||||
*/
|
||||
public NO_RESPONSE(String s, int minor, CompletionStatus completed) {
|
||||
super(s, minor, completed);
|
||||
}
|
||||
}
|
||||
178
jdkSrc/jdk8/org/omg/CORBA/NVList.java
Normal file
178
jdkSrc/jdk8/org/omg/CORBA/NVList.java
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* A modifiable list containing <code>NamedValue</code> objects.
|
||||
* <P>
|
||||
* The class <code>NVList</code> is used as follows:
|
||||
* <UL>
|
||||
* <LI>to describe arguments for a <code>Request</code> object
|
||||
* in the Dynamic Invocation Interface and
|
||||
* the Dynamic Skeleton Interface
|
||||
* <LI>to describe context values in a <code>Context</code> object
|
||||
* </UL>
|
||||
* <P>
|
||||
* Each <code>NamedValue</code> object consists of the following:
|
||||
* <UL>
|
||||
* <LI>a name, which is a <code>String</code> object
|
||||
* <LI>a value, as an <code>Any</code> object
|
||||
* <LI>an argument mode flag
|
||||
* </UL>
|
||||
* <P>
|
||||
* An <code>NVList</code> object
|
||||
* may be created using one of the following
|
||||
* <code>ORB</code> methods:
|
||||
* <OL>
|
||||
* <LI><code>org.omg.CORBA.ORB.create_list</code>
|
||||
* <PRE>
|
||||
* org.omg.CORBA.NVList nv = orb.create_list(3);
|
||||
* </PRE>
|
||||
* The variable <code>nv</code> represents a newly-created
|
||||
* <code>NVList</code> object. The argument is a memory-management
|
||||
* hint to the orb and does not imply the actual length of the list.
|
||||
* If, for example, you want to use an <code>NVList</code> object
|
||||
* in a request, and the method being invoked takes three parameters,
|
||||
* you might optimize by supplying 3 to the method
|
||||
* <code>create_list</code>. Note that the new <code>NVList</code>
|
||||
* will not necessarily have a length of 3; it
|
||||
* could have a length of 2 or 4, for instance.
|
||||
* Note also that you can add any number of
|
||||
* <code>NamedValue</code> objects to this list regardless of
|
||||
* its original length.
|
||||
* <P>
|
||||
* <LI><code>org.omg.CORBA.ORB.create_operation_list</code>
|
||||
* <PRE>
|
||||
* org.omg.CORBA.NVList nv = orb.create_operation_list(myOperationDef);
|
||||
* </PRE>
|
||||
* The variable <code>nv</code> represents a newly-created
|
||||
* <code>NVList</code> object that contains descriptions of the
|
||||
* arguments to the method described in the given
|
||||
* <code>OperationDef</code> object.
|
||||
* </OL>
|
||||
* <P>
|
||||
* The methods in the class <code>NVList</code> all deal with
|
||||
* the <code>NamedValue</code> objects in the list.
|
||||
* There are three methods for adding a <code>NamedValue</code> object,
|
||||
* a method for getting the count of <code>NamedValue</code> objects in
|
||||
* the list, a method for retrieving a <code>NamedValue</code> object
|
||||
* at a given index, and a method for removing a <code>NamedValue</code> object
|
||||
* at a given index.
|
||||
*
|
||||
* @see org.omg.CORBA.Request
|
||||
* @see org.omg.CORBA.ServerRequest
|
||||
* @see org.omg.CORBA.NamedValue
|
||||
* @see org.omg.CORBA.Context
|
||||
*
|
||||
* @since JDK1.2
|
||||
*/
|
||||
|
||||
public abstract class NVList {
|
||||
|
||||
/**
|
||||
* Returns the number of <code>NamedValue</code> objects that have
|
||||
* been added to this <code>NVList</code> object.
|
||||
*
|
||||
* @return an <code>int</code> indicating the number of
|
||||
* <code>NamedValue</code> objects in this <code>NVList</code>.
|
||||
*/
|
||||
|
||||
public abstract int count();
|
||||
|
||||
/**
|
||||
* Creates a new <code>NamedValue</code> object initialized with the given flag
|
||||
* and adds it to the end of this <code>NVList</code> object.
|
||||
* The flag can be any one of the argument passing modes:
|
||||
* <code>ARG_IN.value</code>, <code>ARG_OUT.value</code>, or
|
||||
* <code>ARG_INOUT.value</code>.
|
||||
*
|
||||
* @param flags one of the argument mode flags
|
||||
* @return the newly-created <code>NamedValue</code> object
|
||||
*/
|
||||
|
||||
public abstract NamedValue add(int flags);
|
||||
|
||||
/**
|
||||
* Creates a new <code>NamedValue</code> object initialized with the
|
||||
* given name and flag,
|
||||
* and adds it to the end of this <code>NVList</code> object.
|
||||
* The flag can be any one of the argument passing modes:
|
||||
* <code>ARG_IN.value</code>, <code>ARG_OUT.value</code>, or
|
||||
* <code>ARG_INOUT.value</code>.
|
||||
*
|
||||
* @param item_name the name for the new <code>NamedValue</code> object
|
||||
* @param flags one of the argument mode flags
|
||||
* @return the newly-created <code>NamedValue</code> object
|
||||
*/
|
||||
|
||||
public abstract NamedValue add_item(String item_name, int flags);
|
||||
|
||||
/**
|
||||
* Creates a new <code>NamedValue</code> object initialized with the
|
||||
* given name, value, and flag,
|
||||
* and adds it to the end of this <code>NVList</code> object.
|
||||
*
|
||||
* @param item_name the name for the new <code>NamedValue</code> object
|
||||
* @param val an <code>Any</code> object containing the value
|
||||
* for the new <code>NamedValue</code> object
|
||||
* @param flags one of the following argument passing modes:
|
||||
* <code>ARG_IN.value</code>, <code>ARG_OUT.value</code>, or
|
||||
* <code>ARG_INOUT.value</code>
|
||||
* @return the newly created <code>NamedValue</code> object
|
||||
*/
|
||||
|
||||
public abstract NamedValue add_value(String item_name, Any val, int flags);
|
||||
|
||||
/**
|
||||
* Retrieves the <code>NamedValue</code> object at the given index.
|
||||
*
|
||||
* @param index the index of the desired <code>NamedValue</code> object,
|
||||
* which must be between zero and the length of the list
|
||||
* minus one, inclusive. The first item is at index zero.
|
||||
* @return the <code>NamedValue</code> object at the given index
|
||||
* @exception org.omg.CORBA.Bounds if the index is greater than
|
||||
* or equal to number of <code>NamedValue</code> objects
|
||||
*/
|
||||
|
||||
public abstract NamedValue item(int index) throws org.omg.CORBA.Bounds;
|
||||
|
||||
/**
|
||||
* Removes the <code>NamedValue</code> object at the given index.
|
||||
* Note that the indices of all <code>NamedValue</code> objects following
|
||||
* the one removed are shifted down by one.
|
||||
*
|
||||
* @param index the index of the <code>NamedValue</code> object to be
|
||||
* removed, which must be between zero and the length
|
||||
* of the list minus one, inclusive.
|
||||
* The first item is at index zero.
|
||||
* @exception org.omg.CORBA.Bounds if the index is greater than
|
||||
* or equal to number of <code>NamedValue</code> objects in
|
||||
* the list
|
||||
*/
|
||||
|
||||
public abstract void remove(int index) throws org.omg.CORBA.Bounds;
|
||||
|
||||
}
|
||||
63
jdkSrc/jdk8/org/omg/CORBA/NameValuePair.java
Normal file
63
jdkSrc/jdk8/org/omg/CORBA/NameValuePair.java
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
|
||||
package org.omg.CORBA;
|
||||
|
||||
/**
|
||||
* Associates a name with a value that is an
|
||||
* attribute of an IDL struct, and is used in the <tt>DynStruct</tt> APIs.
|
||||
*/
|
||||
|
||||
public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity {
|
||||
|
||||
/**
|
||||
* The name to be associated with a value by this <code>NameValuePair</code> object.
|
||||
*/
|
||||
public String id;
|
||||
|
||||
/**
|
||||
* The value to be associated with a name by this <code>NameValuePair</code> object.
|
||||
*/
|
||||
public org.omg.CORBA.Any value;
|
||||
|
||||
/**
|
||||
* Constructs an empty <code>NameValuePair</code> object.
|
||||
* To associate a name with a value after using this constructor, the fields
|
||||
* of this object have to be accessed individually.
|
||||
*/
|
||||
public NameValuePair() { }
|
||||
|
||||
/**
|
||||
* Constructs a <code>NameValuePair</code> object that associates
|
||||
* the given name with the given <code>org.omg.CORBA.Any</code> object.
|
||||
* @param __id the name to be associated with the given <code>Any</code> object
|
||||
* @param __value the <code>Any</code> object to be associated with the given name
|
||||
*/
|
||||
public NameValuePair(String __id, org.omg.CORBA.Any __value) {
|
||||
id = __id;
|
||||
value = __value;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user