Interface GraphicStoreFactory
-
public interface GraphicStoreFactoryTheGraphicStoreFactoryclass/interface...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleancanProcess(java.net.URI provider)Indicates thisGraphicStoreFactorycommunicate with the indicated provider or service.booleancanProcess(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Indicates thisGraphicStoreFactorycommunicate with the indicated provider or service.GraphicStorecreateGraphicStore(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Ask for aGraphicStoreconnecting to the indicated provider or service.GraphicStorecreateNewGraphicStore(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Ask for a newGraphicStoreconnecting to the indicated provider or service.InternationalStringgetDescription()Description of this type ofGraphicStore.InternationalStringgetDisplayName()Display name used to communicate this type ofGraphicStoreto end users.java.net.URIgetIcon()Icon representing this category ofGraphicStores.java.util.Map<java.lang.String,java.lang.Class>getParametersInfo()Gets anObjectarray relating to the parameters needed (beyond the URI) to instantiate aGraphicStore.booleanisAvailable()Allows aGraphicStoreFactoryto ensure all its preconditions are met, such as the presense of required libraries.
-
-
-
Method Detail
-
createGraphicStore
GraphicStore createGraphicStore(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException, GraphicStoreException
Ask for aGraphicStoreconnecting to the indicated provider or service. The returnedGraphicStoremay have been previously cached.Additional hints or configuration information may be provided according to the metadata indicated by
getParametersInfo(). This information often includes security information such as username and password.- Parameters:
provider- Often a URI or JDBC URI locating the service to connect to.params- Map of hints or configuration information.- Returns:
GraphicStoreconnected to the indicated provider or service.- Throws:
java.io.IOException- if theGraphicStorecannot connect to its source.GraphicStoreException- if anything else goes wrong while creating theGraphicStore.
-
createNewGraphicStore
GraphicStore createNewGraphicStore(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params) throws java.io.IOException, GraphicStoreException
Ask for a newGraphicStoreconnecting to the indicated provider or service.Additional hints or configuration information may be provided according to the metadata indicated by
getParametersInfo(). This information often includes security information such as username and password.- Parameters:
provider- Often a URI or JDBC URI locating the service to connect to.params- Map of hints or configuration information.- Returns:
GraphicStoreconnected to the newly created provider or service.- Throws:
java.io.IOException- if theGraphicStorecannot connect to its source.GraphicStoreException- if anything else goes wrong while creating theGraphicStore.
-
getIcon
java.net.URI getIcon()
Icon representing this category ofGraphicStores.- Returns:
- the icon.
-
getDisplayName
InternationalString getDisplayName()
Display name used to communicate this type ofGraphicStoreto end users.
-
getDescription
InternationalString getDescription()
Description of this type ofGraphicStore.
-
getParametersInfo
java.util.Map<java.lang.String,java.lang.Class> getParametersInfo()
Gets anObjectarray relating to the parameters needed (beyond the URI) to instantiate aGraphicStore.
-
canProcess
boolean canProcess(java.net.URI provider)
Indicates thisGraphicStoreFactorycommunicate with the indicated provider or service.This method should not fail, if a connection needs to be made to parse a
GetCapabilitiesfile or negotiate WMS versions any IO problems simply indicate the inability to process.This method may be considered the same as:
canProcess(provider, hints)where hints was generated by using all the default values specified by thegetParametersInfo()method.- Parameters:
provider- Provider or Server of spatial information.
-
canProcess
boolean canProcess(java.net.URI provider, java.util.Map<java.lang.String,java.lang.Object> params)Indicates thisGraphicStoreFactorycommunicate with the indicated provider or service.This method differs from
canProcess(URI)in that additional configuration information may be supplied.- Parameters:
provider- Provider or Server of spatial information.params- additional configuration information.- Returns:
trueif this factory can communicate with the provider.
-
isAvailable
boolean isAvailable()
Allows aGraphicStoreFactoryto ensure all its preconditions are met, such as the presense of required libraries.- Returns:
trueif available
-
-
DataMelt 3.0 © DataMelt by jWork.ORG