Package org.opensextant.extractors.geo
Interface CountryObserver
- All Known Implementing Classes:
PlaceGeocoder,PostalGeocoder
public interface CountryObserver
-
Method Summary
Modifier and TypeMethodDescriptionintvoidcountryInScope(String cc) Use a country code to signal that a country was mentioned.voidcountryInScope(org.opensextant.data.Country C) Use a country object to signal a country was mentioned or is in scopeCalculates totals and ratios for the discovered set of countries.booleanHave you seen this country before?booleancountryObserved(org.opensextant.data.Country C) Have you seen this country before?
-
Method Details
-
countryInScope
Use a country code to signal that a country was mentioned.- Parameters:
cc- country code
-
countryInScope
void countryInScope(org.opensextant.data.Country C) Use a country object to signal a country was mentioned or is in scope- Parameters:
C- country object
-
countryObserved
Have you seen this country before?- Parameters:
cc- country code- Returns:
- true if observer saw country
-
countryObserved
boolean countryObserved(org.opensextant.data.Country C) Have you seen this country before?- Parameters:
C- country object- Returns:
- true if observer saw country
-
countryCount
int countryCount() -
countryMentionCount
Map<String,CountryCount> countryMentionCount()Calculates totals and ratios for the discovered set of countries.- Returns:
- map of country code : counts
-