org.geonames
Class PostalCodeSearchCriteria

java.lang.Object
  extended by org.geonames.PostalCodeSearchCriteria

public class PostalCodeSearchCriteria
extends Object

search criteria for web services returning postal codes

Author:
marc@geonames

Constructor Summary
PostalCodeSearchCriteria()
           
 
Method Summary
 String getAdminCode1()
           
 String getCountryBias()
           
 String getCountryCode()
           
 Double getLatitude()
           
 Double getLongitude()
           
 int getMaxRows()
           
 String getPlaceName()
           
 String getPostalCode()
           
 double getRadius()
           
 int getStartRow()
           
 Style getStyle()
           
 boolean isOROperator()
           
 void setAdminCode1(String adminCode1)
           
 void setCountryBias(String countryBias)
           
 void setCountryCode(String countryCode)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setMaxRows(int maxRows)
           
 void setOROperator(boolean isOROperator)
           
 void setPlaceName(String placeName)
           
 void setPostalCode(String postalCode)
           
 void setRadius(double radius)
          the radius in km to be used for reverse geocoding.
 void setStartRow(int startRow)
           
 void setStyle(Style style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostalCodeSearchCriteria

public PostalCodeSearchCriteria()
Method Detail

getStyle

public Style getStyle()
Returns:
Returns the style.

setStyle

public void setStyle(Style style)
Parameters:
style - The style to set.

getCountryCode

public String getCountryCode()
Returns:
Returns the ISO 3166-1-alpha-2 countryCode.

setCountryCode

public void setCountryCode(String countryCode)
                    throws InvalidParameterException
Parameters:
countryCode - The ISO 3166-1-alpha-2 countryCode to set.
Throws:
InvalidParameterException

getLatitude

public Double getLatitude()
Returns:
Returns the latitude.

setLatitude

public void setLatitude(double latitude)
                 throws InvalidParameterException
Parameters:
latitude - The latitude to set.
Throws:
InvalidParameterException

getLongitude

public Double getLongitude()
Returns:
Returns the longitude.

setLongitude

public void setLongitude(double longitude)
                  throws InvalidParameterException
Parameters:
longitude - The longitude to set.
Throws:
InvalidParameterException

getPlaceName

public String getPlaceName()
Returns:
Returns the placeName.

setPlaceName

public void setPlaceName(String placeName)
Parameters:
placeName - The placeName to set.

getPostalCode

public String getPostalCode()
Returns:
Returns the postalCode.

setPostalCode

public void setPostalCode(String postalCode)
Parameters:
postalCode - The postalCode to set.

getMaxRows

public int getMaxRows()
Returns:
the maxRows

setMaxRows

public void setMaxRows(int maxRows)
Parameters:
maxRows - the maxRows to set

setOROperator

public void setOROperator(boolean isOROperator)
Parameters:
isOROperator - the isOROperator to set

isOROperator

public boolean isOROperator()
Returns:
the isOROperator

getAdminCode1

public String getAdminCode1()
Returns:
the adminCode1

setAdminCode1

public void setAdminCode1(String adminCode1)
Parameters:
adminCode1 - the adminCode1 to set

setRadius

public void setRadius(double radius)
the radius in km to be used for reverse geocoding.

Parameters:
radius - the radius to set

getRadius

public double getRadius()
Returns:
the radius

getCountryBias

public String getCountryBias()
Returns:
the countryBias

setCountryBias

public void setCountryBias(String countryBias)
Parameters:
countryBias - the countryBias to set

getStartRow

public int getStartRow()
Returns:
the startRow

setStartRow

public void setStartRow(int startRow)
Parameters:
startRow - the startRow to set