Package cdc.impex.api.issues
Enum ImportIssueType
- java.lang.Object
-
- java.lang.Enum<ImportIssueType>
-
- cdc.impex.api.issues.ImportIssueType
-
- All Implemented Interfaces:
Serializable,Comparable<ImportIssueType>
public enum ImportIssueType extends Enum<ImportIssueType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE_SHEETA sheet of the loaded workbook is ignored because there is no associated template.
This is aIssueLevel.INFO.LOAD_SHEETA sheet is being loaded.
This is aIssueLevel.INFO.LOAD_WORKBOOKA workbook is being loaded.
This is aIssueLevel.INFO.LOADED_SHEETA sheet has been loaded.
This is aIssueLevel.INFO.LOADED_WORKBOOKA workbook has been loaded.
This is aIssueLevel.INFO.MISSING_MANDATORY_COLUMNA mandatory column is absent in sheet header.
This is aIssueLevel.ERROR.MISSING_MANDATORY_DATANo data for a mandatory column in a row.
This is aIssueLevel.ERROR.NO_TEMPLATESNo templates were passed, and nothing can be done.
This is aIssueLevel.WARNING.NON_COMPLIANT_DATAData is rejected by the checker.
The severity can be any ofIssueLevel.INFO,IssueLevel.WARNING,IssueLevel.ERROR, orIssueLevel.FATAL.
It depends onColumnTemplate.getCheckFailureLevel().NON_CONVERTIBLE_DATAData can not be converted to expected declared data type.
This is aIssueLevel.ERROR.TOO_MANY_TEMPLATESToo many templates were passed with a XSV file.
This is aIssueLevel.WARNING.UNEXPECTED_DATAA cell contains data and it should not.UNEXPECTED_ERASEA cell contains ERASE pattern and it should not.
This is aIssueLevel.WARNINGorIssueLevel.ERROR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImportIssueTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ImportIssueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOAD_WORKBOOK
public static final ImportIssueType LOAD_WORKBOOK
A workbook is being loaded.
This is aIssueLevel.INFO.
-
LOADED_WORKBOOK
public static final ImportIssueType LOADED_WORKBOOK
A workbook has been loaded.
This is aIssueLevel.INFO.
-
LOAD_SHEET
public static final ImportIssueType LOAD_SHEET
A sheet is being loaded.
This is aIssueLevel.INFO.
-
LOADED_SHEET
public static final ImportIssueType LOADED_SHEET
A sheet has been loaded.
This is aIssueLevel.INFO.
-
IGNORE_SHEET
public static final ImportIssueType IGNORE_SHEET
A sheet of the loaded workbook is ignored because there is no associated template.
This is aIssueLevel.INFO.
-
NO_TEMPLATES
public static final ImportIssueType NO_TEMPLATES
No templates were passed, and nothing can be done.
This is aIssueLevel.WARNING.
-
TOO_MANY_TEMPLATES
public static final ImportIssueType TOO_MANY_TEMPLATES
Too many templates were passed with a XSV file.
This is aIssueLevel.WARNING.
-
UNEXPECTED_ERASE
public static final ImportIssueType UNEXPECTED_ERASE
A cell contains ERASE pattern and it should not.
This is aIssueLevel.WARNINGorIssueLevel.ERROR.ERASE should only be used when action is
ImportAction.UPDATE.
It shall never be used with mandatory columns.
-
UNEXPECTED_DATA
public static final ImportIssueType UNEXPECTED_DATA
A cell contains data and it should not.
-
MISSING_MANDATORY_COLUMN
public static final ImportIssueType MISSING_MANDATORY_COLUMN
A mandatory column is absent in sheet header.
This is aIssueLevel.ERROR.
-
MISSING_MANDATORY_DATA
public static final ImportIssueType MISSING_MANDATORY_DATA
No data for a mandatory column in a row.
This is aIssueLevel.ERROR.
-
NON_CONVERTIBLE_DATA
public static final ImportIssueType NON_CONVERTIBLE_DATA
Data can not be converted to expected declared data type.
This is aIssueLevel.ERROR.
-
NON_COMPLIANT_DATA
public static final ImportIssueType NON_COMPLIANT_DATA
Data is rejected by the checker.
The severity can be any ofIssueLevel.INFO,IssueLevel.WARNING,IssueLevel.ERROR, orIssueLevel.FATAL.
It depends onColumnTemplate.getCheckFailureLevel().
-
-
Method Detail
-
values
public static ImportIssueType[] 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 (ImportIssueType c : ImportIssueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImportIssueType 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 nameNullPointerException- if the argument is null
-
-