com.esri.arcgis.geodatabase
Class EnumFeatureGeometry

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.EnumFeatureGeometry
All Implemented Interfaces:
IClone, IEnumGeometry, IEnumGeometryBind, ISupportErrorInfo, java.io.Serializable

public class EnumFeatureGeometry
extends java.lang.Object
implements IEnumGeometry, IEnumGeometryBind, IClone, ISupportErrorInfo

ESRI enumerator for geometries of a feature class or selection set.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
EnumFeatureGeometry()
          Constructs a EnumFeatureGeometry using ArcGIS Engine.
EnumFeatureGeometry(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void assign(IClone src)
          Assigns the properties of src to the receiver.
 void bindGeometrySource(IQueryFilter outputFilter, java.lang.Object collectionSource)
          Bind the source of the geometry to the enumeration.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IClone esri_clone()
          Clones the receiver and assigns the result to *clone.
 IClone getAsIClone()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IEnumGeometry getAsIEnumGeometry()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IEnumGeometryBind getAsIEnumGeometryBind()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 int getCount()
          The number of geometries in the enumeration.
 void getGeometrySource(java.lang.Object[] geometrySource)
          The geometry source - either a feature class or a selection set.
 void getOutputFilter(IQueryFilter outputFilter)
          The query filter that was used to bind the geometry source.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 boolean isEqual(IClone other)
          Returns TRUE when the receiver and other have the same properties.
 boolean isIdentical(IClone other)
          Returns TRUE when the receiver and other are the same object.
 IGeometry next()
          Returns the next geometry in the enumeration.
 void reset()
          Starts the enumeration at the beginning.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumFeatureGeometry

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

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

EnumFeatureGeometry

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

Construct a EnumFeatureGeometry using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to EnumFeatureGeometry.
EnumFeatureGeometry theEnumFeatureGeometry = (EnumFeatureGeometry) obj;

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()

getAsIEnumGeometry

public IEnumGeometry getAsIEnumGeometry()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIEnumGeometryBind

public IEnumGeometryBind getAsIEnumGeometryBind()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIClone

public IClone getAsIClone()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


next

public IGeometry next()
               throws java.io.IOException,
                      AutomationException
Description copied from interface: IEnumGeometry
Returns the next geometry in the enumeration.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the Next Geometry part from the current enumeration location.

Specified by:
next in interface IEnumGeometry
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
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
Description copied from interface: IEnumGeometry
Starts the enumeration at the beginning.

Supported Platforms

Windows, Solaris, Linux

Description

Resets the current enumeration location to the null pointer at the beginning of the enumeration such that the Next Geometry is the first Geometry part in the enumeration.

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

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IEnumGeometry
The number of geometries in the enumeration.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the number of distinct geometry parts in the enumeration.  This count is the same as the count returned by GeometryCount in a GeometryCollection.

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

bindGeometrySource

public void bindGeometrySource(IQueryFilter outputFilter,
                               java.lang.Object collectionSource)
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IEnumGeometryBind
Bind the source of the geometry to the enumeration.

Supported Platforms

Windows, Solaris, Linux

Specified by:
bindGeometrySource in interface IEnumGeometryBind
Parameters:
outputFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
collectionSource - A reference to another Object (IUnknown) (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getGeometrySource

public void getGeometrySource(java.lang.Object[] geometrySource)
                       throws java.io.IOException,
                              AutomationException
Description copied from interface: IEnumGeometryBind
The geometry source - either a feature class or a selection set.

Supported Platforms

Windows, Solaris, Linux

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

getOutputFilter

public void getOutputFilter(IQueryFilter outputFilter)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IEnumGeometryBind
The query filter that was used to bind the geometry source.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getOutputFilter in interface IEnumGeometryBind
Parameters:
outputFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

esri_clone

public IClone esri_clone()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IClone
Clones the receiver and assigns the result to *clone.

Specified by:
esri_clone in interface IClone
Returns:
A reference to a com.esri.arcgis.system.IClone
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

assign

public void assign(IClone src)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IClone
Assigns the properties of src to the receiver.

Supported Platforms

Windows, Solaris, Linux

Description

Use Assign method to assign the properties of source object to receiver object. Both objects need to have the same CLSIDs. Both source and receiver objects need to be instantiated.

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

isEqual

public boolean isEqual(IClone other)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IClone
Returns TRUE when the receiver and other have the same properties.

Specified by:
isEqual in interface IClone
Parameters:
other - A reference to a com.esri.arcgis.system.IClone (in)
Returns:
The equal
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isIdentical

public boolean isIdentical(IClone other)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IClone
Returns TRUE when the receiver and other are the same object.

Specified by:
isIdentical in interface IClone
Parameters:
other - A reference to a com.esri.arcgis.system.IClone (in)
Returns:
The identical
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.