be.ugent.twijug.jclops
Interface ArgumentParser<T>


public interface ArgumentParser<T>

Common interface for all classes that can be used to parse arguments of type T. A class implementing this interface can be registered with a command line manager using CLManager.registerArgumentParser(be.ugent.twijug.jclops.ArgumentParser, java.lang.Class) which will enable the use of type T as a parameter for an option setter.


Method Summary
 T parseObject(java.lang.String string)
          Converts a string to an object of type T.
 

Method Detail

parseObject

T parseObject(java.lang.String string)
              throws CLArgumentException
Converts a string to an object of type T.

Throws:
CLArgumentException - if the string does not correctly represent an object of the required type.