org.springframework.batch.item.excel.support.rowset
Class DefaultRowSet

java.lang.Object
  extended by org.springframework.batch.item.excel.support.rowset.DefaultRowSet
All Implemented Interfaces:
RowSet

public class DefaultRowSet
extends Object
implements RowSet

Default implementation of the RowSet interface.

Since:
0.5.0
Author:
Marten Deinum
See Also:
DefaultRowSetFactory

Method Summary
 String getColumnValue(int idx)
          Retrieves the value of the indicated column in the current row as a String object.
 String[] getCurrentRow()
          Return the current row as a String[].
 int getCurrentRowIndex()
          Returns the current row number
 RowSetMetaData getMetaData()
          Retrieves the meta data (name of the sheet, number of columns, names) of this row set.
 Properties getProperties()
          Construct name-value pairs from the column names and string values.
 boolean isRowEmpty(String[] row)
           
 boolean next()
          Move to the next row in the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMetaData

public RowSetMetaData getMetaData()
Description copied from interface: RowSet
Retrieves the meta data (name of the sheet, number of columns, names) of this row set.

Specified by:
getMetaData in interface RowSet
Returns:
a corresponding RowSetMetaData instance.

next

public boolean next()
Description copied from interface: RowSet
Move to the next row in the document.

Specified by:
next in interface RowSet
Returns:
true if the row is valid, false if there are no more rows

isRowEmpty

public boolean isRowEmpty(String[] row)

getCurrentRowIndex

public int getCurrentRowIndex()
Description copied from interface: RowSet
Returns the current row number

Specified by:
getCurrentRowIndex in interface RowSet
Returns:
the current row number

getCurrentRow

public String[] getCurrentRow()
Description copied from interface: RowSet
Return the current row as a String[].

Specified by:
getCurrentRow in interface RowSet
Returns:
the row as a String[]

getColumnValue

public String getColumnValue(int idx)
Description copied from interface: RowSet
Retrieves the value of the indicated column in the current row as a String object.

Specified by:
getColumnValue in interface RowSet
Parameters:
idx - the column index, 0 based
Returns:
a String objeect respresenting the column value.

getProperties

public Properties getProperties()
Description copied from interface: RowSet
Construct name-value pairs from the column names and string values. Null values are omitted.

Specified by:
getProperties in interface RowSet
Returns:
some properties representing the row set.


Copyright © 2017. All rights reserved.