com.jniwrapper
Interface ArrayParameter

All Known Implementing Classes:
ComplexArray, PrimitiveArray

public interface ArrayParameter

Common interface for all types representing arrays


Method Summary
 void fromParameterArray(Parameter[] params)
          Sets array content to the given values
 Parameter getElement(int i)
          Returns array item specified by an index
 int getElementCount()
          Returns items count
 void setElement(int i, Parameter elem)
          Replaces array item by specified object
 void setElementCount(int elementCount)
          Resizes this array to a given size
 Parameter[] toParameterArray()
          Returns items as Java array
 

Method Detail

getElement

public Parameter getElement(int i)
Returns array item specified by an index

Parameters:
i - index of requested array item

setElement

public void setElement(int i,
                       Parameter elem)
Replaces array item by specified object

Parameters:
i - index of an item to be replaced
elem - object to be set as array item

getElementCount

public int getElementCount()
Returns items count


setElementCount

public void setElementCount(int elementCount)
Resizes this array to a given size


toParameterArray

public Parameter[] toParameterArray()
Returns items as Java array


fromParameterArray

public void fromParameterArray(Parameter[] params)
Sets array content to the given values