com.mapquest
Class SingleLineAddress

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.Location
          extended bycom.mapquest.SingleLineAddress
All Implemented Interfaces:
java.lang.Cloneable

public class SingleLineAddress
extends Location

Contains information for geocoding and routing to and from addresses.

See Also:
Location

Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
SingleLineAddress()
          Default constructor.
SingleLineAddress(SingleLineAddress copy)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 java.lang.String getAddress()
          Returns address.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 java.lang.String getCountry()
          Returns the country field of this SingleLineAddress.
 int hashCode()
          Returns a hash code for this SingleLineAddress.
 void init()
          Initializes object.
 void setAddress(java.lang.String strAddress)
          Sets the address field of this SingleLineAddress.
 void setCountry(java.lang.String strCountry)
          Sets the country field of this SingleLineAddress.
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

SingleLineAddress

public SingleLineAddress()
Default constructor.


SingleLineAddress

public SingleLineAddress(SingleLineAddress copy)
Copy constructor.

Parameters:
copy - SingleLineAddress to be copied
Method Detail

init

public void init()
Initializes object.

Overrides:
init in class Location

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

setAddress

public void setAddress(java.lang.String strAddress)
Sets the address field of this SingleLineAddress.

Parameters:
strAddress - The address to which the address field of this SingleLineAddress is to be set.

setCountry

public void setCountry(java.lang.String strCountry)
Sets the country field of this SingleLineAddress.

Parameters:
strCountry - The country to which the country field of this SingleLineAddress is to be set.

getAddress

public java.lang.String getAddress()
Returns address.

Returns:
address

getCountry

public java.lang.String getCountry()
Returns the country field of this SingleLineAddress.

Returns:
The country field of this SingleLineAddress.

equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a SingleLineAddress object that has same attributes as this object.

Overrides:
equals in class Location
Parameters:
otherObject - the object to compare this SingleLineAddress against.
Returns:
true if the SingleLineAddress objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this SingleLineAddress.

Overrides:
hashCode in class Location
Returns:
a hash code value for this SingleLineAddress.