Package cdc.impex.imports
Enum ImportIssueType
- java.lang.Object
-
- java.lang.Enum<ImportIssueType>
-
- cdc.impex.imports.ImportIssueType
-
- All Implemented Interfaces:
cdc.issues.IssueSeverityItem,Serializable,Comparable<ImportIssueType>
public enum ImportIssueType extends Enum<ImportIssueType> implements cdc.issues.IssueSeverityItem
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APP_FAILUREThe application failed to execute the required action, for reasons such as: TheImportAction.CREATEwould have caused a duplication.APP_INFOThe application sends an informative message.IGNORED_COLUMNA column that is not declared in template has been found.
It will be ignored.IGNORED_SHEETA sheet of the loaded workbook is ignored because there is no associated template.IMPORT_CANCELLEDThe import was cancelled.LOAD_SHEETA sheet is being loaded.LOAD_WORKBOOKA workbook is being loaded.LOADED_SHEETA sheet has been loaded.LOADED_WORKBOOKA workbook has been loaded.MISSING_ACTION_COLUMNThe action column is absent.
This disables all actions.MISSING_MANDATORY_COLUMNAn always mandatory column is absent in sheet header.MISSING_MANDATORY_DATANo data for a mandatory column in a row.MISSING_OPTIONAL_COLUMNAn optional column is absent.MISSING_PARTIALLY_MANDATORY_COLUMNA partially mandatory column is absent.NO_TEMPLATESNo templates were passed, and nothing can be done.NON_COMPLIANT_DATAData is rejected by the checker.
The severity can be any ofIssueSeverity, as set byColumnTemplate.getCheckFailureSeverity().NON_CONVERTIBLE_DATAData can not be converted to expected declared data type.TOO_MANY_TEMPLATESToo many templates were passed with a XSV file.UNEXPECTED_DATAA cell contains data and it should not.UNEXPECTED_ERASEA cell contains ERASE pattern and it should not.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description cdc.issues.IssueSeveritygetSeverity()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.
-
LOADED_WORKBOOK
public static final ImportIssueType LOADED_WORKBOOK
A workbook has been loaded.
-
LOAD_SHEET
public static final ImportIssueType LOAD_SHEET
A sheet is being loaded.
-
LOADED_SHEET
public static final ImportIssueType LOADED_SHEET
A sheet has been loaded.
-
IGNORED_SHEET
public static final ImportIssueType IGNORED_SHEET
A sheet of the loaded workbook is ignored because there is no associated template.
-
NO_TEMPLATES
public static final ImportIssueType NO_TEMPLATES
No templates were passed, and nothing can be done.
-
TOO_MANY_TEMPLATES
public static final ImportIssueType TOO_MANY_TEMPLATES
Too many templates were passed with a XSV file.
-
UNEXPECTED_ERASE
public static final ImportIssueType UNEXPECTED_ERASE
A cell contains ERASE pattern and it should not.
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
An always mandatory column is absent in sheet header.
-
MISSING_PARTIALLY_MANDATORY_COLUMN
public static final ImportIssueType MISSING_PARTIALLY_MANDATORY_COLUMN
A partially mandatory column is absent.
-
MISSING_OPTIONAL_COLUMN
public static final ImportIssueType MISSING_OPTIONAL_COLUMN
An optional column is absent.
-
MISSING_ACTION_COLUMN
public static final ImportIssueType MISSING_ACTION_COLUMN
The action column is absent.
This disables all actions.
-
IGNORED_COLUMN
public static final ImportIssueType IGNORED_COLUMN
A column that is not declared in template has been found.
It will be ignored.
-
MISSING_MANDATORY_DATA
public static final ImportIssueType MISSING_MANDATORY_DATA
No data for a mandatory column in a row.
-
NON_CONVERTIBLE_DATA
public static final ImportIssueType NON_CONVERTIBLE_DATA
Data can not be converted to expected declared data type.
-
NON_COMPLIANT_DATA
public static final ImportIssueType NON_COMPLIANT_DATA
Data is rejected by the checker.
The severity can be any ofIssueSeverity, as set byColumnTemplate.getCheckFailureSeverity().
-
IMPORT_CANCELLED
public static final ImportIssueType IMPORT_CANCELLED
The import was cancelled.
-
APP_FAILURE
public static final ImportIssueType APP_FAILURE
The application failed to execute the required action, for reasons such as:- The
ImportAction.CREATEwould have caused a duplication. - The
ImportAction.UPDATEorImportAction.DELETEreferenced data does not exist. - The user does not have sufficient privileges.
- Any application error.
- The
-
APP_INFO
public static final ImportIssueType APP_INFO
The application sends an informative message.
-
-
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
-
getSeverity
public cdc.issues.IssueSeverity getSeverity()
- Specified by:
getSeverityin interfacecdc.issues.IssueSeverityItem
-
-