olg.csv.bean.getter.impl
Class DefaultGetter

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

public final class DefaultGetter
extends AbstractGetter

Default getter based on extract cell from a row.


Field Summary
private  int rang
          the cell num.
 
Constructor Summary
DefaultGetter(String rang)
          Constructor with cell rank in argument.
 
Method Summary
protected  String doGet(Row line)
          Extracts the target cell value from the given row.
 int getRang()
          Returns the rank of the target cell.
 void setRang(int rang)
          Sets the rank of the target cell.
 
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

rang

private int rang
the cell num.

Constructor Detail

DefaultGetter

public DefaultGetter(String rang)
Constructor with cell rank in argument.

Parameters:
rang - a non negative integer or a string in Sheet cell number format (as C, AB ,... )
Method Detail

getRang

public int getRang()
Returns the rank of the target cell.

Returns:
the number of the cell

setRang

public void setRang(int rang)
Sets the rank of the target cell.

Parameters:
rang - the cell num. Must not be greater or equals 0.

doGet

protected String doGet(Row line)
Extracts the target cell value from the given row.

Specified by:
doGet in class AbstractGetter
Parameters:
line - the row from which get the string.
Returns:
the string.


Copyright © 2014. All Rights Reserved.