JIDLArray
Declaration
public class JIDLArray implementsjava.io.Serializablejava.lang.Object| +--com.idl.javaidl.JIDLArray
All Implemented Interfaces:
Description
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 JIDLObjectI.
When retrieving the object, the calling code must cast the Object wrapped by JIDLArray to the proper * array type. For example:
int[] myNativeArray = ...; // Create a wrapped array so it may be used in the bridge JIDLArray arr = new JIDLArray(myNativeArray) // ... do something in the bridge to modify the array ... // Now cast the resultant array to the expected type int[] newNative = (int[])arr.arrayValue();
|
Member Summary
|
|
|---|---|
| Constructors |
|
JIDLArray(java.lang.Object arr) Construct a JIDLArray from a native array |
|
| Methods |
|
|
Get the native array that is wrapped by this object |
|
getClassName() Get the classname of the wrapped array. |
|
|
Get the native array that is wrapped by this object |
|
|
Set the native array that is wrapped by this object |
|
|
Set the native array that is wrapped by this object |
|
Constructors
JIDLArray(Object)
Construct a JIDLArray from a native array
Parameters:
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 JIDLObjectI.)
Methods
arrayValue()
Get the native array that is wrapped by this object
Returns:
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 JIDLObjectI.
getClassName()
Get the classname of the wrapped array.
Returns:
The classname of the wrapped array.
getValue()
Get the native array that is wrapped by this object
Returns:
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 JIDLObjectI.
setValue(JIDLArray)
public void setValue(com.idl.javaidl.JIDLArray arr)
Set the native array that is wrapped by this object
Parameters:
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 JIDLObjectI.)
setValue(Object)
Set the native array that is wrapped by this object
Parameters:
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 JIDLObjectI.)
toString()
Overrides:
toString in class Object