public class YahooGazetteer extends AbstractFeature implements Gazetteer
controller, featureID
Constructor and Description |
---|
YahooGazetteer() |
YahooGazetteer(Registry registry) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PointOfInterest> |
findPlaces(java.lang.String placeInfo)
Find places identified in a string of free text.
|
void |
initialize(Controller controller) |
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isOn, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public YahooGazetteer()
public YahooGazetteer(Registry registry)
public java.util.List<PointOfInterest> findPlaces(java.lang.String placeInfo) throws NoItemException, ServiceException
Gazetteer
findPlaces
in interface Gazetteer
placeInfo
- a string containing the place description.NoItemException
- if the place description cannot be matched.ServiceException
- if the lookup service is not available or invocation of it fails.public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeature