public class ProcessConfiguration extends Object
Constructor and Description |
---|
ProcessConfiguration(String className,
ProcessMode processMode,
Map<String,String> parameters,
Map<String,ProcessRuleSet> ruleSets,
List<ProcessMapEntry> mapEntries,
Element advancedProcessConfigurations)
Creates a ProcessConfiguration.
|
public ProcessConfiguration(String className, ProcessMode processMode, Map<String,String> parameters, Map<String,ProcessRuleSet> ruleSets, List<ProcessMapEntry> mapEntries, Element advancedProcessConfigurations)
className
- The fully qualified name of the class implementing the
process.processMode
- The execution mode of the process.parameters
- The process parameters. null
if no parameters
were declared in the configuration.ruleSets
- The rule sets declared for the process. null
if
no rule sets were declared in the configuration.mapEntries
- The map entries for the process. null
if no map
entries were declared in the configuration.public String getClassName()
public ProcessMode getProcessMode()
public Map<String,String> getParameters()
null
if no parameters were
declared in the configuration.public String getParameterValue(String parameterName)
parameterName
- Name of the parameter to get the value for.null
if no such parameter was declared in the
configuration.public boolean parameterAsBoolean(String parameterName, boolean defaultValue)
public String parameterAsString(String parameterName, String defaultValue, boolean allowNonEmptyTrimmedStringValue, boolean trimValue)
parameterName
- name of the parameter to retrieve the value fromdefaultValue
- value that will be returned if no valid parameter value was
found; can be null
allowNonEmptyTrimmedStringValue
- true
if the parameter value may be empty, if
trimmed, else false
trimValue
- true
if leading and trailing whitespace shall be
removed from the parameter value before returning itnull
) if the parameter value does not fulfill the
criteriapublic List<String> parameterAsStringList(String parameterName, String[] defaultValues, boolean omitEmptyStrings, boolean trimResults)
parameterName
- name of the parameter to retrieve the comma separated values
fromdefaultValues
- values that will be returned if no values were found;
null
is converted to an empty list of stringsomitEmptyStrings
- true
if values may NOT be empty if they were
trimmed, else false
trimResults
- true
if leading and trailing whitespace shall be
removed from a valuenull
public List<String> parameterAsStringList(String parameterName, String[] defaultValues, boolean omitEmptyStrings, boolean trimResults, String separator)
parameterName
- name of the parameter to retrieve the separated values fromdefaultValues
- values that will be returned if no values were found;
null
is converted to an empty list of stringsomitEmptyStrings
- true
if values may NOT be empty if they were
trimmed, else false
trimResults
- true
if leading and trailing whitespace shall be
removed from a valueseparator
- the literal, nonempty string to recognize as a separatornull
public String[] getListParameterValue(String parameterName)
parameterName
- Name of the parameter to get the value list for.null
if no such parameter was declared in the
configuration.public Map<String,ProcessRuleSet> getRuleSets()
null
if no
rule sets were declared in the configuration.public Set<String> getAllRules()
null
public List<ProcessMapEntry> getMapEntries()
null
if no map
entries were declared in the configuration.public boolean hasParameter(String paramName)
public Element getAdvancedProcessConfigurations()
null
if it is not set
therepublic String getGmlVersion()
public List<TransformerConfiguration> getTransformers()
public void setTransformers(List<TransformerConfiguration> transformers)
transformers
- the transformers to setpublic void addTransformer(TransformerConfiguration transformerConfig)
public List<TargetConfiguration> getTargets()
public void setTargets(List<TargetConfiguration> targets)
targets
- the targets to setpublic void addTarget(TargetConfiguration targetConfig)
public ProcessMapEntry getMapEntry(String type)
type
- the map entry with the given type, or null
if
none was found.Copyright © 2018. All rights reserved.