|
IDL Connectivity Bridges: IDL Java Object API |
|
public class JIDLArray implementsjava.io.Serializablejava.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 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
|
|
java.lang.Object |
|
java.lang.String |
getClassName() Get the classname of the wrapped array. |
java.lang.Object |
|
void |
|
void |
|
java.lang.String |
|
|
Inherited Member Summary
|
|---|
|
Methods inherited from class
Object
|
|
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 JIDLObjectI.)
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 JIDLObjectI.
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 JIDLObjectI.
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 JIDLObjectI.)
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 JIDLObjectI.)