uk.ac.ncl.cs.instantsoap.commandlineprocessor.parameterRenaming
Interface ParameterRenamer

All Known Implementing Classes:
ParameterRenamerImpl

public interface ParameterRenamer

A strategy for renaming results.

internal parameters start with #. These should not be present in either inputs or outputs.

Author:
Cheng-Yang(Louis) Tang, Matthew Pocock

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.
 

Method Detail

renameInputs

Map<String,String> renameInputs(Map<String,String> inputRenaming,
                                Map<String,String> inputs)
                                throws JobExecutionException
Rename inputs from external to internal names.

Parameters:
inputRenaming - a Map from public to private names
inputs - a Map of inputs to rename
Returns:
the renamed inputs
Throws:
JobExecutionException

renameOutputs

Map<String,String> renameOutputs(Map<String,String> outputRenaming,
                                 Map<String,String> results)
                                 throws JobExecutionException
Rename outputs from internal to external names.

Parameters:
outputRenameing - a Map from private to public names
outputs - a Map of outputs to rename
Returns:
the renamed outputs
Throws:
JobExecutionException


Copyright © 2006-2008. All Rights Reserved.