|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control string arrays.
The IStringArray interface provides methods and properties for inserting, removing and accessing elements in a StrArray via a zero-based index.
| Method Summary | |
void |
add(java.lang.String element)
Add an element. |
int |
getCount()
The element count. |
java.lang.String |
getElement(int index)
An element in the array. |
void |
insert(int index,
java.lang.String element)
Add an element at the specified posiiton. |
void |
remove(int index)
Removes element at the specified position. |
void |
removeAll()
Removes all elements. |
void |
setElement(int index,
java.lang.String element)
An element in 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.String getElement(int index)
throws java.io.IOException,
AutomationException
Returns or sets 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 setElement(int index,
java.lang.String element)
throws java.io.IOException,
AutomationException
index - The index (in)element - The element (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.
public void add(java.lang.String element)
throws java.io.IOException,
AutomationException
Adds the element to the end of the array.
element - The element (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insert(int index,
java.lang.String element)
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)element - The element (in)
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 | |||||||||