com.beust.jcommander.converters
Class BaseConverter<T>

java.lang.Object
  extended by com.beust.jcommander.converters.BaseConverter<T>
All Implemented Interfaces:
IStringConverter<T>
Direct Known Subclasses:
BigDecimalConverter, BooleanConverter, DoubleConverter, FloatConverter, IntegerConverter, ISO8601DateConverter, LongConverter

public abstract class BaseConverter<T>
extends Object
implements IStringConverter<T>

Base class for converters that stores the name of the option.

Author:
cbeust

Constructor Summary
BaseConverter(String optionName)
           
 
Method Summary
protected  String getErrorString(String value, String to)
           
 String getOptionName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.beust.jcommander.IStringConverter
convert
 

Constructor Detail

BaseConverter

public BaseConverter(String optionName)
Method Detail

getOptionName

public String getOptionName()

getErrorString

protected String getErrorString(String value,
                                String to)


Copyright © 2012. All Rights Reserved.