olg.csv.bean.getter.impl
Class ConstantGetter
java.lang.Object
olg.csv.bean.getter.AbstractGetter
olg.csv.bean.getter.impl.ConstantGetter
public final class ConstantGetter
- extends AbstractGetter
This getter always returns the given value regardless of the row.
Constructor Summary |
ConstantGetter(String defaultValue)
Constructor with constant value in argument. |
Method Summary |
protected String |
doGet(Row line)
Returns a String built from the given row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantGetter
public ConstantGetter(String defaultValue)
- Constructor with constant value in argument.
- Parameters:
defaultValue
- the constant value to apply
doGet
protected String doGet(Row line)
- Description copied from class:
AbstractGetter
- Returns a String built from the given row.
- Specified by:
doGet
in class AbstractGetter
- Parameters:
line
- the row from which extract the string.
- Returns:
- a String built from the given row
Copyright © 2014. All Rights Reserved.