com.esri.arcgis.networkanalysis
Class StringPair

java.lang.Object
  extended by com.esri.arcgis.networkanalysis.StringPair
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IStringPair, Serializable

public class StringPair
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IStringPair

A container for specifying an ordered pair of strings.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
StringPair()
          Constructs a StringPair using ArcGIS Engine.
StringPair(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
StringPair theStringPair = (StringPair) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getFirstString()
          The first string in the pair.
 String getSecondString()
          The second string in the pair.
 int hashCode()
          the hashcode for this object
 void setFirstString(String firstString)
          The first string in the pair.
 void setSecondString(String secondString)
          The second string in the pair.
 
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

StringPair

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

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

StringPair

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

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

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

getFirstString

public String getFirstString()
                      throws IOException,
                             AutomationException
The first string in the pair.

Product Availability

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

Specified by:
getFirstString in interface IStringPair
Returns:
The firstString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSecondString

public String getSecondString()
                       throws IOException,
                              AutomationException
The second string in the pair.

Product Availability

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

Specified by:
getSecondString in interface IStringPair
Returns:
The secondString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFirstString

public void setFirstString(String firstString)
                    throws IOException,
                           AutomationException
The first string in the pair.

Product Availability

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

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

setSecondString

public void setSecondString(String secondString)
                     throws IOException,
                            AutomationException
The second string in the pair.

Product Availability

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

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