com.mapquest
Class AutoGeocodeCovSwitch

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

public class AutoGeocodeCovSwitch
extends MQObject

Stores geocode coverage switching parameters.


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
AutoGeocodeCovSwitch()
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 long getMaxMatches()
          Gets the maximum matches to be returned for this object.
 java.lang.String getName()
          Gets the name of the Geocode coverage switching rules being used.
 int hashCode()
          Returns a hash code for this AutoGeocodeCovSwitch.
 void init()
          Initializes object.
 void setMaxMatches(long lMaxMatches)
          Sets the maximum matches to be returned for this object.
 void setName(java.lang.String strName)
          Sets the name of the Geocode coverage switching rules to use.
 
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

AutoGeocodeCovSwitch

public AutoGeocodeCovSwitch()
Method Detail

init

public void init()
Initializes object.

Overrides:
init in class MQObject

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.

setName

public void setName(java.lang.String strName)
Sets the name of the Geocode coverage switching rules to use. Names of coverage switching rules are defined in the mqserver.ini file.

Parameters:
strName - Name of coverage switching rules to use.

getName

public java.lang.String getName()
Gets the name of the Geocode coverage switching rules being used.

Returns:
Name

getMaxMatches

public long getMaxMatches()
Gets the maximum matches to be returned for this object.

Returns:
long max matches for this object

setMaxMatches

public void setMaxMatches(long lMaxMatches)
Sets the maximum matches to be returned for this object. Default = 1

Parameters:
lMaxMatches - max matches for this object

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 AutoGeocodeCovSwitch object that has same attributes as this object.

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

hashCode

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

Overrides:
hashCode in class MQObject
Returns:
a hash code value for this AutoGeocodeCovSwitch.