com.esri.arcgis.system
Class Array

java.lang.Object
  extended by com.esri.arcgis.system.Array
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IArray, IArray2, IXMLSerialize, java.io.Serializable

public class Array
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IArray, IArray2, IXMLSerialize

COM Class 'Array'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Description 'Generic array of objects.' 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.system.IArray
IID, IIDaafb54d9_aaf8_11d2_87f3_0000f8751720, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IArray2
IID, IIDc4b2bfc5_eb46_4909_801c_c32a6ede120d, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IXMLSerialize
IID, IIDc8545045_6615_48e3_af27_52a0e5fc35e2, xxDummy
 
Constructor Summary
Array()
          Constructs a Array using ArcGIS Engine.
Array(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
Array theArray = (Array) obj;
 
Method Summary
 void add(java.lang.Object unk)
          Adds an object to the array.
 void deserialize(IXMLSerializeData data)
          Deserializes an object from XML.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getCount()
          The element count of the array.
 java.lang.Object getElement(int index)
          Searches for the object in the array.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void insert(int index, java.lang.Object unk)
          Adds an object to the array at the specified index.
 void release()
          Release a Array.
 void remove(int index)
          Removes an object from the array.
 void removeAll()
          Removes all objects from the array.
 void replace(int index, java.lang.Object unk)
          Replaces an object in the array.
 void serialize(IXMLSerializeData data)
          Serializes an object to XML.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Array

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

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

Array

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

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

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 Array.

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 IArray
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

public java.lang.Object getElement(int index)
                            throws java.io.IOException,
                                   AutomationException
Searches for the object in the array.

Specified by:
getElement in interface IArray
Parameters:
index - The index (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

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

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

insert

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

Specified by:
insert in interface IArray
Parameters:
index - The index (in)
unk - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

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

Specified by:
remove in interface IArray
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
Removes all objects from the array.

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

replace

public void replace(int index,
                    java.lang.Object unk)
             throws java.io.IOException,
                    AutomationException
Replaces an object in the array.

Specified by:
replace in interface IArray2
Parameters:
index - The index (in)
unk - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

serialize

public void serialize(IXMLSerializeData data)
               throws java.io.IOException,
                      AutomationException
Serializes an object to XML.

Specified by:
serialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deserialize

public void deserialize(IXMLSerializeData data)
                 throws java.io.IOException,
                        AutomationException
Deserializes an object from XML.

Specified by:
deserialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.