Enum CALSAndHTMLTableLayoutProblem
- java.lang.Object
-
- java.lang.Enum<CALSAndHTMLTableLayoutProblem>
-
- ro.sync.ecss.extensions.commons.table.support.errorscanner.CALSAndHTMLTableLayoutProblem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CALSAndHTMLTableLayoutProblem>
,TableLayoutProblem
@API(type=INTERNAL, src=PUBLIC) public enum CALSAndHTMLTableLayoutProblem extends java.lang.Enum<CALSAndHTMLTableLayoutProblem> implements TableLayoutProblem
CALS table layout problem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ro.sync.ecss.extensions.commons.table.support.errorscanner.TableLayoutProblem
TableLayoutProblem.Severity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTE_VALUE_NOT_INTEGER
A specific attribute must have a numeric value en: "The {0} attribute must have a numeric value.CELL_OVERFLOW_SPECIFIED_COLUMN_COUNT
Table cell overflows the specified columns countCELL_OVERLAPPING
A cell was already occupied en: "The cell[{0}][{1}] is already occupied." {0} is the row number {1} is the column numberCELL_OVERLAPS_ONE_OR_MORE_PREVIOUS_CELLS
Cells overlapping error(as generals as it can be)CELL_OVERLAPS_PREVIOUS_CELL
This cell overlaps previous cell.COLS_DIFFERENT_THAN_COLUMNS
There is a difference between the cols value and the number of actual columns en: "The number of table columns determined from the table structure ({0}) is different than the value of the {1} attribute: ({2})." {0} is the table columns count {1} the name of the (cols) attribute {2} the value of the (cols) attributeCOLSPECS_DIFFERENT_THAN_COLUMNS
There is a difference between the number of colspecs and the number of actual columns en: "The number of table columns determined from the table structure ({0}) is different than the number of colspecs ({1})." {0} is the table columns count {1} is the colspecs numberCOLUMN_NAME_INCORRECT
The column name from the namest or nameend attribute value is not found in column specifications en: "The column name ({0}) from the {1} attribute value is not found in column specifications." {0} the column name specified in the table {2} the name of the attribute that specifies the wrong column nameCOLUMN_NUMBER_IS_INCORRECT
The columns should be assigned consecutive numbersCOLUMN_NUMBERING_SHOULD_BEGIN_FROM_ONE
Column numbering should begin from 1.COLUMN_WIDTH_NO_MEASURING_UNITS_VALUE_INCORRECT
The column width value is not valid according to the specification.COLUMN_WIDTH_VALUE_INCORRECT
The column width value is not valid according to the specification.DUPLICATE_COLSPEC_NAME
en: Duplicate column name {'0'} {0} - the name of the columnDUPLICATE_COLSPEC_NUMBER
Duplicate colspec's colnum.NAMEST_LESS_THAN_NAMEEND
The column index determined from namest attribute value is less than the column index determined from nameend.ROW_CELL_COUNT_OVERFLOW
The number of cells in the row overflows the number of table columns en: "The number of cells in the row ({0}) is greater than the value ({1}) of the table {2} attribute." {0} is the row cells count {1} the value of the table attribute that counts the columns number (cols) {2} the name of the table attribute that counts the columns number (cols)ROW_CELL_COUNT_UNDERFLOW
The number of cells in the row is less than the number of table columns en: "The number of cells in the row ({0}) is less than the value ({1}) of the table {2} attribute." {0} is the row cells count {1} the value of the table attribute that counts the columns number (cols) {2} the name of the table attribute that counts the columns number (cols)ROW_HAS_COLNAME_AND_NAMEST_OR_NAMEEND
Column name (colname) attribute must not be present when column name start (namest) or column name end (nameend) are specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
TableLayoutProblem.Severity
getSeverity()
static CALSAndHTMLTableLayoutProblem
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CALSAndHTMLTableLayoutProblem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTRIBUTE_VALUE_NOT_INTEGER
public static final CALSAndHTMLTableLayoutProblem ATTRIBUTE_VALUE_NOT_INTEGER
A specific attribute must have a numeric value en: "The {0} attribute must have a numeric value. The current value is: {1}." {0} is the attribute name {1} is the attribute value
-
CELL_OVERLAPPING
public static final CALSAndHTMLTableLayoutProblem CELL_OVERLAPPING
A cell was already occupied en: "The cell[{0}][{1}] is already occupied." {0} is the row number {1} is the column number
-
NAMEST_LESS_THAN_NAMEEND
public static final CALSAndHTMLTableLayoutProblem NAMEST_LESS_THAN_NAMEEND
The column index determined from namest attribute value is less than the column index determined from nameend. en: "The column index determined from namest ({0}) attribute value is greater than the column index determined from nameend ({1})." {0} the namest attribute value {1} the nameend attribute value
-
COLSPECS_DIFFERENT_THAN_COLUMNS
public static final CALSAndHTMLTableLayoutProblem COLSPECS_DIFFERENT_THAN_COLUMNS
There is a difference between the number of colspecs and the number of actual columns en: "The number of table columns determined from the table structure ({0}) is different than the number of colspecs ({1})." {0} is the table columns count {1} is the colspecs number
-
COLS_DIFFERENT_THAN_COLUMNS
public static final CALSAndHTMLTableLayoutProblem COLS_DIFFERENT_THAN_COLUMNS
There is a difference between the cols value and the number of actual columns en: "The number of table columns determined from the table structure ({0}) is different than the value of the {1} attribute: ({2})." {0} is the table columns count {1} the name of the (cols) attribute {2} the value of the (cols) attribute
-
ROW_CELL_COUNT_OVERFLOW
public static final CALSAndHTMLTableLayoutProblem ROW_CELL_COUNT_OVERFLOW
The number of cells in the row overflows the number of table columns en: "The number of cells in the row ({0}) is greater than the value ({1}) of the table {2} attribute." {0} is the row cells count {1} the value of the table attribute that counts the columns number (cols) {2} the name of the table attribute that counts the columns number (cols)
-
ROW_CELL_COUNT_UNDERFLOW
public static final CALSAndHTMLTableLayoutProblem ROW_CELL_COUNT_UNDERFLOW
The number of cells in the row is less than the number of table columns en: "The number of cells in the row ({0}) is less than the value ({1}) of the table {2} attribute." {0} is the row cells count {1} the value of the table attribute that counts the columns number (cols) {2} the name of the table attribute that counts the columns number (cols)
-
COLUMN_NAME_INCORRECT
public static final CALSAndHTMLTableLayoutProblem COLUMN_NAME_INCORRECT
The column name from the namest or nameend attribute value is not found in column specifications en: "The column name ({0}) from the {1} attribute value is not found in column specifications." {0} the column name specified in the table {2} the name of the attribute that specifies the wrong column name
-
COLUMN_WIDTH_VALUE_INCORRECT
public static final CALSAndHTMLTableLayoutProblem COLUMN_WIDTH_VALUE_INCORRECT
The column width value is not valid according to the specification. en: "The column width ({0}) should be a mixture of proportional or measuring unit numbers." {0} the column name specified in the table
-
COLUMN_WIDTH_NO_MEASURING_UNITS_VALUE_INCORRECT
public static final CALSAndHTMLTableLayoutProblem COLUMN_WIDTH_NO_MEASURING_UNITS_VALUE_INCORRECT
The column width value is not valid according to the specification. en: "The column width ({0}) must not contain measuring unit numbers." {0} the column name specified in the table
-
CELL_OVERLAPS_PREVIOUS_CELL
public static final CALSAndHTMLTableLayoutProblem CELL_OVERLAPS_PREVIOUS_CELL
This cell overlaps previous cell.
-
DUPLICATE_COLSPEC_NAME
public static final CALSAndHTMLTableLayoutProblem DUPLICATE_COLSPEC_NAME
en: Duplicate column name {'0'} {0} - the name of the column
-
COLUMN_NUMBERING_SHOULD_BEGIN_FROM_ONE
public static final CALSAndHTMLTableLayoutProblem COLUMN_NUMBERING_SHOULD_BEGIN_FROM_ONE
Column numbering should begin from 1.
-
CELL_OVERFLOW_SPECIFIED_COLUMN_COUNT
public static final CALSAndHTMLTableLayoutProblem CELL_OVERFLOW_SPECIFIED_COLUMN_COUNT
Table cell overflows the specified columns count
-
COLUMN_NUMBER_IS_INCORRECT
public static final CALSAndHTMLTableLayoutProblem COLUMN_NUMBER_IS_INCORRECT
The columns should be assigned consecutive numbers
-
DUPLICATE_COLSPEC_NUMBER
public static final CALSAndHTMLTableLayoutProblem DUPLICATE_COLSPEC_NUMBER
Duplicate colspec's colnum.
-
CELL_OVERLAPS_ONE_OR_MORE_PREVIOUS_CELLS
public static final CALSAndHTMLTableLayoutProblem CELL_OVERLAPS_ONE_OR_MORE_PREVIOUS_CELLS
Cells overlapping error(as generals as it can be)
-
ROW_HAS_COLNAME_AND_NAMEST_OR_NAMEEND
public static final CALSAndHTMLTableLayoutProblem ROW_HAS_COLNAME_AND_NAMEST_OR_NAMEEND
Column name (colname) attribute must not be present when column name start (namest) or column name end (nameend) are specified.
-
-
Method Detail
-
values
public static CALSAndHTMLTableLayoutProblem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CALSAndHTMLTableLayoutProblem c : CALSAndHTMLTableLayoutProblem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CALSAndHTMLTableLayoutProblem valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interfaceTableLayoutProblem
- Returns:
- Returns the problem message to be presented to the user.
- See Also:
TableLayoutProblem.getMessage()
-
getSeverity
public TableLayoutProblem.Severity getSeverity()
- Specified by:
getSeverity
in interfaceTableLayoutProblem
- Returns:
- Returns the problem severity, one of
TableLayoutProblem.Severity
constants. - See Also:
TableLayoutProblem.getSeverity()
-
-