public interface Driver extends OptionalFactory, Factory
Classes implementing this interface basically act as factory for creating connections to coverage sources like files, WCS services, WMS services, databases, etc...
This class also offers basic create / delete functionality (which can be useful for file based coverage formats).
Purpose of this class is to provide basic information about a certain coverage service/format as well as about the parameters needed in order to connect to a source which such a service/format is able to work against.
Notice that as part as the roll of a "factory" interface this class makes available an isAvailable()
method which should check if all the needed dependencies which can be jars as
well as native libs or configuration files.
Modifier and Type | Interface and Description |
---|---|
static class |
Driver.DriverCapabilities |
Modifier and Type | Method and Description |
---|---|
CoverageAccess |
access(Driver.DriverCapabilities opreation,
Map<String,Serializable> params,
Hints hints,
ProgressListener listener)
Simone: Return
null in case the delete succeds. |
boolean |
canAccess(Driver.DriverCapabilities operation,
Map<String,Serializable> params) |
InternationalString |
getDescription()
Describe the nature of this
Driver implementation. |
EnumSet<Driver.DriverCapabilities> |
getDriverCapabilities() |
String |
getName()
Unique name (non human readable) that can be used to refer to this implementation.
|
Map<String,Parameter<?>> |
getParameterInfo(Driver.DriverCapabilities operation) |
InternationalString |
getTitle()
Human readable title for this
Driver . |
boolean |
isAvailable()
Test to see if this
Driver is available, if it has all the appropriate dependencies
(jars or libraries). |
getImplementationHints
String getName()
While the Title and Description will change depending on the users local this name will be consistent. Please note that a given file may be readable by several Drivers (the description of each implementation should be provided to the user so they can make an intellegent choice in the matter).
Driver
InternationalString getTitle()
Driver
.InternationalString getDescription()
Driver
implementation.
A description of this Driver
type; the description should indicate the format or
service being made available in human readable terms.
Driver
s.boolean isAvailable()
Driver
is available, if it has all the appropriate dependencies
(jars or libraries).
One may ask how this is different than #canConnect(Map)
, and basically available
can be used by finder mechanisms to list available Driver
s.
isAvailable
in interface OptionalFactory
boolean canAccess(Driver.DriverCapabilities operation, Map<String,Serializable> params)
Map<String,Parameter<?>> getParameterInfo(Driver.DriverCapabilities operation)
EnumSet<Driver.DriverCapabilities> getDriverCapabilities()
CoverageAccess access(Driver.DriverCapabilities opreation, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException
null
in case the delete succeds. TODO think about a neater
approachopreation
- params
- hints
- listener
- IOException
Copyright © 1996–2019 Geotools. All rights reserved.