Class BasicIDARERow
- java.lang.Object
-
- idare.imagenode.Interfaces.DataSetReaders.WorkBook.BasicImplementation.BasicIDARERow
-
-
Field Summary
-
Fields inherited from interface idare.imagenode.Interfaces.DataSetReaders.WorkBook.IDARERow
CREATE_NULL_AS_BLANK, RETURN_BLANK_AS_NULL, RETURN_NULL_AND_BLANK
-
-
Constructor Summary
Constructors Constructor Description BasicIDARERow(BasicIDARESheet parent)Simple constructor providing the parent sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<IDARECell>cellIterator()Obtain an Iterator over theIDARECells of this row.BasicIDARECellcreateCell()Create a Blank Cell at the end of this row.BasicIDARECellcreateCell(int pos)Create a blank cell at a specified position, overwriting any cell existing at the provided position This is the same as the Call createCell(CellType.BLANK,pos)BasicIDARECellcreateCell(IDARECell.CellType type)Create a Cell with a specified type at the end of this row This is the same as a call to createCell(type,getLastCellNum()-1)BasicIDARECellcreateCell(IDARECell.CellType CellType, int pos)Create a Cell of the specified type at the specified position.voidcreateNullCell()Create a Null cell at the end of this row.IDARECellgetCell(int arg0)Get theIDARECellin the specified column from this Row.IDARECellgetCell(int arg0, int arg1)Get theIDARECellin the specified column from this Row, using the specified policy to handle non existing or blank cells.intgetCellIndex(BasicIDARECell cell)Get the position/index of a given CellshortgetLastCellNum()Gets the index of the last cell contained in this row PLUS ONE.!intgetRowNum()Get the position of this row in the enclosingIDARESheet;Iterator<IDARECell>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
BasicIDARERow
public BasicIDARERow(BasicIDARESheet parent)
Simple constructor providing the parent sheet.- Parameters:
parent- TheBasicIDARESheetcontaining this Row.
-
-
Method Detail
-
cellIterator
public Iterator<IDARECell> cellIterator()
Description copied from interface:IDARERowObtain an Iterator over theIDARECells of this row.- Specified by:
cellIteratorin interfaceIDARERow- Returns:
- the iterator starting with the first cell.
-
getCell
public IDARECell getCell(int arg0)
Description copied from interface:IDARERowGet theIDARECellin the specified column from this Row. This is the same as a call to getCell(arg0,IDARERow.RETURN_NULL_AND_BLANK)
-
getCell
public IDARECell getCell(int arg0, int arg1)
Description copied from interface:IDARERowGet theIDARECellin the specified column from this Row, using the specified policy to handle non existing or blank cells.
-
getLastCellNum
public short getLastCellNum()
Description copied from interface:IDARERowGets the index of the last cell contained in this row PLUS ONE.!- Specified by:
getLastCellNumin interfaceIDARERow- Returns:
- the last index of a non null cell in this row
-
getRowNum
public int getRowNum()
Description copied from interface:IDARERowGet the position of this row in the enclosingIDARESheet;- Specified by:
getRowNumin interfaceIDARERow- Returns:
- the position of this row in the enclosing
IDARESheet
-
createNullCell
public void createNullCell()
Create a Null cell at the end of this row.
-
createCell
public BasicIDARECell createCell()
Create a Blank Cell at the end of this row. This is the same as createCell(getLastCellNum()-1)- Returns:
- the created cell.
-
createCell
public BasicIDARECell createCell(IDARECell.CellType type)
Create a Cell with a specified type at the end of this row This is the same as a call to createCell(type,getLastCellNum()-1)- Parameters:
type- the type of the created cell- Returns:
- the created cell
-
createCell
public BasicIDARECell createCell(int pos)
Create a blank cell at a specified position, overwriting any cell existing at the provided position This is the same as the Call createCell(CellType.BLANK,pos)- Parameters:
pos- the 0-based position at which to place the cell.- Returns:
- the created cell
-
createCell
public BasicIDARECell createCell(IDARECell.CellType CellType, int pos)
Create a Cell of the specified type at the specified position. This extends the row accordingly.- Parameters:
CellType- TheIDARECell.CellTypeof the created cellpos- the 0-based position of the cell- Returns:
- the created
BasicIDARECell
-
getCellIndex
public int getCellIndex(BasicIDARECell cell)
Get the position/index of a given Cell- Parameters:
cell- the cell for which the index is requested- Returns:
- the 0-based index of the cell.
-
-