public class YahooGazetteer extends AbstractFeature implements Gazetteer
controller, featureIDchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
YahooGazetteer() |
YahooGazetteer(Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
List<PointOfInterest> |
findPlaces(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, turnOnaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic YahooGazetteer()
public YahooGazetteer(Registry registry)
public List<PointOfInterest> findPlaces(String placeInfo) throws NoItemException, ServiceException
GazetteerfindPlaces in interface GazetteerplaceInfo - 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 Initializableinitialize in class AbstractFeature