public class JIDLArray implements java.io.Serializable
java.lang.Object
|
+--com.idl.javaidl.JIDLArray
java.io.Serializable
The JIDLArray class wraps a Java array as an object usable by the Java-IDL Export bridge.
Wraps arrays of type boolean, byte, char, short, int, long, float, double, String, and JIDLObject-I.
When retrieving the object, the calling code must cast the Object wrapped by JIDLArray to the proper * array type. For example:
int[] my-Native-Array = ...;
// Create a wrapped array so it may be used in the bridge
JIDLArray arr = new JIDLArray(my-Native-Array)
// ... do something in the bridge to modify the array ...
// Now cast the resultant array to the expected type
int[] new-Native = (int[])arr.array-Value();
Member Summary |
|
Constructors |
|
|
JIDLArray(java.lang.Object arr) Construct a JIDLArray from a native array |
Methods |
|
java.lang.Object |
Get the native array that is wrapped by this object |
java.lang.String |
Get the classname of the wrapped array. |
java.lang.Object |
Get the native array that is wrapped by this object |
void |
Set the native array that is wrapped by this object |
void |
setValue(java.lang.Object arr) Set the native array that is wrapped by this object |
java.lang.String |
Inherited Member Summary |
Methods inherited from class Object |
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(long, int), wait(long, int), wait(long, int) |
public JIDLArray(java.lang.Object arr)
Construct a JIDLArray from a native array
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObject-I.)
public java.lang.Object arrayValue()
Get the native array that is wrapped by this object
the native array to wrap for use in the export bridge returned as an object. The array will be of type boolean, byte, char, short, int, long, float, double, String, or JIDLObject-I.
public java.lang.String getClassName()
Get the classname of the wrapped array.
The classname of the wrapped array.
public java.lang.Object getValue()
Get the native array that is wrapped by this object
the native array to wrap for use in the export bridge returned as an object. The array will be of type boolean, byte, char, short, int, long, float, double, String, or JIDLObject-I.
public void setValue(com.idl.javaidl.JIDLArray arr)
Set the native array that is wrapped by this object
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObject-I.)
public void setValue(java.lang.Object arr)
Set the native array that is wrapped by this object
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObject-I.)
public java.lang.String toString()
toString in class Object