com.esri.arcgis.geometry
Class RelationResultArray

java.lang.Object
  extended by com.esri.arcgis.geometry.RelationResultArray
All Implemented Interfaces:
IRelationResultArray, com.esri.arcgis.interop.RemoteObjRef, IXMLSerialize, Serializable

public class RelationResultArray
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLSerialize, IRelationResultArray

Product Availability

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

See Also:
Serialized Form

Constructor Summary
RelationResultArray()
          Constructs a RelationResultArray using ArcGIS Engine.
RelationResultArray(Object obj)
          Construct a RelationResultArray using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(esriRelationPair r)
          Adds a relation result.
 void deserialize(IXMLSerializeData data)
          Deserializes an object from XML.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The geometry count.
 esriRelationPair getElement(int index)
          Returns the relation pair at the specified position.
 int hashCode()
          the hashcode for this object
 void insert(int index, esriRelationPair r)
          Adds a relation pair at the specified position.
 void remove(int index)
          Removes the relation result at the specified position.
 void removeAll()
          Removes all relation pairs.
 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
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RelationResultArray

public RelationResultArray()
                    throws IOException,
                           UnknownHostException
Constructs a RelationResultArray using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RelationResultArray

public RelationResultArray(Object obj)
                    throws IOException
Construct a RelationResultArray using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RelationResultArray.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems RelationResultArray theRelationResultArray = (RelationResultArray) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

serialize

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

deserialize

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The geometry count.

Product Availability

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

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

getElement

public esriRelationPair getElement(int index)
                            throws IOException,
                                   AutomationException
Returns the relation pair at the specified position.

Product Availability

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

Specified by:
getElement in interface IRelationResultArray
Parameters:
index - The index (in)
Returns:
A Structure: com.esri.arcgis.geometry.esriRelationPair
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes the relation result at the specified position.

Product Availability

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

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

removeAll

public void removeAll()
               throws IOException,
                      AutomationException
Removes all relation pairs.

Product Availability

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

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

add

public void add(esriRelationPair r)
         throws IOException,
                AutomationException
Adds a relation result.

Product Availability

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

Specified by:
add in interface IRelationResultArray
Parameters:
r - A Structure: com.esri.arcgis.geometry.esriRelationPair (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int index,
                   esriRelationPair r)
            throws IOException,
                   AutomationException
Adds a relation pair at the specified position.

Product Availability

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

Specified by:
insert in interface IRelationResultArray
Parameters:
index - The index (in)
r - A Structure: com.esri.arcgis.geometry.esriRelationPair (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.