com.esri.arcgis.system
Class IStringArrayProxy

java.lang.Object
  extended bycom.esri.arcgis.interop.Dispatch
      extended bycom.esri.arcgis.system.IStringArrayProxy
All Implemented Interfaces:
java.io.Externalizable, IStringArray, java.io.Serializable

public class IStringArrayProxy
extends Dispatch
implements IStringArray, java.io.Serializable

Provides access to members that control string arrays.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF
 
Constructor Summary
  IStringArrayProxy()
          For internal use only
  IStringArrayProxy(java.lang.Object obj)
           
protected IStringArrayProxy(java.lang.Object obj, java.lang.String iid)
           
  IStringArrayProxy(java.lang.String CLSID, java.lang.String host, AuthInfo authInfo)
           
protected IStringArrayProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, AuthInfo authInfo)
           
 
Method Summary
 void add(java.lang.String element)
          Add an element.
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
          Adds a Java object to be a listener for a specific kind of event generated by the COM object.
 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 removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Removes a Java object as a listener to events generated by a COM object.
 void setElement(int index, java.lang.String element)
          An element in the array.
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, hashCode, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, readExternal, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Constructor Detail

IStringArrayProxy

public IStringArrayProxy(java.lang.String CLSID,
                         java.lang.String host,
                         AuthInfo authInfo)
                  throws java.net.UnknownHostException,
                         java.io.IOException

IStringArrayProxy

public IStringArrayProxy()
For internal use only


IStringArrayProxy

public IStringArrayProxy(java.lang.Object obj)
                  throws java.io.IOException

IStringArrayProxy

protected IStringArrayProxy(java.lang.Object obj,
                            java.lang.String iid)
                     throws java.io.IOException

IStringArrayProxy

protected IStringArrayProxy(java.lang.String CLSID,
                            java.lang.String iid,
                            java.lang.String host,
                            AuthInfo authInfo)
                     throws java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Description copied from class: Dispatch
Adds a Java object to be a listener for a specific kind of event generated by the COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
addListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object to be informed of the events
theSource - the proxy class that represents the COM class that is the source of the events
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Description copied from class: Dispatch
Removes a Java object as a listener to events generated by a COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
removeListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object that no longer wishes to be informed of the events
Throws:
java.io.IOException

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IStringArray
The element count.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the number of elements in the array.

Specified by:
getCount in interface IStringArray
Returns:
The count
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getElement

public java.lang.String getElement(int index)
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IStringArray
An element in the array.

Supported Platforms

Windows, Solaris, Linux

Description

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.

Specified by:
getElement in interface IStringArray
Parameters:
index - The index (in)
Returns:
The element
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElement

public void setElement(int index,
                       java.lang.String element)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IStringArray
An element in the array.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setElement in interface IStringArray
Parameters:
index - The index (in)
element - The element (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

remove

public void remove(int index)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IStringArray
Removes element at the specified position.

Supported Platforms

Windows, Solaris, Linux

Description

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.

Specified by:
remove in interface IStringArray
Parameters:
index - The index (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

public void removeAll()
               throws java.io.IOException,
                      AutomationException
Description copied from interface: IStringArray
Removes all elements.

Supported Platforms

Windows, Solaris, Linux

Description

Removes all of the elements from the array.

Specified by:
removeAll in interface IStringArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(java.lang.String element)
         throws java.io.IOException,
                AutomationException
Description copied from interface: IStringArray
Add an element.

Supported Platforms

Windows, Solaris, Linux

Description

Adds the element to the end of the array.

Specified by:
add in interface IStringArray
Parameters:
element - The element (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

insert

public void insert(int index,
                   java.lang.String element)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IStringArray
Add an element at the specified posiiton.

Supported Platforms

Windows, Solaris, Linux

Description

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.

Specified by:
insert in interface IStringArray
Parameters:
index - The index (in)
element - The element (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.