feat(jdk8): move files to new folder to avoid resources compiled.
This commit is contained in:
62
jdkSrc/jdk8/org/omg/DynamicAny/AnySeqHelper.java
Normal file
62
jdkSrc/jdk8/org/omg/DynamicAny/AnySeqHelper.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/AnySeqHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class AnySeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/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.DynamicAny.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]);
|
||||
}
|
||||
|
||||
}
|
||||
81
jdkSrc/jdk8/org/omg/DynamicAny/DynAny.java
Normal file
81
jdkSrc/jdk8/org/omg/DynamicAny/DynAny.java
Normal file
@@ -0,0 +1,81 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAny.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Any values can be dynamically interpreted (traversed) and constructed through DynAny objects.
|
||||
* A DynAny object is associated with a data value which corresponds to a copy of the value
|
||||
* inserted into an any.
|
||||
* <P>A DynAny object may be viewed as an ordered collection of component DynAnys.
|
||||
* For DynAnys representing a basic type, such as long, or a type without components,
|
||||
* such as an empty exception, the ordered collection of components is empty.
|
||||
* Each DynAny object maintains the notion of a current position into its collection
|
||||
* of component DynAnys. The current position is identified by an index value that runs
|
||||
* from 0 to n-1, where n is the number of components.
|
||||
* The special index value -1 indicates a current position that points nowhere.
|
||||
* For values that cannot have a current position (such as an empty exception),
|
||||
* the index value is fixed at -1.
|
||||
* If a DynAny is initialized with a value that has components, the index is initialized to 0.
|
||||
* After creation of an uninitialized DynAny (that is, a DynAny that has no value but a TypeCode
|
||||
* that permits components), the current position depends on the type of value represented by
|
||||
* the DynAny. (The current position is set to 0 or -1, depending on whether the new DynAny
|
||||
* gets default values for its components.)
|
||||
* <P>The iteration operations rewind, seek, and next can be used to change the current position
|
||||
* and the current_component operation returns the component at the current position.
|
||||
* The component_count operation returns the number of components of a DynAny.
|
||||
* Collectively, these operations enable iteration over the components of a DynAny, for example,
|
||||
* to (recursively) examine its contents.
|
||||
* <P>A constructed DynAny object is a DynAny object associated with a constructed type.
|
||||
* There is a different interface, inheriting from the DynAny interface, associated with
|
||||
* each kind of constructed type in IDL (fixed, enum, struct, sequence, union, array,
|
||||
* exception, and value type).
|
||||
* <P>A constructed DynAny object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a component of the constructed data value.
|
||||
* As an example, a DynStruct is associated with a struct value. This means that the DynStruct
|
||||
* may be seen as owning an ordered collection of components, one for each structure member.
|
||||
* The DynStruct object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a member of the struct.
|
||||
* <P>If a DynAny object has been obtained from another (constructed) DynAny object,
|
||||
* such as a DynAny representing a structure member that was created from a DynStruct,
|
||||
* the member DynAny is logically contained in the DynStruct.
|
||||
* Calling an insert or get operation leaves the current position unchanged.
|
||||
* Destroying a top-level DynAny object (one that was not obtained as a component of another DynAny)
|
||||
* also destroys any component DynAny objects obtained from it.
|
||||
* Destroying a non-top level DynAny object does nothing.
|
||||
* Invoking operations on a destroyed top-level DynAny or any of its descendants raises OBJECT_NOT_EXIST.
|
||||
* If the programmer wants to destroy a DynAny object but still wants to manipulate some component
|
||||
* of the data value associated with it, then he or she should first create a DynAny for the component
|
||||
* and, after that, make a copy of the created DynAny object.
|
||||
* <P>The behavior of DynAny objects has been defined in order to enable efficient implementations
|
||||
* in terms of allocated memory space and speed of access. DynAny objects are intended to be used
|
||||
* for traversing values extracted from anys or constructing values of anys at runtime.
|
||||
* Their use for other purposes is not recommended.
|
||||
* <P>Insert and get operations are necessary to handle basic DynAny objects
|
||||
* but are also helpful to handle constructed DynAny objects.
|
||||
* Inserting a basic data type value into a constructed DynAny object
|
||||
* implies initializing the current component of the constructed data value
|
||||
* associated with the DynAny object. For example, invoking insert_boolean on a
|
||||
* DynStruct implies inserting a boolean data value at the current position
|
||||
* of the associated struct data value.
|
||||
* A type is consistent for inserting or extracting a value if its TypeCode is equivalent to
|
||||
* the TypeCode contained in the DynAny or, if the DynAny has components, is equivalent to the TypeCode
|
||||
* of the DynAny at the current position.
|
||||
* <P>DynAny and DynAnyFactory objects are intended to be local to the process in which they are
|
||||
* created and used. This means that references to DynAny and DynAnyFactory objects cannot be exported
|
||||
* to other processes, or externalized with ORB.object_to_string().
|
||||
* If any attempt is made to do so, the offending operation will raise a MARSHAL system exception.
|
||||
* Since their interfaces are specified in IDL, DynAny objects export operations defined in the standard
|
||||
* org.omg.CORBA.Object interface. However, any attempt to invoke operations exported through the Object
|
||||
* interface may raise the standard NO_IMPLEMENT exception.
|
||||
* An attempt to use a DynAny object with the DII may raise the NO_IMPLEMENT exception.
|
||||
*/
|
||||
public interface DynAny extends DynAnyOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynAny
|
||||
35
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactory.java
Normal file
35
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactory.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyFactory.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynAny objects can be created by invoking operations on the DynAnyFactory object.
|
||||
* Generally there are only two ways to create a DynAny object:
|
||||
* <UL>
|
||||
* <LI>invoking an operation on an existing DynAny object
|
||||
* <LI>invoking an operation on a DynAnyFactory object
|
||||
* </UL>
|
||||
* A constructed DynAny object supports operations that enable the creation of new DynAny
|
||||
* objects encapsulating access to the value of some constituent.
|
||||
* DynAny objects also support the copy operation for creating new DynAny objects.
|
||||
* A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references()
|
||||
* with the identifier parameter set to the string constant "DynAnyFactory".
|
||||
* <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any()
|
||||
* as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed
|
||||
* to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
|
||||
* <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(),
|
||||
* passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of
|
||||
* the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of
|
||||
* invoking operations on the resulting object. Finally, the to_any operation can be invoked
|
||||
* to create an any value from the constructed DynAny.
|
||||
*/
|
||||
public interface DynAnyFactory extends DynAnyFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynAnyFactory
|
||||
107
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactoryHelper.java
Normal file
107
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactoryHelper.java
Normal file
@@ -0,0 +1,107 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyFactoryHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynAny objects can be created by invoking operations on the DynAnyFactory object.
|
||||
* Generally there are only two ways to create a DynAny object:
|
||||
* <UL>
|
||||
* <LI>invoking an operation on an existing DynAny object
|
||||
* <LI>invoking an operation on a DynAnyFactory object
|
||||
* </UL>
|
||||
* A constructed DynAny object supports operations that enable the creation of new DynAny
|
||||
* objects encapsulating access to the value of some constituent.
|
||||
* DynAny objects also support the copy operation for creating new DynAny objects.
|
||||
* A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references()
|
||||
* with the identifier parameter set to the string constant "DynAnyFactory".
|
||||
* <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any()
|
||||
* as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed
|
||||
* to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
|
||||
* <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(),
|
||||
* passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of
|
||||
* the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of
|
||||
* invoking operations on the resulting object. Finally, the to_any operation can be invoked
|
||||
* to create an any value from the constructed DynAny.
|
||||
*/
|
||||
abstract public class DynAnyFactoryHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAnyFactory:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAnyFactory 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.DynamicAny.DynAnyFactory 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.DynamicAny.DynAnyFactoryHelper.id (), "DynAnyFactory");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyFactory 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.DynamicAny.DynAnyFactory value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyFactory narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynAnyFactory)
|
||||
return (org.omg.DynamicAny.DynAnyFactory)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 ();
|
||||
org.omg.DynamicAny._DynAnyFactoryStub stub = new org.omg.DynamicAny._DynAnyFactoryStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyFactory unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynAnyFactory)
|
||||
return (org.omg.DynamicAny.DynAnyFactory)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynAnyFactoryStub stub = new org.omg.DynamicAny._DynAnyFactoryStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
80
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactoryOperations.java
Normal file
80
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyFactoryOperations.java
Normal file
@@ -0,0 +1,80 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyFactoryOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynAny objects can be created by invoking operations on the DynAnyFactory object.
|
||||
* Generally there are only two ways to create a DynAny object:
|
||||
* <UL>
|
||||
* <LI>invoking an operation on an existing DynAny object
|
||||
* <LI>invoking an operation on a DynAnyFactory object
|
||||
* </UL>
|
||||
* A constructed DynAny object supports operations that enable the creation of new DynAny
|
||||
* objects encapsulating access to the value of some constituent.
|
||||
* DynAny objects also support the copy operation for creating new DynAny objects.
|
||||
* A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references()
|
||||
* with the identifier parameter set to the string constant "DynAnyFactory".
|
||||
* <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any()
|
||||
* as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed
|
||||
* to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
|
||||
* <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(),
|
||||
* passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of
|
||||
* the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of
|
||||
* invoking operations on the resulting object. Finally, the to_any operation can be invoked
|
||||
* to create an any value from the constructed DynAny.
|
||||
*/
|
||||
public interface DynAnyFactoryOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a new DynAny object from an any value.
|
||||
* A copy of the TypeCode associated with the any value is assigned to the resulting DynAny object.
|
||||
* The value associated with the DynAny object is a copy of the value in the original any.
|
||||
* The current position of the created DynAny is set to zero if the passed value has components,
|
||||
* to -1 otherwise
|
||||
*
|
||||
* @exception InconsistentTypeCode if value has a TypeCode with a TCKind of tk_Principal,
|
||||
* tk_native, or tk_abstract_interface
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny create_dyn_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode;
|
||||
|
||||
/**
|
||||
* Creates a DynAny from a TypeCode. Depending on the TypeCode, the created object may be of type DynAny,
|
||||
* or one of its derived types, such as DynStruct. The returned reference can be narrowed to the derived type.
|
||||
* In all cases, a DynAny constructed from a TypeCode has an initial default value.
|
||||
* The default values of basic types are:
|
||||
* <UL>
|
||||
* <LI>false for boolean
|
||||
* <LI>zero for numeric types
|
||||
* <LI>zero for types octet, char, and wchar
|
||||
* <LI>the empty string for string and wstring
|
||||
* <LI>null for object references
|
||||
* <LI>a type code with a TCKind value of tk_null for type codes
|
||||
* <LI>for any values, an any containing a type code with a TCKind value of tk_null type and no value
|
||||
* </UL>
|
||||
* For complex types, creation of the corresponding DynAny assigns a default value as follows:
|
||||
* <UL>
|
||||
* <LI>For DynSequence it sets the current position to -1 and creates an empty sequence.
|
||||
* <LI>For DynEnum it sets the current position to -1 and sets the value of the enumerator
|
||||
* to the first enumerator value indicated by the TypeCode.
|
||||
* <LI>For DynFixed it sets the current position to -1 and sets the value zero.
|
||||
* <LI>For DynStruct it sets the current position to -1 for empty exceptions
|
||||
* and to zero for all other TypeCodes. The members (if any) are (recursively) initialized
|
||||
* to their default values.
|
||||
* <LI>For DynArray sets the current position to zero and (recursively) initializes elements
|
||||
* to their default value.
|
||||
* <LI>For DynUnion sets the current position to zero. The discriminator value is set
|
||||
* to a value consistent with the first named member of the union. That member is activated and (recursively)
|
||||
* initialized to its default value.
|
||||
* <LI>For DynValue and DynValueBox it initializes to a null value.
|
||||
* </UL>
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny create_dyn_any_from_type_code (org.omg.CORBA.TypeCode type) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode;
|
||||
} // interface DynAnyFactoryOperations
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.DynamicAny.DynAnyFactoryPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyFactoryPackage/InconsistentTypeCode.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InconsistentTypeCode extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public InconsistentTypeCode ()
|
||||
{
|
||||
super(InconsistentTypeCodeHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public InconsistentTypeCode (String $reason)
|
||||
{
|
||||
super(InconsistentTypeCodeHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class InconsistentTypeCode
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.DynamicAny.DynAnyFactoryPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyFactoryPackage/InconsistentTypeCodeHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class InconsistentTypeCodeHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAnyFactory/InconsistentTypeCode:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode 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.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCodeHelper.id (), "InconsistentTypeCode", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode value = new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
153
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyHelper.java
Normal file
153
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyHelper.java
Normal file
@@ -0,0 +1,153 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Any values can be dynamically interpreted (traversed) and constructed through DynAny objects.
|
||||
* A DynAny object is associated with a data value which corresponds to a copy of the value
|
||||
* inserted into an any.
|
||||
* <P>A DynAny object may be viewed as an ordered collection of component DynAnys.
|
||||
* For DynAnys representing a basic type, such as long, or a type without components,
|
||||
* such as an empty exception, the ordered collection of components is empty.
|
||||
* Each DynAny object maintains the notion of a current position into its collection
|
||||
* of component DynAnys. The current position is identified by an index value that runs
|
||||
* from 0 to n-1, where n is the number of components.
|
||||
* The special index value -1 indicates a current position that points nowhere.
|
||||
* For values that cannot have a current position (such as an empty exception),
|
||||
* the index value is fixed at -1.
|
||||
* If a DynAny is initialized with a value that has components, the index is initialized to 0.
|
||||
* After creation of an uninitialized DynAny (that is, a DynAny that has no value but a TypeCode
|
||||
* that permits components), the current position depends on the type of value represented by
|
||||
* the DynAny. (The current position is set to 0 or -1, depending on whether the new DynAny
|
||||
* gets default values for its components.)
|
||||
* <P>The iteration operations rewind, seek, and next can be used to change the current position
|
||||
* and the current_component operation returns the component at the current position.
|
||||
* The component_count operation returns the number of components of a DynAny.
|
||||
* Collectively, these operations enable iteration over the components of a DynAny, for example,
|
||||
* to (recursively) examine its contents.
|
||||
* <P>A constructed DynAny object is a DynAny object associated with a constructed type.
|
||||
* There is a different interface, inheriting from the DynAny interface, associated with
|
||||
* each kind of constructed type in IDL (fixed, enum, struct, sequence, union, array,
|
||||
* exception, and value type).
|
||||
* <P>A constructed DynAny object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a component of the constructed data value.
|
||||
* As an example, a DynStruct is associated with a struct value. This means that the DynStruct
|
||||
* may be seen as owning an ordered collection of components, one for each structure member.
|
||||
* The DynStruct object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a member of the struct.
|
||||
* <P>If a DynAny object has been obtained from another (constructed) DynAny object,
|
||||
* such as a DynAny representing a structure member that was created from a DynStruct,
|
||||
* the member DynAny is logically contained in the DynStruct.
|
||||
* Calling an insert or get operation leaves the current position unchanged.
|
||||
* Destroying a top-level DynAny object (one that was not obtained as a component of another DynAny)
|
||||
* also destroys any component DynAny objects obtained from it.
|
||||
* Destroying a non-top level DynAny object does nothing.
|
||||
* Invoking operations on a destroyed top-level DynAny or any of its descendants raises OBJECT_NOT_EXIST.
|
||||
* If the programmer wants to destroy a DynAny object but still wants to manipulate some component
|
||||
* of the data value associated with it, then he or she should first create a DynAny for the component
|
||||
* and, after that, make a copy of the created DynAny object.
|
||||
* <P>The behavior of DynAny objects has been defined in order to enable efficient implementations
|
||||
* in terms of allocated memory space and speed of access. DynAny objects are intended to be used
|
||||
* for traversing values extracted from anys or constructing values of anys at runtime.
|
||||
* Their use for other purposes is not recommended.
|
||||
* <P>Insert and get operations are necessary to handle basic DynAny objects
|
||||
* but are also helpful to handle constructed DynAny objects.
|
||||
* Inserting a basic data type value into a constructed DynAny object
|
||||
* implies initializing the current component of the constructed data value
|
||||
* associated with the DynAny object. For example, invoking insert_boolean on a
|
||||
* DynStruct implies inserting a boolean data value at the current position
|
||||
* of the associated struct data value.
|
||||
* A type is consistent for inserting or extracting a value if its TypeCode is equivalent to
|
||||
* the TypeCode contained in the DynAny or, if the DynAny has components, is equivalent to the TypeCode
|
||||
* of the DynAny at the current position.
|
||||
* <P>DynAny and DynAnyFactory objects are intended to be local to the process in which they are
|
||||
* created and used. This means that references to DynAny and DynAnyFactory objects cannot be exported
|
||||
* to other processes, or externalized with ORB.object_to_string().
|
||||
* If any attempt is made to do so, the offending operation will raise a MARSHAL system exception.
|
||||
* Since their interfaces are specified in IDL, DynAny objects export operations defined in the standard
|
||||
* org.omg.CORBA.Object interface. However, any attempt to invoke operations exported through the Object
|
||||
* interface may raise the standard NO_IMPLEMENT exception.
|
||||
* An attempt to use a DynAny object with the DII may raise the NO_IMPLEMENT exception.
|
||||
*/
|
||||
abstract public class DynAnyHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAny:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAny 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.DynamicAny.DynAny 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.DynamicAny.DynAnyHelper.id (), "DynAny");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAny 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.DynamicAny.DynAny value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAny narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynAny)
|
||||
return (org.omg.DynamicAny.DynAny)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 ();
|
||||
org.omg.DynamicAny._DynAnyStub stub = new org.omg.DynamicAny._DynAnyStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAny unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynAny)
|
||||
return (org.omg.DynamicAny.DynAny)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynAnyStub stub = new org.omg.DynamicAny._DynAnyStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
569
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyOperations.java
Normal file
569
jdkSrc/jdk8/org/omg/DynamicAny/DynAnyOperations.java
Normal file
@@ -0,0 +1,569 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Any values can be dynamically interpreted (traversed) and constructed through DynAny objects.
|
||||
* A DynAny object is associated with a data value which corresponds to a copy of the value
|
||||
* inserted into an any.
|
||||
* <P>A DynAny object may be viewed as an ordered collection of component DynAnys.
|
||||
* For DynAnys representing a basic type, such as long, or a type without components,
|
||||
* such as an empty exception, the ordered collection of components is empty.
|
||||
* Each DynAny object maintains the notion of a current position into its collection
|
||||
* of component DynAnys. The current position is identified by an index value that runs
|
||||
* from 0 to n-1, where n is the number of components.
|
||||
* The special index value -1 indicates a current position that points nowhere.
|
||||
* For values that cannot have a current position (such as an empty exception),
|
||||
* the index value is fixed at -1.
|
||||
* If a DynAny is initialized with a value that has components, the index is initialized to 0.
|
||||
* After creation of an uninitialized DynAny (that is, a DynAny that has no value but a TypeCode
|
||||
* that permits components), the current position depends on the type of value represented by
|
||||
* the DynAny. (The current position is set to 0 or -1, depending on whether the new DynAny
|
||||
* gets default values for its components.)
|
||||
* <P>The iteration operations rewind, seek, and next can be used to change the current position
|
||||
* and the current_component operation returns the component at the current position.
|
||||
* The component_count operation returns the number of components of a DynAny.
|
||||
* Collectively, these operations enable iteration over the components of a DynAny, for example,
|
||||
* to (recursively) examine its contents.
|
||||
* <P>A constructed DynAny object is a DynAny object associated with a constructed type.
|
||||
* There is a different interface, inheriting from the DynAny interface, associated with
|
||||
* each kind of constructed type in IDL (fixed, enum, struct, sequence, union, array,
|
||||
* exception, and value type).
|
||||
* <P>A constructed DynAny object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a component of the constructed data value.
|
||||
* As an example, a DynStruct is associated with a struct value. This means that the DynStruct
|
||||
* may be seen as owning an ordered collection of components, one for each structure member.
|
||||
* The DynStruct object exports operations that enable the creation of new DynAny objects,
|
||||
* each of them associated with a member of the struct.
|
||||
* <P>If a DynAny object has been obtained from another (constructed) DynAny object,
|
||||
* such as a DynAny representing a structure member that was created from a DynStruct,
|
||||
* the member DynAny is logically contained in the DynStruct.
|
||||
* Calling an insert or get operation leaves the current position unchanged.
|
||||
* Destroying a top-level DynAny object (one that was not obtained as a component of another DynAny)
|
||||
* also destroys any component DynAny objects obtained from it.
|
||||
* Destroying a non-top level DynAny object does nothing.
|
||||
* Invoking operations on a destroyed top-level DynAny or any of its descendants raises OBJECT_NOT_EXIST.
|
||||
* If the programmer wants to destroy a DynAny object but still wants to manipulate some component
|
||||
* of the data value associated with it, then he or she should first create a DynAny for the component
|
||||
* and, after that, make a copy of the created DynAny object.
|
||||
* <P>The behavior of DynAny objects has been defined in order to enable efficient implementations
|
||||
* in terms of allocated memory space and speed of access. DynAny objects are intended to be used
|
||||
* for traversing values extracted from anys or constructing values of anys at runtime.
|
||||
* Their use for other purposes is not recommended.
|
||||
* <P>Insert and get operations are necessary to handle basic DynAny objects
|
||||
* but are also helpful to handle constructed DynAny objects.
|
||||
* Inserting a basic data type value into a constructed DynAny object
|
||||
* implies initializing the current component of the constructed data value
|
||||
* associated with the DynAny object. For example, invoking insert_boolean on a
|
||||
* DynStruct implies inserting a boolean data value at the current position
|
||||
* of the associated struct data value.
|
||||
* A type is consistent for inserting or extracting a value if its TypeCode is equivalent to
|
||||
* the TypeCode contained in the DynAny or, if the DynAny has components, is equivalent to the TypeCode
|
||||
* of the DynAny at the current position.
|
||||
* <P>DynAny and DynAnyFactory objects are intended to be local to the process in which they are
|
||||
* created and used. This means that references to DynAny and DynAnyFactory objects cannot be exported
|
||||
* to other processes, or externalized with ORB.object_to_string().
|
||||
* If any attempt is made to do so, the offending operation will raise a MARSHAL system exception.
|
||||
* Since their interfaces are specified in IDL, DynAny objects export operations defined in the standard
|
||||
* org.omg.CORBA.Object interface. However, any attempt to invoke operations exported through the Object
|
||||
* interface may raise the standard NO_IMPLEMENT exception.
|
||||
* An attempt to use a DynAny object with the DII may raise the NO_IMPLEMENT exception.
|
||||
*/
|
||||
public interface DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the TypeCode associated with this DynAny object.
|
||||
* A DynAny object is created with a TypeCode value assigned to it.
|
||||
* This TypeCode value determines the type of the value handled through the DynAny object.
|
||||
* Note that the TypeCode associated with a DynAny object is initialized at the time the
|
||||
* DynAny is created and cannot be changed during lifetime of the DynAny object.
|
||||
*
|
||||
* @return The TypeCode associated with this DynAny object
|
||||
*/
|
||||
org.omg.CORBA.TypeCode type ();
|
||||
|
||||
/**
|
||||
* Initializes the value associated with a DynAny object with the value
|
||||
* associated with another DynAny object.
|
||||
* The current position of the target DynAny is set to zero for values that have components
|
||||
* and to -1 for values that do not have components.
|
||||
*
|
||||
* @param dyn_any
|
||||
* @exception TypeMismatch if the type of the passed DynAny is not equivalent to the type of target DynAny
|
||||
*/
|
||||
void assign (org.omg.DynamicAny.DynAny dyn_any) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Initializes the value associated with a DynAny object with the value contained in an any.
|
||||
* The current position of the target DynAny is set to zero for values that have components
|
||||
* and to -1 for values that do not have components.
|
||||
*
|
||||
* @exception TypeMismatch if the type of the passed Any is not equivalent to the type of target DynAny
|
||||
* @exception InvalidValue if the passed Any does not contain a legal value (such as a null string)
|
||||
*/
|
||||
void from_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Creates an any value from a DynAny object.
|
||||
* A copy of the TypeCode associated with the DynAny object is assigned to the resulting any.
|
||||
* The value associated with the DynAny object is copied into the any.
|
||||
*
|
||||
* @return a new Any object with the same value and TypeCode
|
||||
*/
|
||||
org.omg.CORBA.Any to_any ();
|
||||
|
||||
/**
|
||||
* Compares two DynAny values for equality.
|
||||
* Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys
|
||||
* have equal values.
|
||||
* The current position of the two DynAnys being compared has no effect on the result of equal.
|
||||
*
|
||||
* @return true of the DynAnys are equal, false otherwise
|
||||
*/
|
||||
boolean equal (org.omg.DynamicAny.DynAny dyn_any);
|
||||
|
||||
/**
|
||||
* Destroys a DynAny object.
|
||||
* This operation frees any resources used to represent the data value associated with a DynAny object.
|
||||
* It must be invoked on references obtained from one of the creation operations on the ORB interface
|
||||
* or on a reference returned by DynAny.copy() to avoid resource leaks.
|
||||
* Invoking destroy on component DynAny objects (for example, on objects returned by the
|
||||
* current_component operation) does nothing.
|
||||
* Destruction of a DynAny object implies destruction of all DynAny objects obtained from it.
|
||||
* That is, references to components of a destroyed DynAny become invalid.
|
||||
* Invocations on such references raise OBJECT_NOT_EXIST.
|
||||
* It is possible to manipulate a component of a DynAny beyond the life time of the DynAny
|
||||
* from which the component was obtained by making a copy of the component with the copy operation
|
||||
* before destroying the DynAny from which the component was obtained.
|
||||
*/
|
||||
void destroy ();
|
||||
|
||||
/**
|
||||
* Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
|
||||
* The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
|
||||
* such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
|
||||
*
|
||||
* @return a deep copy of the DynAny object
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny copy ();
|
||||
|
||||
/**
|
||||
* Inserts a boolean value into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_boolean (boolean value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a byte value into the DynAny. The IDL octet data type is mapped to the Java byte data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_octet (byte value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a char value into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_char (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a short value into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_short (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a short value into the DynAny. The IDL ushort data type is mapped to the Java short data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_ushort (short value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts an integer value into the DynAny. The IDL long data type is mapped to the Java int data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_long (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts an integer value into the DynAny. The IDL ulong data type is mapped to the Java int data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a float value into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_float (float value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a double value into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_double (double value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a string value into the DynAny.
|
||||
* Both bounded and unbounded strings are inserted using this method.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception InvalidValue if the string inserted is longer than the bound of a bounded string
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_string (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a reference to a CORBA object into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_reference (org.omg.CORBA.Object value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a TypeCode object into the DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_typecode (org.omg.CORBA.TypeCode value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a long value into the DynAny. The IDL long long data type is mapped to the Java long data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_longlong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a long value into the DynAny.
|
||||
* The IDL unsigned long long data type is mapped to the Java long data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_ulonglong (long value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a char value into the DynAny. The IDL wchar data type is mapped to the Java char data type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_wchar (char value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a string value into the DynAny.
|
||||
* Both bounded and unbounded strings are inserted using this method.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception InvalidValue if the string inserted is longer than the bound of a bounded string
|
||||
*/
|
||||
void insert_wstring (String value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts an Any value into the Any represented by this DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_dyn_any (org.omg.DynamicAny.DynAny value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Inserts a reference to a Serializable object into this DynAny.
|
||||
* The IDL ValueBase type is mapped to the Java Serializable type.
|
||||
*
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
void insert_val (java.io.Serializable value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the boolean value from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
boolean get_boolean () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the byte value from this DynAny. The IDL octet data type is mapped to the Java byte data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
byte get_octet () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the char value from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
char get_char () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the short value from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
short get_short () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the short value from this DynAny. The IDL ushort data type is mapped to the Java short data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
short get_ushort () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the integer value from this DynAny. The IDL long data type is mapped to the Java int data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
int get_long () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the integer value from this DynAny. The IDL ulong data type is mapped to the Java int data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
int get_ulong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the float value from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
float get_float () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the double value from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
double get_double () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the string value from this DynAny.
|
||||
* Both bounded and unbounded strings are extracted using this method.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
String get_string () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the reference to a CORBA Object from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
org.omg.CORBA.Object get_reference () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the TypeCode object from this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
org.omg.CORBA.TypeCode get_typecode () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the long value from this DynAny. The IDL long long data type is mapped to the Java long data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
long get_longlong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the long value from this DynAny.
|
||||
* The IDL unsigned long long data type is mapped to the Java long data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
long get_ulonglong () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the long value from this DynAny. The IDL wchar data type is mapped to the Java char data type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
char get_wchar () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the string value from this DynAny.
|
||||
* Both bounded and unbounded strings are extracted using this method.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
*/
|
||||
String get_wstring () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts an Any value contained in the Any represented by this DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
org.omg.CORBA.Any get_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped
|
||||
* into a new DynAny.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny get_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Extracts a Serializable object from this DynAny.
|
||||
* The IDL ValueBase type is mapped to the Java Serializable type.
|
||||
*
|
||||
* @exception TypeMismatch if the accessed component in the DynAny is of a type
|
||||
* that is not equivalent to the requested type.
|
||||
* @exception TypeMismatch if called on a DynAny whose current component itself has components
|
||||
* @exception InvalidValue if this DynAny has components but has a current position of -1
|
||||
*/
|
||||
java.io.Serializable get_val () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Sets the current position to index. The current position is indexed 0 to n-1, that is,
|
||||
* index zero corresponds to the first component. The operation returns true if the resulting
|
||||
* current position indicates a component of the DynAny and false if index indicates
|
||||
* a position that does not correspond to a component.
|
||||
* Calling seek with a negative index is legal. It sets the current position to -1 to indicate
|
||||
* no component and returns false. Passing a non-negative index value for a DynAny that does not
|
||||
* have a component at the corresponding position sets the current position to -1 and returns false.
|
||||
*/
|
||||
boolean seek (int index);
|
||||
|
||||
/**
|
||||
* Is equivalent to seek(0).
|
||||
*/
|
||||
void rewind ();
|
||||
|
||||
/**
|
||||
* Advances the current position to the next component.
|
||||
* The operation returns true while the resulting current position indicates a component, false otherwise.
|
||||
* A false return value leaves the current position at -1.
|
||||
* Invoking next on a DynAny without components leaves the current position at -1 and returns false.
|
||||
*/
|
||||
boolean next ();
|
||||
|
||||
/**
|
||||
* Returns the number of components of a DynAny.
|
||||
* For a DynAny without components, it returns zero.
|
||||
* The operation only counts the components at the top level.
|
||||
* For example, if component_count is invoked on a DynStruct with a single member,
|
||||
* the return value is 1, irrespective of the type of the member.
|
||||
* <UL>
|
||||
* <LI>For sequences, the operation returns the current number of elements.
|
||||
* <LI>For structures, exceptions, and value types, the operation returns the number of members.
|
||||
* <LI>For arrays, the operation returns the number of elements.
|
||||
* <LI>For unions, the operation returns 2 if the discriminator indicates that a named member is active,
|
||||
* otherwise, it returns 1.
|
||||
* <LI>For DynFixed and DynEnum, the operation returns zero.
|
||||
* </UL>
|
||||
*/
|
||||
int component_count ();
|
||||
|
||||
/**
|
||||
* Returns the DynAny for the component at the current position.
|
||||
* It does not advance the current position, so repeated calls to current_component
|
||||
* without an intervening call to rewind, next, or seek return the same component.
|
||||
* The returned DynAny object reference can be used to get/set the value of the current component.
|
||||
* If the current component represents a complex type, the returned reference can be narrowed
|
||||
* based on the TypeCode to get the interface corresponding to the to the complex type.
|
||||
* Calling current_component on a DynAny that cannot have components,
|
||||
* such as a DynEnum or an empty exception, raises TypeMismatch.
|
||||
* Calling current_component on a DynAny whose current position is -1 returns a nil reference.
|
||||
* The iteration operations, together with current_component, can be used
|
||||
* to dynamically compose an any value. After creating a dynamic any, such as a DynStruct,
|
||||
* current_component and next can be used to initialize all the components of the value.
|
||||
* Once the dynamic value is completely initialized, to_any creates the corresponding any value.
|
||||
*
|
||||
* @exception TypeMismatch If called on a DynAny that cannot have components,
|
||||
* such as a DynEnum or an empty exception
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny current_component () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
} // interface DynAnyOperations
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.DynamicAny.DynAnyPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyPackage/InvalidValue.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InvalidValue extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public InvalidValue ()
|
||||
{
|
||||
super(InvalidValueHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public InvalidValue (String $reason)
|
||||
{
|
||||
super(InvalidValueHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class InvalidValue
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.DynamicAny.DynAnyPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyPackage/InvalidValueHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class InvalidValueHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAny/InvalidValue:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAnyPackage.InvalidValue 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.DynamicAny.DynAnyPackage.InvalidValue extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.DynamicAny.DynAnyPackage.InvalidValueHelper.id (), "InvalidValue", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyPackage.InvalidValue read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.DynAnyPackage.InvalidValue value = new org.omg.DynamicAny.DynAnyPackage.InvalidValue ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.DynAnyPackage.InvalidValue value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.DynamicAny.DynAnyPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyPackage/TypeMismatch.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class TypeMismatch extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public TypeMismatch ()
|
||||
{
|
||||
super(TypeMismatchHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public TypeMismatch (String $reason)
|
||||
{
|
||||
super(TypeMismatchHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class TypeMismatch
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.DynamicAny.DynAnyPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnyPackage/TypeMismatchHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class TypeMismatchHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAny/TypeMismatch:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAnyPackage.TypeMismatch 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.DynamicAny.DynAnyPackage.TypeMismatch extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.DynamicAny.DynAnyPackage.TypeMismatchHelper.id (), "TypeMismatch", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAnyPackage.TypeMismatch read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.DynAnyPackage.TypeMismatch value = new org.omg.DynamicAny.DynAnyPackage.TypeMismatch ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.DynAnyPackage.TypeMismatch value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
62
jdkSrc/jdk8/org/omg/DynamicAny/DynAnySeqHelper.java
Normal file
62
jdkSrc/jdk8/org/omg/DynamicAny/DynAnySeqHelper.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynAnySeqHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class DynAnySeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynAnySeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynAny[] 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.DynamicAny.DynAny[] 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.DynamicAny.DynAnyHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.DynamicAny.DynAnySeqHelper.id (), "DynAnySeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynAny[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.DynAny value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.DynamicAny.DynAny[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = org.omg.DynamicAny.DynAnyHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.DynAny[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
org.omg.DynamicAny.DynAnyHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
19
jdkSrc/jdk8/org/omg/DynamicAny/DynArray.java
Normal file
19
jdkSrc/jdk8/org/omg/DynamicAny/DynArray.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynArray.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynArray objects support the manipulation of IDL arrays.
|
||||
* Note that the dimension of the array is contained in the TypeCode which is accessible
|
||||
* through the type attribute. It can also be obtained by calling the component_count operation.
|
||||
*/
|
||||
public interface DynArray extends DynArrayOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynArray
|
||||
91
jdkSrc/jdk8/org/omg/DynamicAny/DynArrayHelper.java
Normal file
91
jdkSrc/jdk8/org/omg/DynamicAny/DynArrayHelper.java
Normal file
@@ -0,0 +1,91 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynArrayHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynArray objects support the manipulation of IDL arrays.
|
||||
* Note that the dimension of the array is contained in the TypeCode which is accessible
|
||||
* through the type attribute. It can also be obtained by calling the component_count operation.
|
||||
*/
|
||||
abstract public class DynArrayHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynArray:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynArray 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.DynamicAny.DynArray 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.DynamicAny.DynArrayHelper.id (), "DynArray");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynArray 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.DynamicAny.DynArray value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynArray narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynArray)
|
||||
return (org.omg.DynamicAny.DynArray)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 ();
|
||||
org.omg.DynamicAny._DynArrayStub stub = new org.omg.DynamicAny._DynArrayStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynArray unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynArray)
|
||||
return (org.omg.DynamicAny.DynArray)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynArrayStub stub = new org.omg.DynamicAny._DynArrayStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
45
jdkSrc/jdk8/org/omg/DynamicAny/DynArrayOperations.java
Normal file
45
jdkSrc/jdk8/org/omg/DynamicAny/DynArrayOperations.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynArrayOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynArray objects support the manipulation of IDL arrays.
|
||||
* Note that the dimension of the array is contained in the TypeCode which is accessible
|
||||
* through the type attribute. It can also be obtained by calling the component_count operation.
|
||||
*/
|
||||
public interface DynArrayOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the elements of the DynArray.
|
||||
*/
|
||||
org.omg.CORBA.Any[] get_elements ();
|
||||
|
||||
/**
|
||||
* Sets the DynArray to contain the passed elements.
|
||||
*
|
||||
* @exception TypeMismatch if one or more elements have a type that is inconsistent with the DynArrays TypeCode
|
||||
* @exception InvalidValue if the sequence does not contain the same number of elements as the array dimension
|
||||
*/
|
||||
void set_elements (org.omg.CORBA.Any[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the elements of the DynArray as DynAnys.
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny[] get_elements_as_dyn_any ();
|
||||
|
||||
/**
|
||||
* Sets the DynArray to contain the passed elements.
|
||||
*
|
||||
* @exception TypeMismatch if one or more elements have a type that is inconsistent with the DynArrays TypeCode
|
||||
* @exception InvalidValue if the sequence does not contain the same number of elements as the array dimension
|
||||
*/
|
||||
void set_elements_as_dyn_any (org.omg.DynamicAny.DynAny[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynArrayOperations
|
||||
18
jdkSrc/jdk8/org/omg/DynamicAny/DynEnum.java
Normal file
18
jdkSrc/jdk8/org/omg/DynamicAny/DynEnum.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynEnum.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynEnum objects support the manipulation of IDL enumerated values.
|
||||
* The current position of a DynEnum is always -1.
|
||||
*/
|
||||
public interface DynEnum extends DynEnumOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynEnum
|
||||
90
jdkSrc/jdk8/org/omg/DynamicAny/DynEnumHelper.java
Normal file
90
jdkSrc/jdk8/org/omg/DynamicAny/DynEnumHelper.java
Normal file
@@ -0,0 +1,90 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynEnumHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynEnum objects support the manipulation of IDL enumerated values.
|
||||
* The current position of a DynEnum is always -1.
|
||||
*/
|
||||
abstract public class DynEnumHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynEnum:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynEnum 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.DynamicAny.DynEnum 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.DynamicAny.DynEnumHelper.id (), "DynEnum");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynEnum 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.DynamicAny.DynEnum value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynEnum narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynEnum)
|
||||
return (org.omg.DynamicAny.DynEnum)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 ();
|
||||
org.omg.DynamicAny._DynEnumStub stub = new org.omg.DynamicAny._DynEnumStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynEnum unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynEnum)
|
||||
return (org.omg.DynamicAny.DynEnum)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynEnumStub stub = new org.omg.DynamicAny._DynEnumStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
46
jdkSrc/jdk8/org/omg/DynamicAny/DynEnumOperations.java
Normal file
46
jdkSrc/jdk8/org/omg/DynamicAny/DynEnumOperations.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynEnumOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynEnum objects support the manipulation of IDL enumerated values.
|
||||
* The current position of a DynEnum is always -1.
|
||||
*/
|
||||
public interface DynEnumOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the value of the DynEnum as an IDL identifier.
|
||||
*/
|
||||
String get_as_string ();
|
||||
|
||||
/**
|
||||
* Sets the value of the DynEnum to the enumerated value whose IDL identifier is passed in the value parameter.
|
||||
*
|
||||
* @exception InvalidValue If value contains a string that is not a valid IDL identifier
|
||||
* for the corresponding enumerated type
|
||||
*/
|
||||
void set_as_string (String value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the value of the DynEnum as the enumerated value's ordinal value.
|
||||
* Enumerators have ordinal values 0 to n-1, as they appear from left to right
|
||||
* in the corresponding IDL definition.
|
||||
*/
|
||||
int get_as_ulong ();
|
||||
|
||||
/**
|
||||
* Sets the value of the DynEnum as the enumerated value's ordinal value.
|
||||
*
|
||||
* @exception InvalidValue If value contains a value that is outside the range of ordinal values
|
||||
* for the corresponding enumerated type
|
||||
*/
|
||||
void set_as_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynEnumOperations
|
||||
19
jdkSrc/jdk8/org/omg/DynamicAny/DynFixed.java
Normal file
19
jdkSrc/jdk8/org/omg/DynamicAny/DynFixed.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynFixed.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynFixed objects support the manipulation of IDL fixed values.
|
||||
* Because IDL does not have a generic type that can represent fixed types with arbitrary
|
||||
* number of digits and arbitrary scale, the operations use the IDL string type.
|
||||
*/
|
||||
public interface DynFixed extends DynFixedOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynFixed
|
||||
91
jdkSrc/jdk8/org/omg/DynamicAny/DynFixedHelper.java
Normal file
91
jdkSrc/jdk8/org/omg/DynamicAny/DynFixedHelper.java
Normal file
@@ -0,0 +1,91 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynFixedHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynFixed objects support the manipulation of IDL fixed values.
|
||||
* Because IDL does not have a generic type that can represent fixed types with arbitrary
|
||||
* number of digits and arbitrary scale, the operations use the IDL string type.
|
||||
*/
|
||||
abstract public class DynFixedHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynFixed:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynFixed 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.DynamicAny.DynFixed 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.DynamicAny.DynFixedHelper.id (), "DynFixed");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynFixed 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.DynamicAny.DynFixed value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynFixed narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynFixed)
|
||||
return (org.omg.DynamicAny.DynFixed)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 ();
|
||||
org.omg.DynamicAny._DynFixedStub stub = new org.omg.DynamicAny._DynFixedStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynFixed unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynFixed)
|
||||
return (org.omg.DynamicAny.DynFixed)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynFixedStub stub = new org.omg.DynamicAny._DynFixedStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
38
jdkSrc/jdk8/org/omg/DynamicAny/DynFixedOperations.java
Normal file
38
jdkSrc/jdk8/org/omg/DynamicAny/DynFixedOperations.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynFixedOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynFixed objects support the manipulation of IDL fixed values.
|
||||
* Because IDL does not have a generic type that can represent fixed types with arbitrary
|
||||
* number of digits and arbitrary scale, the operations use the IDL string type.
|
||||
*/
|
||||
public interface DynFixedOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the value of a DynFixed.
|
||||
*/
|
||||
String get_value ();
|
||||
|
||||
/**
|
||||
* Sets the value of the DynFixed.
|
||||
* The val string must contain a fixed string constant in the same format as used for IDL fixed-point literals.
|
||||
* However, the trailing d or D is optional. The return value is true if val can be represented as the DynFixed
|
||||
* without loss of precision. If val has more fractional digits than can be represented in the DynFixed,
|
||||
* fractional digits are truncated and the return value is false.
|
||||
*
|
||||
* @exception TypeMismatch If val does not contain a valid fixed-point literal or contains extraneous
|
||||
* characters other than leading or trailing white space
|
||||
* @exception InvalidValue If val contains a value whose scale exceeds that of the DynFixed
|
||||
* or is not initialized
|
||||
*/
|
||||
boolean set_value (String val) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynFixedOperations
|
||||
17
jdkSrc/jdk8/org/omg/DynamicAny/DynSequence.java
Normal file
17
jdkSrc/jdk8/org/omg/DynamicAny/DynSequence.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynSequence.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynSequence objects support the manipulation of IDL sequences.
|
||||
*/
|
||||
public interface DynSequence extends DynSequenceOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynSequence
|
||||
89
jdkSrc/jdk8/org/omg/DynamicAny/DynSequenceHelper.java
Normal file
89
jdkSrc/jdk8/org/omg/DynamicAny/DynSequenceHelper.java
Normal file
@@ -0,0 +1,89 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynSequenceHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynSequence objects support the manipulation of IDL sequences.
|
||||
*/
|
||||
abstract public class DynSequenceHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynSequence:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynSequence 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.DynamicAny.DynSequence 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.DynamicAny.DynSequenceHelper.id (), "DynSequence");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynSequence 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.DynamicAny.DynSequence value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynSequence narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynSequence)
|
||||
return (org.omg.DynamicAny.DynSequence)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 ();
|
||||
org.omg.DynamicAny._DynSequenceStub stub = new org.omg.DynamicAny._DynSequenceStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynSequence unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynSequence)
|
||||
return (org.omg.DynamicAny.DynSequence)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynSequenceStub stub = new org.omg.DynamicAny._DynSequenceStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
77
jdkSrc/jdk8/org/omg/DynamicAny/DynSequenceOperations.java
Normal file
77
jdkSrc/jdk8/org/omg/DynamicAny/DynSequenceOperations.java
Normal file
@@ -0,0 +1,77 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynSequenceOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynSequence objects support the manipulation of IDL sequences.
|
||||
*/
|
||||
public interface DynSequenceOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the current length of the sequence.
|
||||
*/
|
||||
int get_length ();
|
||||
|
||||
/**
|
||||
* Sets the length of the sequence.
|
||||
* Increasing the length of a sequence adds new elements at the tail without affecting the values
|
||||
* of already existing elements. Newly added elements are default-initialized.
|
||||
* Increasing the length of a sequence sets the current position to the first newly-added element
|
||||
* if the previous current position was -1. Otherwise, if the previous current position was not -1,
|
||||
* the current position is not affected.
|
||||
* Decreasing the length of a sequence removes elements from the tail without affecting the value
|
||||
* of those elements that remain. The new current position after decreasing the length of a sequence
|
||||
* is determined as follows:
|
||||
* <UL>
|
||||
* <LI>If the length of the sequence is set to zero, the current position is set to -1.
|
||||
* <LI>If the current position is -1 before decreasing the length, it remains at -1.
|
||||
* <LI>If the current position indicates a valid element and that element is not removed when the length
|
||||
* is decreased, the current position remains unaffected.
|
||||
* <LI>If the current position indicates a valid element and that element is removed,
|
||||
* the current position is set to -1.
|
||||
* </UL>
|
||||
*
|
||||
* @exception InvalidValue if this is a bounded sequence and len is larger than the bound
|
||||
*/
|
||||
void set_length (int len) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the elements of the sequence.
|
||||
*/
|
||||
org.omg.CORBA.Any[] get_elements ();
|
||||
|
||||
/**
|
||||
* Sets the elements of a sequence.
|
||||
* The length of the DynSequence is set to the length of value. The current position is set to zero
|
||||
* if value has non-zero length and to -1 if value is a zero-length sequence.
|
||||
*
|
||||
* @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
|
||||
* to the element TypeCode of the DynSequence
|
||||
* @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
|
||||
*/
|
||||
void set_elements (org.omg.CORBA.Any[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the DynAnys representing the elements of the sequence.
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny[] get_elements_as_dyn_any ();
|
||||
|
||||
/**
|
||||
* Sets the elements of a sequence using DynAnys.
|
||||
* The length of the DynSequence is set to the length of value. The current position is set to zero
|
||||
* if value has non-zero length and to -1 if value is a zero-length sequence.
|
||||
*
|
||||
* @exception TypeMismatch if value contains one or more elements whose TypeCode is not equivalent
|
||||
* to the element TypeCode of the DynSequence
|
||||
* @exception InvalidValue if the length of value exceeds the bound of a bounded sequence
|
||||
*/
|
||||
void set_elements_as_dyn_any (org.omg.DynamicAny.DynAny[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynSequenceOperations
|
||||
18
jdkSrc/jdk8/org/omg/DynamicAny/DynStruct.java
Normal file
18
jdkSrc/jdk8/org/omg/DynamicAny/DynStruct.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynStruct.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynStruct objects support the manipulation of IDL struct and exception values.
|
||||
* Members of the exceptions are handled in the same way as members of a struct.
|
||||
*/
|
||||
public interface DynStruct extends DynStructOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynStruct
|
||||
90
jdkSrc/jdk8/org/omg/DynamicAny/DynStructHelper.java
Normal file
90
jdkSrc/jdk8/org/omg/DynamicAny/DynStructHelper.java
Normal file
@@ -0,0 +1,90 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynStructHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynStruct objects support the manipulation of IDL struct and exception values.
|
||||
* Members of the exceptions are handled in the same way as members of a struct.
|
||||
*/
|
||||
abstract public class DynStructHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynStruct:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynStruct 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.DynamicAny.DynStruct 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.DynamicAny.DynStructHelper.id (), "DynStruct");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynStruct 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.DynamicAny.DynStruct value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynStruct narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynStruct)
|
||||
return (org.omg.DynamicAny.DynStruct)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 ();
|
||||
org.omg.DynamicAny._DynStructStub stub = new org.omg.DynamicAny._DynStructStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynStruct unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynStruct)
|
||||
return (org.omg.DynamicAny.DynStruct)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynStructStub stub = new org.omg.DynamicAny._DynStructStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
86
jdkSrc/jdk8/org/omg/DynamicAny/DynStructOperations.java
Normal file
86
jdkSrc/jdk8/org/omg/DynamicAny/DynStructOperations.java
Normal file
@@ -0,0 +1,86 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynStructOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynStruct objects support the manipulation of IDL struct and exception values.
|
||||
* Members of the exceptions are handled in the same way as members of a struct.
|
||||
*/
|
||||
public interface DynStructOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the name of the member at the current position.
|
||||
* This operation may return an empty string since the TypeCode of the value being
|
||||
* manipulated may not contain the names of members.
|
||||
*
|
||||
* @exception TypeMismatch if the DynStruct represents an empty exception.
|
||||
* @exception InvalidValue if the current position does not indicate a member
|
||||
*/
|
||||
String current_member_name () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the TCKind associated with the member at the current position.
|
||||
*
|
||||
* @exception TypeMismatch if the DynStruct represents an empty exception.
|
||||
* @exception InvalidValue if the current position does not indicate a member
|
||||
*/
|
||||
org.omg.CORBA.TCKind current_member_kind () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns a sequence of NameValuePairs describing the name and the value of each member
|
||||
* in the struct associated with a DynStruct object.
|
||||
* The sequence contains members in the same order as the declaration order of members
|
||||
* as indicated by the DynStruct's TypeCode. The current position is not affected.
|
||||
* The member names in the returned sequence will be empty strings if the DynStruct's TypeCode
|
||||
* does not contain member names.
|
||||
*/
|
||||
org.omg.DynamicAny.NameValuePair[] get_members ();
|
||||
|
||||
/**
|
||||
* Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs.
|
||||
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
|
||||
* if an empty sequence is passed, the current position is set to -1.
|
||||
* <P>Members must appear in the NameValuePairs in the order in which they appear in the IDL specification
|
||||
* of the struct as indicated by the DynStruct's TypeCode or they must be empty strings.
|
||||
* The operation makes no attempt to assign member values based on member names.
|
||||
*
|
||||
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
|
||||
* corresponding member name in the DynStruct's TypeCode and they are not empty strings
|
||||
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
|
||||
* with the number of members as indicated by the DynStruct's TypeCode
|
||||
*/
|
||||
void set_members (org.omg.DynamicAny.NameValuePair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns a sequence of NameDynAnyPairs describing the name and the value of each member
|
||||
* in the struct associated with a DynStruct object.
|
||||
* The sequence contains members in the same order as the declaration order of members
|
||||
* as indicated by the DynStruct's TypeCode. The current position is not affected.
|
||||
* The member names in the returned sequence will be empty strings if the DynStruct's TypeCode
|
||||
* does not contain member names.
|
||||
*/
|
||||
org.omg.DynamicAny.NameDynAnyPair[] get_members_as_dyn_any ();
|
||||
|
||||
/**
|
||||
* Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs.
|
||||
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
|
||||
* if an empty sequence is passed, the current position is set to -1.
|
||||
* <P>Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification
|
||||
* of the struct as indicated by the DynStruct's TypeCode or they must be empty strings.
|
||||
* The operation makes no attempt to assign member values based on member names.
|
||||
*
|
||||
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
|
||||
* corresponding member name in the DynStruct's TypeCode and they are not empty strings
|
||||
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
|
||||
* with the number of members as indicated by the DynStruct's TypeCode
|
||||
*/
|
||||
void set_members_as_dyn_any (org.omg.DynamicAny.NameDynAnyPair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynStructOperations
|
||||
24
jdkSrc/jdk8/org/omg/DynamicAny/DynUnion.java
Normal file
24
jdkSrc/jdk8/org/omg/DynamicAny/DynUnion.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynUnion.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynUnion objects support the manipulation of IDL unions.
|
||||
* A union can have only two valid current positions:
|
||||
* <UL>
|
||||
* <LI>zero, which denotes the discriminator
|
||||
* <LI>one, which denotes the active member
|
||||
* </UL>
|
||||
* The component_count value for a union depends on the current discriminator:
|
||||
* it is 2 for a union whose discriminator indicates a named member, and 1 otherwise.
|
||||
*/
|
||||
public interface DynUnion extends DynUnionOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynUnion
|
||||
96
jdkSrc/jdk8/org/omg/DynamicAny/DynUnionHelper.java
Normal file
96
jdkSrc/jdk8/org/omg/DynamicAny/DynUnionHelper.java
Normal file
@@ -0,0 +1,96 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynUnionHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynUnion objects support the manipulation of IDL unions.
|
||||
* A union can have only two valid current positions:
|
||||
* <UL>
|
||||
* <LI>zero, which denotes the discriminator
|
||||
* <LI>one, which denotes the active member
|
||||
* </UL>
|
||||
* The component_count value for a union depends on the current discriminator:
|
||||
* it is 2 for a union whose discriminator indicates a named member, and 1 otherwise.
|
||||
*/
|
||||
abstract public class DynUnionHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynUnion:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynUnion 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.DynamicAny.DynUnion 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.DynamicAny.DynUnionHelper.id (), "DynUnion");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynUnion 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.DynamicAny.DynUnion value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynUnion narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynUnion)
|
||||
return (org.omg.DynamicAny.DynUnion)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 ();
|
||||
org.omg.DynamicAny._DynUnionStub stub = new org.omg.DynamicAny._DynUnionStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynUnion unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynUnion)
|
||||
return (org.omg.DynamicAny.DynUnion)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynUnionStub stub = new org.omg.DynamicAny._DynUnionStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
101
jdkSrc/jdk8/org/omg/DynamicAny/DynUnionOperations.java
Normal file
101
jdkSrc/jdk8/org/omg/DynamicAny/DynUnionOperations.java
Normal file
@@ -0,0 +1,101 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynUnionOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynUnion objects support the manipulation of IDL unions.
|
||||
* A union can have only two valid current positions:
|
||||
* <UL>
|
||||
* <LI>zero, which denotes the discriminator
|
||||
* <LI>one, which denotes the active member
|
||||
* </UL>
|
||||
* The component_count value for a union depends on the current discriminator:
|
||||
* it is 2 for a union whose discriminator indicates a named member, and 1 otherwise.
|
||||
*/
|
||||
public interface DynUnionOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the current discriminator value.
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny get_discriminator ();
|
||||
|
||||
/**
|
||||
* Sets the discriminator of the DynUnion to the specified value.
|
||||
* Setting the discriminator to a value that is consistent with the currently active union member
|
||||
* does not affect the currently active member. Setting the discriminator to a value that is inconsistent
|
||||
* with the currently active member deactivates the member and activates the member that is consistent
|
||||
* with the new discriminator value (if there is a member for that value) by initializing the member
|
||||
* to its default value.
|
||||
* Setting the discriminator of a union sets the current position to 0 if the discriminator value
|
||||
* indicates a non-existent union member (has_no_active_member returns true in this case).
|
||||
* Otherwise, if the discriminator value indicates a named union member, the current position is set to 1
|
||||
* (has_no_active_member returns false and component_count returns 2 in this case).
|
||||
*
|
||||
* @exception TypeMismatch if the TypeCode of the parameter is not equivalent to the TypeCode
|
||||
* of the union's discriminator
|
||||
*/
|
||||
void set_discriminator (org.omg.DynamicAny.DynAny d) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Sets the discriminator to a value that is consistent with the value of the default case of a union.
|
||||
* It sets the current position to zero and causes component_count to return 2.
|
||||
*
|
||||
* @exception TypeMismatch if the union does not have an explicit default case
|
||||
*/
|
||||
void set_to_default_member () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Sets the discriminator to a value that does not correspond to any of the unions case labels.
|
||||
* It sets the current position to zero and causes component_count to return 1.
|
||||
*
|
||||
* @exception TypeMismatch if the union has an explicit default case or if it uses the entire range
|
||||
* of discriminator values for explicit case labels
|
||||
*/
|
||||
void set_to_no_active_member () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Returns true if the union has no active member, that is, the unions value consists solely
|
||||
* of its discriminator because the discriminator has a value that is not listed as an explicit case label.
|
||||
* Calling this operation on a union that has a default case returns false.
|
||||
* Calling this operation on a union that uses the entire range of discriminator values
|
||||
* for explicit case labels returns false.
|
||||
*/
|
||||
boolean has_no_active_member ();
|
||||
|
||||
/**
|
||||
* Returns the TCKind value of the discriminators TypeCode.
|
||||
*/
|
||||
org.omg.CORBA.TCKind discriminator_kind ();
|
||||
|
||||
/**
|
||||
* Returns the TCKind value of the currently active members TypeCode.
|
||||
*
|
||||
* @exception InvalidValue if the union does not have a currently active member
|
||||
*/
|
||||
org.omg.CORBA.TCKind member_kind () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the currently active member. Note that the returned reference remains valid only
|
||||
* for as long as the currently active member does not change. Using the returned reference
|
||||
* beyond the life time of the currently active member raises OBJECT_NOT_EXIST.
|
||||
*
|
||||
* @exception InvalidValue if the union has no active member
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny member () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the name of the currently active member. If the unions TypeCode does not contain
|
||||
* a member name for the currently active member, the operation returns an empty string.
|
||||
*
|
||||
* @exception InvalidValue if the union has no active member
|
||||
*/
|
||||
String member_name () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynUnionOperations
|
||||
26
jdkSrc/jdk8/org/omg/DynamicAny/DynValue.java
Normal file
26
jdkSrc/jdk8/org/omg/DynamicAny/DynValue.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValue.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValue objects support the manipulation of IDL non-boxed value types.
|
||||
* The DynValue interface can represent both null and non-null value types.
|
||||
* For a DynValue representing a non-null value type, the DynValue's components comprise
|
||||
* the public and private members of the value type, including those inherited from concrete base value types,
|
||||
* in the order of definition. A DynValue representing a null value type has no components
|
||||
* and a current position of -1.
|
||||
* <P>Warning: Indiscriminantly changing the contents of private value type members can cause the value type
|
||||
* implementation to break by violating internal constraints. Access to private members is provided to support
|
||||
* such activities as ORB bridging and debugging and should not be used to arbitrarily violate
|
||||
* the encapsulation of the value type.
|
||||
*/
|
||||
public interface DynValue extends DynValueOperations, org.omg.DynamicAny.DynValueCommon, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynValue
|
||||
21
jdkSrc/jdk8/org/omg/DynamicAny/DynValueBox.java
Normal file
21
jdkSrc/jdk8/org/omg/DynamicAny/DynValueBox.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueBox.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValueBox objects support the manipulation of IDL boxed value types.
|
||||
* The DynValueBox interface can represent both null and non-null value types.
|
||||
* For a DynValueBox representing a non-null value type, the DynValueBox has a single component
|
||||
* of the boxed type. A DynValueBox representing a null value type has no components
|
||||
* and a current position of -1.
|
||||
*/
|
||||
public interface DynValueBox extends DynValueBoxOperations, org.omg.DynamicAny.DynValueCommon, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynValueBox
|
||||
53
jdkSrc/jdk8/org/omg/DynamicAny/DynValueBoxOperations.java
Normal file
53
jdkSrc/jdk8/org/omg/DynamicAny/DynValueBoxOperations.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueBoxOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValueBox objects support the manipulation of IDL boxed value types.
|
||||
* The DynValueBox interface can represent both null and non-null value types.
|
||||
* For a DynValueBox representing a non-null value type, the DynValueBox has a single component
|
||||
* of the boxed type. A DynValueBox representing a null value type has no components
|
||||
* and a current position of -1.
|
||||
*/
|
||||
public interface DynValueBoxOperations extends org.omg.DynamicAny.DynValueCommonOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the boxed value as an Any.
|
||||
*
|
||||
* @exception InvalidValue if this object represents a null value box type
|
||||
*/
|
||||
org.omg.CORBA.Any get_boxed_value () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Replaces the boxed value with the specified value.
|
||||
* If the DynBoxedValue represents a null valuetype, it is converted to a non-null value.
|
||||
*
|
||||
* @exception TypeMismatch if this object represents a non-null value box type and the type
|
||||
* of the parameter is not matching the current boxed value type.
|
||||
*/
|
||||
void set_boxed_value (org.omg.CORBA.Any boxed) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
|
||||
/**
|
||||
* Returns the boxed value as a DynAny.
|
||||
*
|
||||
* @exception InvalidValue if this object represents a null value box type
|
||||
*/
|
||||
org.omg.DynamicAny.DynAny get_boxed_value_as_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Replaces the boxed value with the value contained in the parameter.
|
||||
* If the DynBoxedValue represents a null valuetype, it is converted to a non-null value.
|
||||
*
|
||||
* @exception TypeMismatch if this object represents a non-null value box type and the type
|
||||
* of the parameter is not matching the current boxed value type.
|
||||
*/
|
||||
void set_boxed_value_as_dyn_any (org.omg.DynamicAny.DynAny boxed) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
|
||||
} // interface DynValueBoxOperations
|
||||
17
jdkSrc/jdk8/org/omg/DynamicAny/DynValueCommon.java
Normal file
17
jdkSrc/jdk8/org/omg/DynamicAny/DynValueCommon.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueCommon.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValueCommon provides operations supported by both the DynValue and DynValueBox interfaces.
|
||||
*/
|
||||
public interface DynValueCommon extends DynValueCommonOperations, org.omg.DynamicAny.DynAny, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface DynValueCommon
|
||||
34
jdkSrc/jdk8/org/omg/DynamicAny/DynValueCommonOperations.java
Normal file
34
jdkSrc/jdk8/org/omg/DynamicAny/DynValueCommonOperations.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueCommonOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValueCommon provides operations supported by both the DynValue and DynValueBox interfaces.
|
||||
*/
|
||||
public interface DynValueCommonOperations extends org.omg.DynamicAny.DynAnyOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns true if the DynValueCommon represents a null value type.
|
||||
*/
|
||||
boolean is_null ();
|
||||
|
||||
/**
|
||||
* Changes the representation of a DynValueCommon to a null value type.
|
||||
*/
|
||||
void set_to_null ();
|
||||
|
||||
/**
|
||||
* Replaces a null value type with a newly constructed value. Its components are initialized
|
||||
* to default values as in DynAnyFactory.create_dyn_any_from_type_code.
|
||||
* If the DynValueCommon represents a non-null value type, then this operation has no effect.
|
||||
*/
|
||||
void set_to_value ();
|
||||
} // interface DynValueCommonOperations
|
||||
98
jdkSrc/jdk8/org/omg/DynamicAny/DynValueHelper.java
Normal file
98
jdkSrc/jdk8/org/omg/DynamicAny/DynValueHelper.java
Normal file
@@ -0,0 +1,98 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValue objects support the manipulation of IDL non-boxed value types.
|
||||
* The DynValue interface can represent both null and non-null value types.
|
||||
* For a DynValue representing a non-null value type, the DynValue's components comprise
|
||||
* the public and private members of the value type, including those inherited from concrete base value types,
|
||||
* in the order of definition. A DynValue representing a null value type has no components
|
||||
* and a current position of -1.
|
||||
* <P>Warning: Indiscriminantly changing the contents of private value type members can cause the value type
|
||||
* implementation to break by violating internal constraints. Access to private members is provided to support
|
||||
* such activities as ORB bridging and debugging and should not be used to arbitrarily violate
|
||||
* the encapsulation of the value type.
|
||||
*/
|
||||
abstract public class DynValueHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/DynValue:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.DynValue 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.DynamicAny.DynValue 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.DynamicAny.DynValueHelper.id (), "DynValue");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynValue 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.DynamicAny.DynValue value)
|
||||
{
|
||||
throw new org.omg.CORBA.MARSHAL ();
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynValue narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynValue)
|
||||
return (org.omg.DynamicAny.DynValue)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 ();
|
||||
org.omg.DynamicAny._DynValueStub stub = new org.omg.DynamicAny._DynValueStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.DynValue unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.DynamicAny.DynValue)
|
||||
return (org.omg.DynamicAny.DynValue)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.DynamicAny._DynValueStub stub = new org.omg.DynamicAny._DynValueStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
100
jdkSrc/jdk8/org/omg/DynamicAny/DynValueOperations.java
Normal file
100
jdkSrc/jdk8/org/omg/DynamicAny/DynValueOperations.java
Normal file
@@ -0,0 +1,100 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/DynValueOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynValue objects support the manipulation of IDL non-boxed value types.
|
||||
* The DynValue interface can represent both null and non-null value types.
|
||||
* For a DynValue representing a non-null value type, the DynValue's components comprise
|
||||
* the public and private members of the value type, including those inherited from concrete base value types,
|
||||
* in the order of definition. A DynValue representing a null value type has no components
|
||||
* and a current position of -1.
|
||||
* <P>Warning: Indiscriminantly changing the contents of private value type members can cause the value type
|
||||
* implementation to break by violating internal constraints. Access to private members is provided to support
|
||||
* such activities as ORB bridging and debugging and should not be used to arbitrarily violate
|
||||
* the encapsulation of the value type.
|
||||
*/
|
||||
public interface DynValueOperations extends org.omg.DynamicAny.DynValueCommonOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns the name of the member at the current position.
|
||||
* This operation may return an empty string since the TypeCode of the value being
|
||||
* manipulated may not contain the names of members.
|
||||
*
|
||||
* @exception TypeMismatch if the DynValue represents a null value type.
|
||||
* @exception InvalidValue if the current position does not indicate a member
|
||||
*/
|
||||
String current_member_name () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns the TCKind associated with the member at the current position.
|
||||
*
|
||||
* @exception TypeMismatch if the DynValue represents a null value type.
|
||||
* @exception InvalidValue if the current position does not indicate a member
|
||||
*/
|
||||
org.omg.CORBA.TCKind current_member_kind () throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns a sequence of NameValuePairs describing the name and the value of each member
|
||||
* in the value type.
|
||||
* The sequence contains members in the same order as the declaration order of members
|
||||
* as indicated by the DynValue's TypeCode. The current position is not affected.
|
||||
* The member names in the returned sequence will be empty strings if the DynValue's TypeCode
|
||||
* does not contain member names.
|
||||
*
|
||||
* @exception InvalidValue if this object represents a null value type
|
||||
*/
|
||||
org.omg.DynamicAny.NameValuePair[] get_members () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Initializes the value type's members from a sequence of NameValuePairs.
|
||||
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
|
||||
* if an empty sequence is passed, the current position is set to -1.
|
||||
* A null value type can be initialized to a non-null value type using this method.
|
||||
* <P>Members must appear in the NameValuePairs in the order in which they appear in the IDL specification
|
||||
* of the value type as indicated by the DynValue's TypeCode or they must be empty strings.
|
||||
* The operation makes no attempt to assign member values based on member names.
|
||||
*
|
||||
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
|
||||
* corresponding member name in the DynValue's TypeCode and they are not empty strings
|
||||
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
|
||||
* with the number of members as indicated by the DynValue's TypeCode
|
||||
*/
|
||||
void set_members (org.omg.DynamicAny.NameValuePair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Returns a sequence of NameDynAnyPairs describing the name and the value of each member
|
||||
* in the value type.
|
||||
* The sequence contains members in the same order as the declaration order of members
|
||||
* as indicated by the DynValue's TypeCode. The current position is not affected.
|
||||
* The member names in the returned sequence will be empty strings if the DynValue's TypeCode
|
||||
* does not contain member names.
|
||||
*
|
||||
* @exception InvalidValue if this object represents a null value type
|
||||
*/
|
||||
org.omg.DynamicAny.NameDynAnyPair[] get_members_as_dyn_any () throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
|
||||
/**
|
||||
* Initializes the value type's members from a sequence of NameDynAnyPairs.
|
||||
* The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise,
|
||||
* if an empty sequence is passed, the current position is set to -1.
|
||||
* A null value type can be initialized to a non-null value type using this method.
|
||||
* <P>Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification
|
||||
* of the value type as indicated by the DynValue's TypeCode or they must be empty strings.
|
||||
* The operation makes no attempt to assign member values based on member names.
|
||||
*
|
||||
* @exception TypeMismatch if the member names supplied in the passed sequence do not match the
|
||||
* corresponding member name in the DynValue's TypeCode and they are not empty strings
|
||||
* @exception InvalidValue if the passed sequence has a number of elements that disagrees
|
||||
* with the number of members as indicated by the DynValue's TypeCode
|
||||
*/
|
||||
void set_members_as_dyn_any (org.omg.DynamicAny.NameDynAnyPair[] value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue;
|
||||
} // interface DynValueOperations
|
||||
56
jdkSrc/jdk8/org/omg/DynamicAny/FieldNameHelper.java
Normal file
56
jdkSrc/jdk8/org/omg/DynamicAny/FieldNameHelper.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/FieldNameHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class FieldNameHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/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.DynamicAny.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);
|
||||
}
|
||||
|
||||
}
|
||||
34
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPair.java
Normal file
34
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPair.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameDynAnyPair.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NameDynAnyPair implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* The name associated with the DynAny.
|
||||
*/
|
||||
public String id = null;
|
||||
|
||||
/**
|
||||
* The DynAny value associated with the name.
|
||||
*/
|
||||
public org.omg.DynamicAny.DynAny value = null;
|
||||
|
||||
public NameDynAnyPair ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public NameDynAnyPair (String _id, org.omg.DynamicAny.DynAny _value)
|
||||
{
|
||||
id = _id;
|
||||
value = _value;
|
||||
} // ctor
|
||||
|
||||
} // class NameDynAnyPair
|
||||
83
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPairHelper.java
Normal file
83
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPairHelper.java
Normal file
@@ -0,0 +1,83 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameDynAnyPairHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NameDynAnyPairHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/NameDynAnyPair:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.NameDynAnyPair 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.DynamicAny.NameDynAnyPair extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.DynamicAny.FieldNameHelper.id (), "FieldName", _tcOf_members0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"id",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.DynamicAny.DynAnyHelper.type ();
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"value",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.DynamicAny.NameDynAnyPairHelper.id (), "NameDynAnyPair", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.NameDynAnyPair read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.NameDynAnyPair value = new org.omg.DynamicAny.NameDynAnyPair ();
|
||||
value.id = istream.read_string ();
|
||||
value.value = org.omg.DynamicAny.DynAnyHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.NameDynAnyPair value)
|
||||
{
|
||||
ostream.write_string (value.id);
|
||||
org.omg.DynamicAny.DynAnyHelper.write (ostream, value.value);
|
||||
}
|
||||
|
||||
}
|
||||
62
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPairSeqHelper.java
Normal file
62
jdkSrc/jdk8/org/omg/DynamicAny/NameDynAnyPairSeqHelper.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameDynAnyPairSeqHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NameDynAnyPairSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/NameDynAnyPairSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.NameDynAnyPair[] 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.DynamicAny.NameDynAnyPair[] 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.DynamicAny.NameDynAnyPairHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.DynamicAny.NameDynAnyPairSeqHelper.id (), "NameDynAnyPairSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.NameDynAnyPair[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.NameDynAnyPair value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.DynamicAny.NameDynAnyPair[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = org.omg.DynamicAny.NameDynAnyPairHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.NameDynAnyPair[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
org.omg.DynamicAny.NameDynAnyPairHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
34
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePair.java
Normal file
34
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePair.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameValuePair.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* The name associated with the Any.
|
||||
*/
|
||||
public String id = null;
|
||||
|
||||
/**
|
||||
* The Any value associated with the name.
|
||||
*/
|
||||
public org.omg.CORBA.Any value = null;
|
||||
|
||||
public NameValuePair ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public NameValuePair (String _id, org.omg.CORBA.Any _value)
|
||||
{
|
||||
id = _id;
|
||||
value = _value;
|
||||
} // ctor
|
||||
|
||||
} // class NameValuePair
|
||||
83
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePairHelper.java
Normal file
83
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePairHelper.java
Normal file
@@ -0,0 +1,83 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameValuePairHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NameValuePairHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/NameValuePair:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.NameValuePair 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.DynamicAny.NameValuePair extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.DynamicAny.FieldNameHelper.id (), "FieldName", _tcOf_members0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"id",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_any);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"value",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.DynamicAny.NameValuePairHelper.id (), "NameValuePair", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.NameValuePair read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.NameValuePair value = new org.omg.DynamicAny.NameValuePair ();
|
||||
value.id = istream.read_string ();
|
||||
value.value = istream.read_any ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.NameValuePair value)
|
||||
{
|
||||
ostream.write_string (value.id);
|
||||
ostream.write_any (value.value);
|
||||
}
|
||||
|
||||
}
|
||||
62
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePairSeqHelper.java
Normal file
62
jdkSrc/jdk8/org/omg/DynamicAny/NameValuePairSeqHelper.java
Normal file
@@ -0,0 +1,62 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/NameValuePairSeqHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NameValuePairSeqHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/DynamicAny/NameValuePairSeq:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.DynamicAny.NameValuePair[] 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.DynamicAny.NameValuePair[] 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.DynamicAny.NameValuePairHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.DynamicAny.NameValuePairSeqHelper.id (), "NameValuePairSeq", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.DynamicAny.NameValuePair[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.DynamicAny.NameValuePair value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.DynamicAny.NameValuePair[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = org.omg.DynamicAny.NameValuePairHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.DynamicAny.NameValuePair[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
org.omg.DynamicAny.NameValuePairHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
142
jdkSrc/jdk8/org/omg/DynamicAny/_DynAnyFactoryStub.java
Normal file
142
jdkSrc/jdk8/org/omg/DynamicAny/_DynAnyFactoryStub.java
Normal file
@@ -0,0 +1,142 @@
|
||||
package org.omg.DynamicAny;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/DynamicAny/_DynAnyFactoryStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* DynAny objects can be created by invoking operations on the DynAnyFactory object.
|
||||
* Generally there are only two ways to create a DynAny object:
|
||||
* <UL>
|
||||
* <LI>invoking an operation on an existing DynAny object
|
||||
* <LI>invoking an operation on a DynAnyFactory object
|
||||
* </UL>
|
||||
* A constructed DynAny object supports operations that enable the creation of new DynAny
|
||||
* objects encapsulating access to the value of some constituent.
|
||||
* DynAny objects also support the copy operation for creating new DynAny objects.
|
||||
* A reference to the DynAnyFactory object is obtained by calling ORB.resolve_initial_references()
|
||||
* with the identifier parameter set to the string constant "DynAnyFactory".
|
||||
* <P>Dynamic interpretation of an any usually involves creating a DynAny object using create_dyn_any()
|
||||
* as the first step. Depending on the type of the any, the resulting DynAny object reference can be narrowed
|
||||
* to a DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, or DynValue object reference.
|
||||
* <P>Dynamic creation of an any involves creating a DynAny object using create_dyn_any_from_type_code(),
|
||||
* passing the TypeCode associated with the value to be created. The returned reference is narrowed to one of
|
||||
* the complex types, such as DynStruct, if appropriate. Then, the value can be initialized by means of
|
||||
* invoking operations on the resulting object. Finally, the to_any operation can be invoked
|
||||
* to create an any value from the constructed DynAny.
|
||||
*/
|
||||
public class _DynAnyFactoryStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.DynamicAny.DynAnyFactory
|
||||
{
|
||||
final public static java.lang.Class _opsClass = DynAnyFactoryOperations.class;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new DynAny object from an any value.
|
||||
* A copy of the TypeCode associated with the any value is assigned to the resulting DynAny object.
|
||||
* The value associated with the DynAny object is a copy of the value in the original any.
|
||||
* The current position of the created DynAny is set to zero if the passed value has components,
|
||||
* to -1 otherwise
|
||||
*
|
||||
* @exception InconsistentTypeCode if value has a TypeCode with a TCKind of tk_Principal,
|
||||
* tk_native, or tk_abstract_interface
|
||||
*/
|
||||
public org.omg.DynamicAny.DynAny create_dyn_any (org.omg.CORBA.Any value) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode
|
||||
{
|
||||
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("create_dyn_any", _opsClass);
|
||||
DynAnyFactoryOperations $self = (DynAnyFactoryOperations) $so.servant;
|
||||
|
||||
try {
|
||||
return $self.create_dyn_any (value);
|
||||
} finally {
|
||||
_servant_postinvoke ($so);
|
||||
}
|
||||
} // create_dyn_any
|
||||
|
||||
|
||||
/**
|
||||
* Creates a DynAny from a TypeCode. Depending on the TypeCode, the created object may be of type DynAny,
|
||||
* or one of its derived types, such as DynStruct. The returned reference can be narrowed to the derived type.
|
||||
* In all cases, a DynAny constructed from a TypeCode has an initial default value.
|
||||
* The default values of basic types are:
|
||||
* <UL>
|
||||
* <LI>false for boolean
|
||||
* <LI>zero for numeric types
|
||||
* <LI>zero for types octet, char, and wchar
|
||||
* <LI>the empty string for string and wstring
|
||||
* <LI>null for object references
|
||||
* <LI>a type code with a TCKind value of tk_null for type codes
|
||||
* <LI>for any values, an any containing a type code with a TCKind value of tk_null type and no value
|
||||
* </UL>
|
||||
* For complex types, creation of the corresponding DynAny assigns a default value as follows:
|
||||
* <UL>
|
||||
* <LI>For DynSequence it sets the current position to -1 and creates an empty sequence.
|
||||
* <LI>For DynEnum it sets the current position to -1 and sets the value of the enumerator
|
||||
* to the first enumerator value indicated by the TypeCode.
|
||||
* <LI>For DynFixed it sets the current position to -1 and sets the value zero.
|
||||
* <LI>For DynStruct it sets the current position to -1 for empty exceptions
|
||||
* and to zero for all other TypeCodes. The members (if any) are (recursively) initialized
|
||||
* to their default values.
|
||||
* <LI>For DynArray sets the current position to zero and (recursively) initializes elements
|
||||
* to their default value.
|
||||
* <LI>For DynUnion sets the current position to zero. The discriminator value is set
|
||||
* to a value consistent with the first named member of the union. That member is activated and (recursively)
|
||||
* initialized to its default value.
|
||||
* <LI>For DynValue and DynValueBox it initializes to a null value.
|
||||
* </UL>
|
||||
*/
|
||||
public org.omg.DynamicAny.DynAny create_dyn_any_from_type_code (org.omg.CORBA.TypeCode type) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode
|
||||
{
|
||||
org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("create_dyn_any_from_type_code", _opsClass);
|
||||
DynAnyFactoryOperations $self = (DynAnyFactoryOperations) $so.servant;
|
||||
|
||||
try {
|
||||
return $self.create_dyn_any_from_type_code (type);
|
||||
} finally {
|
||||
_servant_postinvoke ($so);
|
||||
}
|
||||
} // create_dyn_any_from_type_code
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:omg.org/DynamicAny/DynAnyFactory:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.DynamicAny._DynAnyFactoryStub");
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
org.omg.CORBA.Object obj = orb.string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
String str = orb.object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
} // class _DynAnyFactoryStub
|
||||
1159
jdkSrc/jdk8/org/omg/DynamicAny/_DynAnyStub.java
Normal file
1159
jdkSrc/jdk8/org/omg/DynamicAny/_DynAnyStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1168
jdkSrc/jdk8/org/omg/DynamicAny/_DynArrayStub.java
Normal file
1168
jdkSrc/jdk8/org/omg/DynamicAny/_DynArrayStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1169
jdkSrc/jdk8/org/omg/DynamicAny/_DynEnumStub.java
Normal file
1169
jdkSrc/jdk8/org/omg/DynamicAny/_DynEnumStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1139
jdkSrc/jdk8/org/omg/DynamicAny/_DynFixedStub.java
Normal file
1139
jdkSrc/jdk8/org/omg/DynamicAny/_DynFixedStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1222
jdkSrc/jdk8/org/omg/DynamicAny/_DynSequenceStub.java
Normal file
1222
jdkSrc/jdk8/org/omg/DynamicAny/_DynSequenceStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1231
jdkSrc/jdk8/org/omg/DynamicAny/_DynStructStub.java
Normal file
1231
jdkSrc/jdk8/org/omg/DynamicAny/_DynStructStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1279
jdkSrc/jdk8/org/omg/DynamicAny/_DynUnionStub.java
Normal file
1279
jdkSrc/jdk8/org/omg/DynamicAny/_DynUnionStub.java
Normal file
File diff suppressed because it is too large
Load Diff
1296
jdkSrc/jdk8/org/omg/DynamicAny/_DynValueStub.java
Normal file
1296
jdkSrc/jdk8/org/omg/DynamicAny/_DynValueStub.java
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user