de.interactive_instruments.ShapeChange
Class ProcessConfiguration

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.ProcessConfiguration
Direct Known Subclasses:
TargetConfiguration, TransformerConfiguration

public class ProcessConfiguration
extends Object

Configuration information for a process.

Author:
echterhoff

Constructor Summary
ProcessConfiguration(String className, ProcessMode processMode, Map<String,String> parameters, Map<String,ProcessRuleSet> ruleSets, List<ProcessMapEntry> mapEntries)
          Creates a ProcessConfiguration.
 
Method Summary
 void addTarget(TargetConfiguration targetConfig)
           
 void addTransformer(TransformerConfiguration transformerConfig)
           
 String getClassName()
           
 String getGmlVersion()
           
 String[] getListParameterValue(String parameterName)
          Gets the list of values for a parameter with given name.
 List<ProcessMapEntry> getMapEntries()
           
 ProcessMapEntry getMapEntry(String type)
           
 Map<String,String> getParameters()
           
 String getParameterValue(String parameterName)
          Gets the value of the parameter with given name.
 String[] getParameterValues(String parameterName)
           
 ProcessMode getProcessMode()
           
 Map<String,ProcessRuleSet> getRuleSets()
           
 List<TargetConfiguration> getTargets()
           
 List<TransformerConfiguration> getTransformers()
           
 boolean hasParameter(String paramName)
           
 void setTargets(List<TargetConfiguration> targets)
           
 void setTransformers(List<TransformerConfiguration> transformers)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessConfiguration

public ProcessConfiguration(String className,
                            ProcessMode processMode,
                            Map<String,String> parameters,
                            Map<String,ProcessRuleSet> ruleSets,
                            List<ProcessMapEntry> mapEntries)
Creates a ProcessConfiguration.

Parameters:
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.
Method Detail

getClassName

public String getClassName()
Returns:
The fully qualified name of the class implementing the process.

getProcessMode

public ProcessMode getProcessMode()
Returns:
The execution mode of the process.

getParameters

public Map<String,String> getParameters()
Returns:
The process parameters. null if no parameters were declared in the configuration.

getParameterValue

public String getParameterValue(String parameterName)
Gets the value of the parameter with given name.

Parameters:
parameterName - Name of the parameter to get the value for.
Returns:
The value of the process parameter with given name. null if no such parameter was declared in the configuration.

getParameterValues

public String[] getParameterValues(String parameterName)
Parameters:
parameterName - Name of the parameter to get the values for.
Returns:
The array of comma-separated values of the parameter, or null if no such parameter was declared in the configuration.

getListParameterValue

public String[] getListParameterValue(String parameterName)
Gets the list of values for a parameter with given name. The parameter value is a comma-separated list of values, which is returned.

Parameters:
parameterName - Name of the parameter to get the value list for.
Returns:
The list of values computed from the process parameter with given name. null if no such parameter was declared in the configuration.

getRuleSets

public Map<String,ProcessRuleSet> getRuleSets()
Returns:
The rule sets declared for the process. null if no rule sets were declared in the configuration.

getMapEntries

public List<ProcessMapEntry> getMapEntries()
Returns:
The map entries for the process. null if no map entries were declared in the configuration.

hasParameter

public boolean hasParameter(String paramName)

getGmlVersion

public String getGmlVersion()

toString

public String toString()
Overrides:
toString in class Object

getTransformers

public List<TransformerConfiguration> getTransformers()
Returns:
the transformers

setTransformers

public void setTransformers(List<TransformerConfiguration> transformers)
Parameters:
transformers - the transformers to set

addTransformer

public void addTransformer(TransformerConfiguration transformerConfig)

getTargets

public List<TargetConfiguration> getTargets()
Returns:
the list of direct targets associated to this process

setTargets

public void setTargets(List<TargetConfiguration> targets)
Parameters:
targets - the targets to set

addTarget

public void addTarget(TargetConfiguration targetConfig)

getMapEntry

public ProcessMapEntry getMapEntry(String type)
Parameters:
type - the map entry with the given type, or null if none was found.
Returns:


Copyright © 2015. All rights reserved.