public enum TableStatus extends Enum<TableStatus>
TableStatus
provides the status of the table, e.g. whether it has
begin printing the header, whether it has continued to print a row or whether
it has printed the tail. The TableStatus
is required by a
TablePrinter
(TableBuilder
) to determine whether to do
additional table decoration for a print operation or to fail that operation
as of an illegal state exception. As far as possible an illegal state
exception is to be tried to be prevented by decorating the table
automatically by an operation as of the current TableStatus
.Enum Constant and Description |
---|
HEADER_BEGIN
The header's top line has been printed
|
HEADER_CONTINUE
A header columns line has been printed.
|
HEADER_END
The header's bottom line has been printed
|
NONE
Nothing as been printed yet.
|
ROW_BEGIN
A row's top line has been printed
|
ROW_CONTINUE
A row columns line has been printed.
|
ROW_END
The row's bottom line has been printed, usually when joining the table
with another table.
|
TAIL |
Modifier and Type | Method and Description |
---|---|
static TableStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableStatus NONE
public static final TableStatus HEADER_BEGIN
public static final TableStatus HEADER_CONTINUE
public static final TableStatus HEADER_END
public static final TableStatus ROW_BEGIN
public static final TableStatus ROW_CONTINUE
public static final TableStatus ROW_END
public static final TableStatus TAIL
public static TableStatus[] values()
for (TableStatus c : TableStatus.values()) System.out.println(c);
public static TableStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.