public class GeoNamesVerifier extends GeoNamesLocator implements EntityVerifier
| Constructor and Description |
|---|
GeoNamesVerifier()
Create a new GeoNamesVerifier
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
determineType(java.lang.String term)
Determine the entity type for a particular term.
|
java.lang.String |
getModel()
Get the model string for this verifier.
|
java.util.Set<EntityType> |
getSupportedTypes()
Get the supported types for this verifier.
|
java.lang.String |
normalize(java.lang.String term)
Get a normalized form for this entity.
|
java.lang.String |
normalize(java.lang.String term,
EntityType type)
Get a normalized form for this entity.
|
void |
setModel(java.lang.String model)
Set the model for this verifier.
|
boolean |
verifyType(java.lang.String term,
EntityType type)
Verify if the term matches the entity type.
|
getCache, getCoordinate, getCountry, getFeatureType, getGeoObject, getGeoPath, getRealName, isEstimateFlag, isLoaded, isRetryFlag, loadCache, lookup, lookup, lookup, setEstimateFlag, setFeatureClass, setGeoPath, setRetryFlagpublic EntityType determineType(java.lang.String term)
determineType in interface EntityVerifierterm - the term to check. This is the extracted entitypublic java.lang.String getModel()
getModel in interface EntityVerifierpublic java.util.Set<EntityType> getSupportedTypes()
getSupportedTypes in interface EntityVerifierpublic java.lang.String normalize(java.lang.String term)
term - the term to normalizepublic java.lang.String normalize(java.lang.String term,
EntityType type)
normalize in interface EntityVerifierterm - the term to normalizetype - the entity type, which should be EntityType.LOCATIONpublic void setModel(java.lang.String model)
setModel in interface EntityVerifiermodel - the new base for the geonames URL.public boolean verifyType(java.lang.String term,
EntityType type)
verifyType in interface EntityVerifierterm - the term to checktype - the entity type