pl.edu.agh.cast.rawdata.stat
Class BrokenRowInfo

java.lang.Object
  extended by pl.edu.agh.cast.rawdata.stat.BrokenRowInfo

public class BrokenRowInfo
extends Object

Contains information about error in specified DataRow object.

Author:
AGH CAST Team

Constructor Summary
BrokenRowInfo(DataRow sourceRow)
          Constructor without statistics.
 
Method Summary
 void addBrokenCellInfo(int columnIndex, ErrorInfo error)
          Creates and adds a new BrokenCellInfo object to broken cells list.
 boolean canBeConverted()
          Checks if row can be converted.
 List<BrokenCellInfo> getBrokenCells()
           
 DataRow getSourceRow()
           
 boolean isRowError()
          Checks if whole row is broken.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrokenRowInfo

public BrokenRowInfo(DataRow sourceRow)
Constructor without statistics.

Parameters:
sourceRow - source row attached to broken row info object
Method Detail

addBrokenCellInfo

public void addBrokenCellInfo(int columnIndex,
                              ErrorInfo error)
Creates and adds a new BrokenCellInfo object to broken cells list.

Parameters:
columnIndex - cell index in source row, if error concerns whole row, columnIndex is equal to BrokenCellInfo.WHOLE_ROW_BROKEN constant
error - error information which occurs in specified column

canBeConverted

public boolean canBeConverted()
Checks if row can be converted. If BrokenRowInfo instance doesn't have error cells returns true.

Returns:
boolean value if source row can be converted

isRowError

public boolean isRowError()
Checks if whole row is broken.

Returns:
true if error pertains to whole row, false otherwise

getBrokenCells

public List<BrokenCellInfo> getBrokenCells()

getSourceRow

public DataRow getSourceRow()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.