fi.iki.hsivonen.xml.checker.table
Class RowGroup

java.lang.Object
  extended by fi.iki.hsivonen.xml.checker.table.RowGroup

final class RowGroup
extends Object

Represents a row group (explicit or implicit) for table integrity checking.

Version:
$Id: RowGroup.java,v 1.7 2006/12/01 12:34:30 hsivonen Exp $
Author:
hsivonen

Field Summary
private  SortedSet<Cell> cellsIfEffect
          The set of cells from previous rows that are still in effect extending downwards.
private  Cell[] cellsOnCurrentRow
          A temporary copy of cellsIfEffect sorted differently.
private  int currentRow
          Keeps track of the current slot row of the insertion point.
private  Cell[] EMPTY_CELL_ARRAY
          Runtime type constant.
private  int insertionPoint
          The column slot of the insertion point.
private  int nextOldCell
          The index of the next uninspected item in cellsOnCurrentRow.
private  Table owner
          The owning table.
private  boolean rowHadCells
          Whether the current row has had cells.
private  String type
          The local name of the element that established this row group or null if this is an implicit row group.
 
Constructor Summary
RowGroup(Table owner, String type)
           
 
Method Summary
 void cell(Cell cell)
           
 void end()
           
 void endRow()
           
private  void findInsertionPoint()
           
 void startRow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_CELL_ARRAY

private final Cell[] EMPTY_CELL_ARRAY
Runtime type constant.


currentRow

private int currentRow
Keeps track of the current slot row of the insertion point.


insertionPoint

private int insertionPoint
The column slot of the insertion point.


nextOldCell

private int nextOldCell
The index of the next uninspected item in cellsOnCurrentRow.


owner

private final Table owner
The owning table.


cellsIfEffect

private final SortedSet<Cell> cellsIfEffect
The set of cells from previous rows that are still in effect extending downwards.


cellsOnCurrentRow

private Cell[] cellsOnCurrentRow
A temporary copy of cellsIfEffect sorted differently.


rowHadCells

private boolean rowHadCells
Whether the current row has had cells.


type

private final String type
The local name of the element that established this row group or null if this is an implicit row group.

Constructor Detail

RowGroup

RowGroup(Table owner,
         String type)
Method Detail

cell

public void cell(Cell cell)
          throws SAXException
Throws:
SAXException

findInsertionPoint

private void findInsertionPoint()

end

public void end()
         throws SAXException
Throws:
SAXException

endRow

public void endRow()
            throws SAXException
Throws:
SAXException

startRow

public void startRow()