org.nuiton.util.csv
Class Common.NullableParserFormatter<O>

java.lang.Object
  extended by org.nuiton.util.csv.Common.NullableParserFormatter<O>
All Implemented Interfaces:
ValueFormatter<O>, ValueParser<O>, ValueParserFormatter<O>
Direct Known Subclasses:
Common.BooleanParserFormatter, Common.CharacterParserFormatter, Common.DoubleParserFormatter, Common.FloatParserFormatter, Common.IntegerParserFormatter, Common.LongParserFormatter
Enclosing class:
Common

public abstract static class Common.NullableParserFormatter<O>
extends Object
implements ValueParserFormatter<O>


Field Summary
protected  O defaultValue
           
protected  boolean nullAllowed
           
 
Constructor Summary
protected Common.NullableParserFormatter(O defaultValue, boolean nullAllowed)
           
 
Method Summary
 O parse(String value)
           
protected abstract  O parseNoneEmptyValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuiton.util.csv.ValueFormatter
format
 

Field Detail

defaultValue

protected O defaultValue

nullAllowed

protected boolean nullAllowed
Constructor Detail

Common.NullableParserFormatter

protected Common.NullableParserFormatter(O defaultValue,
                                         boolean nullAllowed)
Method Detail

parseNoneEmptyValue

protected abstract O parseNoneEmptyValue(String value)

parse

public O parse(String value)
        throws ParseException
Specified by:
parse in interface ValueParser<O>
Throws:
ParseException


Copyright © 2011 CodeLutin. All Rights Reserved.