Enum Class ImportIssueType

java.lang.Object
java.lang.Enum<ImportIssueType>
cdc.impex.imports.ImportIssueType
All Implemented Interfaces:
cdc.issues.IssueSeverityItem, Serializable, Comparable<ImportIssueType>, Constable

public enum ImportIssueType extends Enum<ImportIssueType> implements cdc.issues.IssueSeverityItem
  • Enum Constant Details

    • 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 when default action is undefined or is ImportAction.IGNORE.
    • 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 of IssueSeverity, as set by ColumnTemplate.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:
    • APP_INFO

      public static final ImportIssueType APP_INFO
      The application sends an informative message.
  • Method Details

    • values

      public static ImportIssueType[] 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

      public static ImportIssueType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSeverity

      public cdc.issues.IssueSeverity getSeverity()
      Specified by:
      getSeverity in interface cdc.issues.IssueSeverityItem