com.esri.arcgis.arcweb
Class ArcWebAddress

java.lang.Object
  extended by com.esri.arcgis.arcweb.ArcWebAddress
All Implemented Interfaces:
IArcWebAddress, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class ArcWebAddress
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IArcWebAddress

A definition of the address.

Description

ArcWebAddress is used to hold the descriptive properties of an address such as the Street and PostalCode. It can be used as either an input to an operation like ArcWebAddressFinder.FindLocationByAddress, or as a result from an operation like ArcWebAddressFinder.FindAddressByLocation.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ArcWebAddress()
          Constructs a ArcWebAddress using ArcGIS Engine.
ArcWebAddress(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ArcWebAddress theArcWebAddress = (ArcWebAddress) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 String getCity()
          The city name.
static String getClsid()
          getClsid.
 int getCountry()
          The country name.
 String getHouseNumber()
          The house number.
 String getIntersection()
          The street intersection name.
 String getPostalCode()
          The zip or postal code.
 String getStateProvince()
          The state or province name.
 String getStreet()
          The street name.
 int hashCode()
          the hashcode for this object
 void setCity(String city)
          The city name.
 void setCountry(int countryCode)
          The country name.
 void setHouseNumber(String houseNumber)
          The house number.
 void setIntersection(String intersection)
          The street intersection name.
 void setPostalCode(String postalCode)
          The zip or postal code.
 void setStateProvince(String stateProvince)
          The state or province name.
 void setStreet(String street)
          The street name.
 
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

ArcWebAddress

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

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

ArcWebAddress

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

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

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

getCity

public String getCity()
               throws IOException,
                      AutomationException
The city name.

Product Availability

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

Specified by:
getCity in interface IArcWebAddress
Returns:
The city
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCity

public void setCity(String city)
             throws IOException,
                    AutomationException
The city name.

Product Availability

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

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

getCountry

public int getCountry()
               throws IOException,
                      AutomationException
The country name.

Product Availability

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

Specified by:
getCountry in interface IArcWebAddress
Returns:
A com.esri.arcgis.arcweb.esriArcWebCountry constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCountry

public void setCountry(int countryCode)
                throws IOException,
                       AutomationException
The country name.

Product Availability

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

Specified by:
setCountry in interface IArcWebAddress
Parameters:
countryCode - A com.esri.arcgis.arcweb.esriArcWebCountry constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHouseNumber

public String getHouseNumber()
                      throws IOException,
                             AutomationException
The house number.

Product Availability

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

Specified by:
getHouseNumber in interface IArcWebAddress
Returns:
The houseNumber
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHouseNumber

public void setHouseNumber(String houseNumber)
                    throws IOException,
                           AutomationException
The house number.

Product Availability

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

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

getIntersection

public String getIntersection()
                       throws IOException,
                              AutomationException
The street intersection name.

Product Availability

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

Specified by:
getIntersection in interface IArcWebAddress
Returns:
The intersection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setIntersection

public void setIntersection(String intersection)
                     throws IOException,
                            AutomationException
The street intersection name.

Product Availability

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

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

getStateProvince

public String getStateProvince()
                        throws IOException,
                               AutomationException
The state or province name.

Product Availability

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

Specified by:
getStateProvince in interface IArcWebAddress
Returns:
The stateProvince
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStateProvince

public void setStateProvince(String stateProvince)
                      throws IOException,
                             AutomationException
The state or province name.

Product Availability

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

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

getPostalCode

public String getPostalCode()
                     throws IOException,
                            AutomationException
The zip or postal code.

Product Availability

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

Specified by:
getPostalCode in interface IArcWebAddress
Returns:
The postalCode
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPostalCode

public void setPostalCode(String postalCode)
                   throws IOException,
                          AutomationException
The zip or postal code.

Product Availability

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

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

getStreet

public String getStreet()
                 throws IOException,
                        AutomationException
The street name.

Product Availability

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

Specified by:
getStreet in interface IArcWebAddress
Returns:
The street
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStreet

public void setStreet(String street)
               throws IOException,
                      AutomationException
The street name.

Product Availability

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

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