public abstract class SingleProcessFactory extends Object implements ProcessFactory
| Modifier | Constructor and Description |
|---|---|
protected |
SingleProcessFactory()
Utility method for factories that will use the process factory name in order to define the
process name by stripping the "Factory" at the end of the name.
|
protected |
SingleProcessFactory(Name processName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Process |
create() |
Process |
create(Name name)
Create a process for execution.
|
protected abstract InternationalString |
getDescription() |
InternationalString |
getDescription(Name name)
Human readable description of the specified process
|
Map<RenderingHints.Key,?> |
getImplementationHints()
The default implementation returns an empty map.
|
Set<Name> |
getNames()
The names (non human readable) that can be used to refer to the processes generated by this
factory.
|
protected abstract Map<String,Parameter<?>> |
getParameterInfo() |
Map<String,Parameter<?>> |
getParameterInfo(Name name)
Description of the Map parameter to use when executing.
|
protected abstract Map<String,Parameter<?>> |
getResultInfo(Map<String,Object> parameters) |
Map<String,Parameter<?>> |
getResultInfo(Name name,
Map<String,Object> parameters)
Description of the results returned
|
InternationalString |
getTitle()
Name suitable for display to end user.
|
InternationalString |
getTitle(Name name)
Human readable title suitable for display for the specified process
Please note that this title is *not* stable across locale; if you want to remember a
ProcessFactory between runs please use getName (which is dependent on the implementor to
guarantee uniqueness) or use the classname
|
protected abstract String |
getVersion() |
String |
getVersion(Name name)
Return the version of the process
|
boolean |
isAvailable()
Default Implementation return true
|
protected abstract boolean |
supportsProgress() |
boolean |
supportsProgress(Name name)
It is up to the process implementors to implement progress on the task, this method is used
to see if the process has progress monitoring implemented
|
protected SingleProcessFactory()
protected SingleProcessFactory(Name processName)
processName - public Process create(Name name)
ProcessFactorycreate in interface ProcessFactoryname - the process identifierpublic Set<Name> getNames()
ProcessFactoryThis name is used to advertise the availability of a Process in a WPS; while the Title and Description will change depending on the users locale; this name will be consistent. It is up to the implementor to ensure this name is unique
getNames in interface ProcessFactorypublic InternationalString getDescription(Name name)
ProcessFactorygetDescription in interface ProcessFactoryname - the process whose description is to be returnedpublic Map<String,Parameter<?>> getParameterInfo(Name name)
ProcessFactorygetParameterInfo in interface ProcessFactoryname - the process identifierpublic Map<String,Parameter<?>> getResultInfo(Name name, Map<String,Object> parameters) throws IllegalArgumentException
ProcessFactorygetResultInfo in interface ProcessFactoryname - the process identifierparameters - the parameters to be usedIllegalArgumentExceptionpublic InternationalString getTitle(Name name)
ProcessFactoryPlease note that this title is *not* stable across locale; if you want to remember a ProcessFactory between runs please use getName (which is dependent on the implementor to guarantee uniqueness) or use the classname
getTitle in interface ProcessFactoryname - the process identifierpublic String getVersion(Name name)
ProcessFactorygetVersion in interface ProcessFactoryname - the process identifierpublic boolean supportsProgress(Name name)
ProcessFactorysupportsProgress in interface ProcessFactoryname - the process identifierpublic boolean isAvailable()
isAvailable in interface OptionalFactorypublic Map<RenderingHints.Key,?> getImplementationHints()
getImplementationHints in interface Factoryprotected abstract Process create()
protected abstract InternationalString getDescription()
protected abstract Map<String,Parameter<?>> getResultInfo(Map<String,Object> parameters) throws IllegalArgumentException
IllegalArgumentExceptionpublic InternationalString getTitle()
getTitle in interface ProcessFactoryprotected abstract String getVersion()
protected abstract boolean supportsProgress()
Copyright © 1996–2019 Geotools. All rights reserved.