fi.iki.hsivonen.xml.checker.table
Enum Table.State

java.lang.Object
  extended by java.lang.Enum<Table.State>
      extended by fi.iki.hsivonen.xml.checker.table.Table.State
All Implemented Interfaces:
Serializable, Comparable<Table.State>
Enclosing class:
Table

private static enum Table.State
extends Enum<Table.State>

An enumeration for keeping track of the parsing state of a table.


Enum Constant Summary
IN_CELL_IN_IMPLICIT_ROW_GROUP
          A cell inside an implicit row group is open.
IN_CELL_IN_ROW_GROUP
          A cell inside a row inside an explicit row group is open.
IN_COL_IN_COLGROUP
          A column inside a column group is open.
IN_COL_IN_IMPLICIT_GROUP
          A column that is a child of table is open.
IN_COLGROUP
          A column group is open.
IN_IMPLICIT_ROW_GROUP
          The table itself is the currently open element, but an implicit row group been started by previous rows.
IN_ROW_GROUP
          The open element is an explicit row group.
IN_ROW_IN_IMPLICIT_ROW_GROUP
          A row in an implicit row group is open.
IN_ROW_IN_ROW_GROUP
          A row in a an explicit row group is open.
IN_TABLE_AT_POTENTIAL_ROW_GROUP_START
          The table element is the open element and rows have been seen.
IN_TABLE_AT_START
          The table element start has been seen.
IN_TABLE_COLS_SEEN
          The table itself is the currently open element.
 
Method Summary
static Table.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Table.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IN_TABLE_AT_START

public static final Table.State IN_TABLE_AT_START
The table element start has been seen. No child elements have been seen. A start of a column, a column group, a row or a row group or the end of the table is expected.


IN_TABLE_AT_POTENTIAL_ROW_GROUP_START

public static final Table.State IN_TABLE_AT_POTENTIAL_ROW_GROUP_START
The table element is the open element and rows have been seen. A row in an implicit group, a row group or the end of the table is expected.


IN_COLGROUP

public static final Table.State IN_COLGROUP
A column group is open. It can end or a column can start.


IN_COL_IN_COLGROUP

public static final Table.State IN_COL_IN_COLGROUP
A column inside a column group is open. It can end.


IN_COL_IN_IMPLICIT_GROUP

public static final Table.State IN_COL_IN_IMPLICIT_GROUP
A column that is a child of table is open. It can end.


IN_ROW_GROUP

public static final Table.State IN_ROW_GROUP
The open element is an explicit row group. It may end or a row may start.


IN_ROW_IN_ROW_GROUP

public static final Table.State IN_ROW_IN_ROW_GROUP
A row in a an explicit row group is open. It may end or a cell may start.


IN_CELL_IN_ROW_GROUP

public static final Table.State IN_CELL_IN_ROW_GROUP
A cell inside a row inside an explicit row group is open. It can end.


IN_ROW_IN_IMPLICIT_ROW_GROUP

public static final Table.State IN_ROW_IN_IMPLICIT_ROW_GROUP
A row in an implicit row group is open. It may end or a cell may start.


IN_IMPLICIT_ROW_GROUP

public static final Table.State IN_IMPLICIT_ROW_GROUP
The table itself is the currently open element, but an implicit row group been started by previous rows. A row may start, an explicit row group may start or the table may end.


IN_CELL_IN_IMPLICIT_ROW_GROUP

public static final Table.State IN_CELL_IN_IMPLICIT_ROW_GROUP
A cell inside an implicit row group is open. It can close.


IN_TABLE_COLS_SEEN

public static final Table.State IN_TABLE_COLS_SEEN
The table itself is the currently open element. Columns and/or column groups have been seen but rows or row groups have not been seen yet. A column, a column group, a row or a row group can start. The table can end.

Method Detail

values

public static final Table.State[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Table.State c : Table.State.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Table.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name