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)
ProcessFactory
create
in interface ProcessFactory
name
- the process identifierpublic Set<Name> getNames()
ProcessFactory
This 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 ProcessFactory
public InternationalString getDescription(Name name)
ProcessFactory
getDescription
in interface ProcessFactory
name
- the process whose description is to be returnedpublic Map<String,Parameter<?>> getParameterInfo(Name name)
ProcessFactory
getParameterInfo
in interface ProcessFactory
name
- the process identifierpublic Map<String,Parameter<?>> getResultInfo(Name name, Map<String,Object> parameters) throws IllegalArgumentException
ProcessFactory
getResultInfo
in interface ProcessFactory
name
- the process identifierparameters
- the parameters to be usedIllegalArgumentException
public InternationalString getTitle(Name name)
ProcessFactory
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
getTitle
in interface ProcessFactory
name
- the process identifierpublic String getVersion(Name name)
ProcessFactory
getVersion
in interface ProcessFactory
name
- the process identifierpublic boolean supportsProgress(Name name)
ProcessFactory
supportsProgress
in interface ProcessFactory
name
- the process identifierpublic boolean isAvailable()
isAvailable
in interface OptionalFactory
public Map<RenderingHints.Key,?> getImplementationHints()
getImplementationHints
in interface Factory
protected abstract Process create()
protected abstract InternationalString getDescription()
protected abstract Map<String,Parameter<?>> getResultInfo(Map<String,Object> parameters) throws IllegalArgumentException
IllegalArgumentException
public InternationalString getTitle()
getTitle
in interface ProcessFactory
protected abstract String getVersion()
protected abstract boolean supportsProgress()
Copyright © 1996–2019 Geotools. All rights reserved.