org.lsst.ccs.shell
Interface InputConverter


public interface InputConverter

This interface is used by the Shell to support new argument types. It converts string to an object of given class.

Author:
ASG

Method Summary
 Object convertInput(String original, Class toClass)
          String-to-someClass conversion method May throw any exception if string is considered invalid for given class; must do nothing but return null if doesn't recognize the toClass.
 

Method Detail

convertInput

Object convertInput(String original,
                    Class toClass)
                    throws Exception
String-to-someClass conversion method May throw any exception if string is considered invalid for given class; must do nothing but return null if doesn't recognize the toClass.

Parameters:
original - String to be converted
toClass - Class to be converted to
Returns:
Object of the class toClass or null, if don't know how to convert to given class
Throws:
Exception
See Also:
asg.cliche.Shell


Copyright © 2013 LSST. All Rights Reserved.