olg.csv.bean.getter.impl
Class ConcateGetter
java.lang.Object
olg.csv.bean.getter.AbstractGetter
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getters
private List<AbstractGetter> getters
- The Getters which product the Strings to assemble.
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
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.