uk.ac.ncl.cs.instantsoap.commandlineprocessor.parameterRenaming
Class ParameterRenamerImpl

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.parameterRenaming.ParameterRenamerImpl
All Implemented Interfaces:
ParameterRenamer

public class ParameterRenamerImpl
extends Object
implements ParameterRenamer

Simple implementation of ParameterRenamer.

Author:
Matthew Pocock

Constructor Summary
ParameterRenamerImpl()
           
 
Method Summary
 Map<String,String> renameInputs(Map<String,String> inputRenaming, Map<String,String> inputs)
          Rename inputs from external to internal names.
 Map<String,String> renameOutputs(Map<String,String> outputRenaming, Map<String,String> results)
          Rename outputs from internal to external names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterRenamerImpl

public ParameterRenamerImpl()
Method Detail

renameInputs

public Map<String,String> renameInputs(Map<String,String> inputRenaming,
                                       Map<String,String> inputs)
                                throws JobExecutionException
Description copied from interface: ParameterRenamer
Rename inputs from external to internal names.

Specified by:
renameInputs in interface ParameterRenamer
Parameters:
inputRenaming - a Map from public to private names
inputs - a Map of inputs to rename
Returns:
the renamed inputs
Throws:
JobExecutionException

renameOutputs

public Map<String,String> renameOutputs(Map<String,String> outputRenaming,
                                        Map<String,String> results)
                                 throws JobExecutionException
Description copied from interface: ParameterRenamer
Rename outputs from internal to external names.

Specified by:
renameOutputs in interface ParameterRenamer
Returns:
the renamed outputs
Throws:
JobExecutionException


Copyright © 2006-2008. All Rights Reserved.