|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control a simple array of objects.
An Array object is used to hold an indexed collection of generic objects. The Array uses a zero-based index.
When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.
| Method Summary | |
void |
add(java.lang.Object unk)
Adds an object to the array. |
int |
getCount()
The element count of the array. |
java.lang.Object |
getElement(int index)
Searches for the object in the array. |
void |
insert(int index,
java.lang.Object unk)
Adds an object to the array at the specified index. |
void |
remove(int index)
Removes an object from the array. |
void |
removeAll()
Removes all objects from the array. |
| Method Detail |
public int getCount()
throws java.io.IOException,
AutomationException
Returns the number of elements in the array.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getElement(int index)
throws java.io.IOException,
AutomationException
Returns the element at the specified index in the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.
index - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void add(java.lang.Object unk)
throws java.io.IOException,
AutomationException
Adds the element to the end of the array.
When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.
unk - A reference to another Object (IUnknown) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insert(int index,
java.lang.Object unk)
throws java.io.IOException,
AutomationException
Adds the element to the array at the specified index. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.
index - The index (in)unk - A reference to another Object (IUnknown) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void remove(int index)
throws java.io.IOException,
AutomationException
Removes the element at the specified index from the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.
index - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAll()
throws java.io.IOException,
AutomationException
Removes all of the elements from the array.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||