com.esri.arcgis.geoprocessing
Class GpObjectArray

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.GpObjectArray
All Implemented Interfaces:
IGpObjectArray, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class GpObjectArray
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGpObjectArray

COM Class 'GpObjectArray'. Generated 3/19/2015 1:20:44 PM from 'C:\ArcGIS\COM\esriGeoprocessing.olb'

Description 'Geoprocessing Object Array object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geoprocessing.IGpObjectArray
DISPID_1_GET_NAME, DISPID_10_NAME, DISPID_2_NAME, DISPID_3_NAME, DISPID_4_NAME, DISPID_5_NAME, DISPID_6_NAME, DISPID_7_NAME, DISPID_8_NAME, DISPID_9_NAME, IID, IID02876181_9a06_4ef1_943a_15d337c2c90e, xxDummy
 
Constructor Summary
GpObjectArray()
          Constructs a GpObjectArray using ArcGIS Engine.
GpObjectArray(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GpObjectArray theGpObjectArray = (GpObjectArray) obj;
 
Method Summary
 void add(java.lang.Object pObject)
          Adds an object to the array.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void esri_clone(IGpObjectArray pSrcObj)
          Assigns the properties of source array to this object.
static java.lang.String getClsid()
          getClsid.
 int getCount()
          The element count of the array.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.Object getObject(int element)
          Returns the object at the given index in the array.
 int hashCode()
          the hashcode for this object
 void insert(int element, java.lang.Object pObject)
          Adds an object to the array at the specified index.
 java.lang.Object next()
          Returns the next object at the current index in the array.
 void release()
          Release a GpObjectArray.
 void remove(int element)
          Removes the object at the specified index from the array.
 void removeAll()
          Removes all objects from the array.
 void replace(int element, java.lang.Object pObject)
          Replaces the object at the specified index in the array.
 void reset()
          Sets the current enumeration index (used by the Next method) back to the first element in the array.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpObjectArray

public GpObjectArray()
              throws java.io.IOException,
                     java.net.UnknownHostException
Constructs a GpObjectArray using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

GpObjectArray

public GpObjectArray(java.lang.Object obj)
              throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GpObjectArray theGpObjectArray = (GpObjectArray) obj;

Construct a GpObjectArray using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GpObjectArray.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a GpObjectArray.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The element count of the array.

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

add

public void add(java.lang.Object pObject)
         throws java.io.IOException,
                AutomationException
Adds an object to the array.

Specified by:
add in interface IGpObjectArray
Parameters:
pObject - A reference to another Automation Object (IDispatch) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getObject

public java.lang.Object getObject(int element)
                           throws java.io.IOException,
                                  AutomationException
Returns the object at the given index in the array.

Specified by:
getObject in interface IGpObjectArray
Parameters:
element - The element (in)
Returns:
A reference to another Automation Object (IDispatch)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws java.io.IOException,
                  AutomationException
Sets the current enumeration index (used by the Next method) back to the first element in the array.

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

next

public java.lang.Object next()
                      throws java.io.IOException,
                             AutomationException
Returns the next object at the current index in the array.

Specified by:
next in interface IGpObjectArray
Returns:
A reference to another Automation Object (IDispatch)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int element)
            throws java.io.IOException,
                   AutomationException
Removes the object at the specified index from the array.

Specified by:
remove in interface IGpObjectArray
Parameters:
element - The element (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
Removes all objects from the array.

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

insert

public void insert(int element,
                   java.lang.Object pObject)
            throws java.io.IOException,
                   AutomationException
Adds an object to the array at the specified index.

Specified by:
insert in interface IGpObjectArray
Parameters:
element - The element (in)
pObject - A reference to another Automation Object (IDispatch) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

replace

public void replace(int element,
                    java.lang.Object pObject)
             throws java.io.IOException,
                    AutomationException
Replaces the object at the specified index in the array.

Specified by:
replace in interface IGpObjectArray
Parameters:
element - The element (in)
pObject - A reference to another Automation Object (IDispatch) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_clone

public void esri_clone(IGpObjectArray pSrcObj)
                throws java.io.IOException,
                       AutomationException
Assigns the properties of source array to this object.

Specified by:
esri_clone in interface IGpObjectArray
Parameters:
pSrcObj - A reference to a com.esri.arcgis.geoprocessing.IGpObjectArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.