|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LatLongDataProvider
This interface is extended by classes that can interpret a "data uri" as
contained in a "stemspatial" URI and return latitude and longitude data from
the source specified by the URI. The LatLongProviderAdapter
maintains
a static singleton collection of classes that implement this interface. The
collection is indexed by the scheme of the URI they handle. It uses this
collection to find the appropriate instance for the URI's it encounters that
need to be processed. That processing is delegated to classes that extend
this interface.
Thus, if you extend this interface you should also register an instance of
your class with the method
LatLongProviderAdapter.registerLatLongDataProvider(String, LatLongDataProvider)
.
LatLongProviderAdapter
Method Summary | |
---|---|
LatLong |
getLatLong(org.eclipse.emf.common.util.URI dataURI)
|
LatLong |
getLatLongNoWait(org.eclipse.emf.common.util.URI dataURI)
This method is just like getLatLong(URI) except that it will
immediately return with an empty LatLong instance if the data
identified by the URI has not been retrieved. |
Method Detail |
---|
LatLong getLatLong(org.eclipse.emf.common.util.URI dataURI)
dataURI
- the data URI to be processed by this provider
LatLong getLatLongNoWait(org.eclipse.emf.common.util.URI dataURI)
getLatLong(URI)
except that it will
immediately return with an empty LatLong
instance if the data
identified by the URI has not been retrieved. As a side effect, it will
create a seperate Job
(i.e., Thread
) to retrieve
the data. If that Job
completes successfully, a future call will
return the appropriate data.
dataURI
- the data URI to be processed by this provider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |