olg.csv.bean.getter.impl
Class ConstantGetter

Package class diagram package ConstantGetter
java.lang.Object
  extended by olg.csv.bean.getter.AbstractGetter
      extended by 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 olg.csv.bean.getter.AbstractGetter
get, getConcate, getConstant, getDefault, getDefaultValue, getFilter, setDefaultValue, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantGetter

public ConstantGetter(String defaultValue)
Constructor with constant value in argument.

Parameters:
defaultValue - the constant value to apply
Method Detail

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.