org.geonames
Class ToponymSearchCriteria
java.lang.Object
org.geonames.ToponymSearchCriteria
public class ToponymSearchCriteria
- extends Object
search criteria for web services returning toponyms.
The string parameters do not have to be utf8 encoded. The encoding is done
transparently in the call to the web service.
The main parameter for the search over all fields is the 'q' parameter.
- Author:
- marc@geonames
- See Also:
WebService.search(java.lang.String, java.lang.String, java.lang.String, java.lang.String[], int),
search
webservice documentation< /a>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToponymSearchCriteria
public ToponymSearchCriteria()
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
getCountryBias
public String getCountryBias()
- Returns:
- the countryBias
setCountryBias
public void setCountryBias(String countryBias)
- Parameters:
countryBias - the countryBias to set
getContinentCode
public String getContinentCode()
- Returns:
- the continentCode
setContinentCode
public void setContinentCode(String continentCode)
- Parameters:
continentCode - the continentCode to set
getNameEquals
public String getNameEquals()
- Returns:
- Returns the nameEquals.
setNameEquals
public void setNameEquals(String exactName)
- Parameters:
nameEquals - The nameEquals to set.
getFeatureCodes
public String[] getFeatureCodes()
- Returns:
- Returns the featureCodes.
setFeatureCodes
public void setFeatureCodes(String[] featureCodes)
- Parameters:
featureCodes - The featureCodes to set.
setFeatureCode
public void setFeatureCode(String featureCode)
getLanguage
public String getLanguage()
- Returns:
- Returns the language.
setLanguage
public void setLanguage(String language)
- Parameters:
language - The language to set.
getMaxRows
public int getMaxRows()
- Returns:
- Returns the maxRows.
setMaxRows
public void setMaxRows(int maxRows)
- Parameters:
maxRows - The maxRows to set.
getName
public String getName()
- Returns:
- Returns the name.
setName
public void setName(String name)
- search over the name field only.
- Parameters:
name - The name to set.
getQ
public String getQ()
- Returns:
- Returns the q.
setQ
public void setQ(String q)
- The main search term. The search is executed over all fields (place name,
country name, admin names, etc)
- Parameters:
q - The q to set.
getStartRow
public int getStartRow()
- Returns:
- Returns the startRow.
setStartRow
public void setStartRow(int startRow)
- Parameters:
startRow - The startRow to set.
getStyle
public Style getStyle()
- Returns:
- Returns the style.
setStyle
public void setStyle(Style style)
- Parameters:
style - The style to set.
getTag
public String getTag()
- Returns:
- Returns the tag.
setTag
public void setTag(String tag)
- Parameters:
tag - The tag to set.
getNameStartsWith
public String getNameStartsWith()
- Returns:
- Returns the nameStartsWith.
setNameStartsWith
public void setNameStartsWith(String nameStartsWith)
- Parameters:
nameStartsWith - The nameStartsWith to set.
getFeatureClass
public FeatureClass getFeatureClass()
- Returns:
- the featureClass
setFeatureClass
public void setFeatureClass(FeatureClass featureClass)
- Parameters:
featureClass - the featureClass to set
getAdminCode1
public String getAdminCode1()
- Returns:
- the adminCode1
setAdminCode1
public void setAdminCode1(String adminCode1)
- Parameters:
adminCode1 - the adminCode1 to set
getAdminCode2
public String getAdminCode2()
- Returns:
- the adminCode2
setAdminCode2
public void setAdminCode2(String adminCode2)
- Parameters:
adminCode2 - the adminCode2 to set
getAdminCode3
public String getAdminCode3()
- Returns:
- the adminCode3
setAdminCode3
public void setAdminCode3(String adminCode3)
- Parameters:
adminCode3 - the adminCode3 to set
getAdminCode4
public String getAdminCode4()
setAdminCode4
public void setAdminCode4(String adminCode4)