Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


JIDLArray

JIDLArray

Declaration


public class JIDLArray implements java.io.Serializable
 
java.lang.Object
|
+--com.idl.javaidl.JIDLArray

All Implemented Interfaces:


java.io.Serializable

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

java.lang.Object
arrayValue()

Get the native array that is wrapped by this object

java.lang.String
getClassName()

Get the classname of the wrapped array.

java.lang.Object
getValue()

Get the native array that is wrapped by this object

void
setValue(JIDLArray arr)

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
toString()

Inherited Member Summary

Methods inherited from class Object

equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(long, int), wait(long, int), wait(long, int)

Constructors


JIDLArray(Object)

public JIDLArray(java.lang.Object arr)

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()

public java.lang.Object 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()

public java.lang.String getClassName()

Get the classname of the wrapped array.

Returns:

The classname of the wrapped array.

getValue()

public java.lang.Object 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)

public void setValue(java.lang.Object 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.)

toString()

public java.lang.String toString()

Overrides:

toString in class Object



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us