com.esri.arcgis.geometry
Class RelationResult

java.lang.Object
  extended by com.esri.arcgis.geometry.RelationResult
All Implemented Interfaces:
IRelationResult, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class RelationResult
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IRelationResult

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

Description 'The indexes of geometrybag elements that are in a specified relation.' 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.geometry.IRelationResult
IID, IID3ff13d39_ea3b_42cb_98f6_0f73a1c89b89, xxDummy
 
Constructor Summary
RelationResult()
          Constructs a RelationResult using ArcGIS Engine.
RelationResult(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RelationResult theRelationResult = (RelationResult) obj;
 
Method Summary
 void add(IRelationResult pRelations)
          Add elements of other Relation to the end of this Relations, and the set is re-sorted.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void flipRelations()
          Flips the left and right indexes of all the elements of the relation.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 void getRelationElement(int i, int[] left, int[] right)
          The ith element of the relation.
 int getRelationElementCount()
          The number of pairs of geometries in the relation.
 int hashCode()
          the hashcode for this object
 void intersect(IRelationResult pRelations)
          Construct the set with only those elements that exist in both relation sets.
 void release()
          Release a RelationResult.
 void setRelationElement(int i, int left, int right)
          The ith element of the relation.
 void setRelationElements(int cPairs, esriRelationPair pairs)
          Sets RelationResult with an array of relations.
 void sortLeft()
          Sort the set according to the left index.
 void sortRight()
          Sort the set according to the right index.
 void subtract(IRelationResult pRelations)
          Finds elements existing in another relation set and delete them from this set.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationResult

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

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

RelationResult

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

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

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

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

getRelationElementCount

public int getRelationElementCount()
                            throws java.io.IOException,
                                   AutomationException
The number of pairs of geometries in the relation.

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

getRelationElement

public void getRelationElement(int i,
                               int[] left,
                               int[] right)
                        throws java.io.IOException,
                               AutomationException
The ith element of the relation. The indexes refer to elements of the left and right operand geometry bags.

Specified by:
getRelationElement in interface IRelationResult
Parameters:
i - The i (in)
left - The left (out: use single element array)
right - The right (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRelationElement

public void setRelationElement(int i,
                               int left,
                               int right)
                        throws java.io.IOException,
                               AutomationException
The ith element of the relation. The indexes refer to elements of the left and right operand geometry bags.

Specified by:
setRelationElement in interface IRelationResult
Parameters:
i - The i (in)
left - The left (in)
right - The right (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRelationElements

public void setRelationElements(int cPairs,
                                esriRelationPair pairs)
                         throws java.io.IOException,
                                AutomationException
Sets RelationResult with an array of relations.

Specified by:
setRelationElements in interface IRelationResult
Parameters:
cPairs - The cPairs (in)
pairs - A Structure: com.esri.arcgis.geometry.esriRelationPair (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

sortRight

public void sortRight()
               throws java.io.IOException,
                      AutomationException
Sort the set according to the right index.

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

sortLeft

public void sortLeft()
              throws java.io.IOException,
                     AutomationException
Sort the set according to the left index.

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

flipRelations

public void flipRelations()
                   throws java.io.IOException,
                          AutomationException
Flips the left and right indexes of all the elements of the relation.

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

subtract

public void subtract(IRelationResult pRelations)
              throws java.io.IOException,
                     AutomationException
Finds elements existing in another relation set and delete them from this set.

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

intersect

public void intersect(IRelationResult pRelations)
               throws java.io.IOException,
                      AutomationException
Construct the set with only those elements that exist in both relation sets.

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

add

public void add(IRelationResult pRelations)
         throws java.io.IOException,
                AutomationException
Add elements of other Relation to the end of this Relations, and the set is re-sorted.

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