com.esri.arcgis.datasourcesfile
Class SMStopsCollection

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMStopsCollection
All Implemented Interfaces:
ISMStopsCollection, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMStopsCollection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMStopsCollection

The collection of route stops.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
SMStopsCollection()
          Constructs a SMStopsCollection using ArcGIS Engine.
SMStopsCollection(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SMStopsCollection theSMStopsCollection = (SMStopsCollection) obj;
 
Method Summary
 void add(ISMStop pItem)
          Adds a stop to the end of collection.
 void clear()
          Removes all stops from the collection.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The number of stops in the collection.
 ISMStop getItem(int position)
          The stop at the specified position in the collection.
 int hashCode()
          the hashcode for this object
 void insert(int position, ISMStop pItem)
          Inserts a stop at the specified position in the collection.
 void remove(int position)
          Removes the stop at the specified position in the collection.
 
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

SMStopsCollection

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

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

SMStopsCollection

public SMStopsCollection(Object obj)
                  throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SMStopsCollection theSMStopsCollection = (SMStopsCollection) obj;

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

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The number of stops in the collection.

Description

Returns the number of stops in a collection.

Product Availability

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

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

getItem

public ISMStop getItem(int position)
                throws IOException,
                       AutomationException
The stop at the specified position in the collection.

Product Availability

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

Specified by:
getItem in interface ISMStopsCollection
Parameters:
position - The position (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMStop
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(ISMStop pItem)
         throws IOException,
                AutomationException
Adds a stop to the end of collection.

Description

Add a stop to the end of a collection.

Product Availability

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

Specified by:
add in interface ISMStopsCollection
Parameters:
pItem - A reference to a com.esri.arcgis.datasourcesfile.ISMStop (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int position,
                   ISMStop pItem)
            throws IOException,
                   AutomationException
Inserts a stop at the specified position in the collection.

Description

Inserts a stop at a specifed position within a collection.

Product Availability

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

Specified by:
insert in interface ISMStopsCollection
Parameters:
position - The position (in)
pItem - A reference to a com.esri.arcgis.datasourcesfile.ISMStop (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int position)
            throws IOException,
                   AutomationException
Removes the stop at the specified position in the collection.

Description

Removes a stop at a specifed position within a collection.

Product Availability

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

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

clear

public void clear()
           throws IOException,
                  AutomationException
Removes all stops from the collection.

Description

Removes all stops from the collection.

Product Availability

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

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