|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.parser.NullIfExceptionMapper
public class NullIfExceptionMapper
A mapper that returns null if there is an exception when parsing the input data. The actual mapping is delegated to a parent mapper.
Field Summary | |
---|---|
private Mapper |
parent
|
Constructor Summary | |
---|---|
NullIfExceptionMapper(Mapper parent)
Create a new CropStringMapper. |
Method Summary | |
---|---|
Float |
getFloat(FlatFileParser.Data data)
Get the value for the line of data as a float. |
Integer |
getInt(FlatFileParser.Data data)
Get the value for the line of data as an integer. |
String |
getValue(FlatFileParser.Data data)
Get the value for the line of data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Mapper parent
Constructor Detail |
---|
public NullIfExceptionMapper(Mapper parent)
parent
- The parent mapper that does the actual mappingMethod Detail |
---|
public String getValue(FlatFileParser.Data data)
Mapper
getValue
in interface Mapper
data
- The line of data
public Integer getInt(FlatFileParser.Data data)
Mapper
getInt
in interface Mapper
data
- The line of data
public Float getFloat(FlatFileParser.Data data)
Mapper
getFloat
in interface Mapper
data
- The line of data
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |