com.esri.arcgis.datasourcesfile
Class SMDirItem

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMDirItem
All Implemented Interfaces:
ISMDirItem, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class SMDirItem
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMDirItem

COM Class 'SMDirItem'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesFile.olb'

Description 'Deprecated as of 10.1. A description and geography of one item of driving directions.' 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.datasourcesfile.ISMDirItem
DISPID_1_GET_NAME, DISPID_10_GET_NAME, DISPID_11_GET_NAME, DISPID_2_GET_NAME, DISPID_3_GET_NAME, DISPID_4_GET_NAME, DISPID_5_GET_NAME, DISPID_6_GET_NAME, DISPID_7_GET_NAME, DISPID_8_GET_NAME, DISPID_9_GET_NAME, IID, IIDf8b6601a_5850_11d7_b321_008048db11de, xxDummy
 
Constructor Summary
SMDirItem(java.lang.Object obj)
          Construct a SMDirItem using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getAzimuth()
          The azimuth of the direction item.
 ISMRouterEnvelope getBoundBox()
          The geographic extent of the direction item.
 java.lang.String getDriveText()
          Formatted text descrbing the length and time of the direction item.
 int getItemType()
          The type of direction item.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 double getLength()
          The length of the route part, in miles by default, corresponding to the direction item.
 int getRoutePart()
          The route part number associated with a direction item.
 ISMPointsCollection getShape()
          A collection of points representing the shape of the direction item.
 java.lang.String getStreetName()
          The street name of the direction item.
 java.lang.String getText()
          A string describing the direction item.
 double getTime()
          The driving time of the route part corresponding to the direction item.
 double getTurnAngle()
          The turn angle of the direction item.
 int hashCode()
          the hashcode for this object
 void release()
          Release a SMDirItem.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMDirItem

public SMDirItem(java.lang.Object obj)
          throws java.io.IOException
Construct a SMDirItem using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMDirItem.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
SMDirItem o = (SMDirItem)obj; // will not work

SMDirItem o = new SMDirItem(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems SMDirItem theSMDirItem = (SMDirItem) obj;
Method Detail

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

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

getText

public java.lang.String getText()
                         throws java.io.IOException,
                                AutomationException
A string describing the direction item.

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

getLength

public double getLength()
                 throws java.io.IOException,
                        AutomationException
The length of the route part, in miles by default, corresponding to the direction item.

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

getTime

public double getTime()
               throws java.io.IOException,
                      AutomationException
The driving time of the route part corresponding to the direction item.

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

getDriveText

public java.lang.String getDriveText()
                              throws java.io.IOException,
                                     AutomationException
Formatted text descrbing the length and time of the direction item.

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

getItemType

public int getItemType()
                throws java.io.IOException,
                       AutomationException
The type of direction item. Returns an esriSMDirItemType constant.

Specified by:
getItemType in interface ISMDirItem
Returns:
A com.esri.arcgis.datasourcesfile.esriSMDirItemType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRoutePart

public int getRoutePart()
                 throws java.io.IOException,
                        AutomationException
The route part number associated with a direction item.

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

getShape

public ISMPointsCollection getShape()
                             throws java.io.IOException,
                                    AutomationException
A collection of points representing the shape of the direction item.

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

getBoundBox

public ISMRouterEnvelope getBoundBox()
                              throws java.io.IOException,
                                     AutomationException
The geographic extent of the direction item.

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

getStreetName

public java.lang.String getStreetName()
                               throws java.io.IOException,
                                      AutomationException
The street name of the direction item.

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

getTurnAngle

public double getTurnAngle()
                    throws java.io.IOException,
                           AutomationException
The turn angle of the direction item.

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

getAzimuth

public int getAzimuth()
               throws java.io.IOException,
                      AutomationException
The azimuth of the direction item. Returns an esriSMAzimuthType constant.

Specified by:
getAzimuth in interface ISMDirItem
Returns:
A com.esri.arcgis.datasourcesfile.esriSMAzimuthType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.