olg.csv.bean.getter.impl
Class ConcateGetter

Package class diagram package ConcateGetter
java.lang.Object
  extended by olg.csv.bean.getter.AbstractGetter
      extended by olg.csv.bean.getter.impl.ConcateGetter

public final class ConcateGetter
extends AbstractGetter

This getter builds a String from a row by assembly Strings which are producted by a list of getters.


Field Summary
private  List<AbstractGetter> getters
          The Getters which product the Strings to assemble.
 
Constructor Summary
ConcateGetter(List<AbstractGetter> getters, String defaultValue)
           
 
Method Summary
protected  String doGet(Row line)
          Returns a String built from the given row.
 List<AbstractGetter> getGetters()
          Returns The list of Getters.
 void setGetters(List<AbstractGetter> getters)
          Sets the Getters list.
 
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
 

Field Detail

getters

private List<AbstractGetter> getters
The Getters which product the Strings to assemble.

Constructor Detail

ConcateGetter

public ConcateGetter(List<AbstractGetter> getters,
                     String defaultValue)
Parameters:
getters - Getters List that product Strings. Must not be null or empty.
defaultValue - the value to return when assembly products an empty or NullPointerException String
Method Detail

getGetters

public List<AbstractGetter> getGetters()
Returns The list of Getters.

Returns:
the getters.

setGetters

public void setGetters(List<AbstractGetter> getters)
Sets the Getters list.

Parameters:
getters - the getter list.

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.