Package cdc.impex.imports
Enum Class ImportIssueType
- All Implemented Interfaces:
cdc.issues.IssueSeverityItem,Serializable,Comparable<ImportIssueType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe application failed to execute the required action, for reasons such as: TheImportAction.CREATEwould have caused a duplication.The application sends an informative message.A column that is not declared in template has been found.
It will be ignored.A sheet of the loaded workbook is ignored because there is no associated template.The import was cancelled.A sheet is being loaded.A workbook is being loaded.A sheet has been loaded.A workbook has been loaded.The action column is absent.
This disables all actions when default action is undefined or isImportAction.IGNORE.An always mandatory column is absent in sheet header.No data for a mandatory column in a row.An optional column is absent.A partially mandatory column is absent.No templates were passed, and nothing can be done.Data is rejected by the checker.
The severity can be any ofIssueSeverity, as set byColumnTemplate.getCheckFailureSeverity().Data can not be converted to expected declared data type.Too many templates were passed with a XSV file.A cell contains data and it should not.A cell contains ERASE pattern and it should not. -
Method Summary
Modifier and TypeMethodDescriptioncdc.issues.IssueSeveritystatic ImportIssueTypeReturns the enum constant of this class with the specified name.static ImportIssueType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOAD_WORKBOOK
A workbook is being loaded. -
LOADED_WORKBOOK
A workbook has been loaded. -
LOAD_SHEET
A sheet is being loaded. -
LOADED_SHEET
A sheet has been loaded. -
IGNORED_SHEET
A sheet of the loaded workbook is ignored because there is no associated template. -
NO_TEMPLATES
No templates were passed, and nothing can be done. -
TOO_MANY_TEMPLATES
Too many templates were passed with a XSV file. -
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
A cell contains data and it should not. -
MISSING_MANDATORY_COLUMN
An always mandatory column is absent in sheet header. -
MISSING_PARTIALLY_MANDATORY_COLUMN
A partially mandatory column is absent. -
MISSING_OPTIONAL_COLUMN
An optional column is absent. -
MISSING_ACTION_COLUMN
The action column is absent.
This disables all actions when default action is undefined or isImportAction.IGNORE. -
IGNORED_COLUMN
A column that is not declared in template has been found.
It will be ignored. -
MISSING_MANDATORY_DATA
No data for a mandatory column in a row. -
NON_CONVERTIBLE_DATA
Data can not be converted to expected declared data type. -
NON_COMPLIANT_DATA
Data is rejected by the checker.
The severity can be any ofIssueSeverity, as set byColumnTemplate.getCheckFailureSeverity(). -
IMPORT_CANCELLED
The import was cancelled. -
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
The application sends an informative message.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getSeverity
public cdc.issues.IssueSeverity getSeverity()- Specified by:
getSeverityin interfacecdc.issues.IssueSeverityItem
-