Enum ImportIssueType

    • Enum Constant Detail

      • LOAD_WORKBOOK

        public static final ImportIssueType LOAD_WORKBOOK
        A workbook is being loaded.
        This is a IssueLevel.INFO.
      • LOADED_WORKBOOK

        public static final ImportIssueType LOADED_WORKBOOK
        A workbook has been loaded.
        This is a IssueLevel.INFO.
      • LOAD_SHEET

        public static final ImportIssueType LOAD_SHEET
        A sheet is being loaded.
        This is a IssueLevel.INFO.
      • LOADED_SHEET

        public static final ImportIssueType LOADED_SHEET
        A sheet has been loaded.
        This is a IssueLevel.INFO.
      • IGNORED_SHEET

        public static final ImportIssueType IGNORED_SHEET
        A sheet of the loaded workbook is ignored because there is no associated template.
        This is a IssueLevel.INFO.
      • NO_TEMPLATES

        public static final ImportIssueType NO_TEMPLATES
        No templates were passed, and nothing can be done.
        This is a IssueLevel.WARNING.
      • TOO_MANY_TEMPLATES

        public static final ImportIssueType TOO_MANY_TEMPLATES
        Too many templates were passed with a XSV file.
        This is a IssueLevel.WARNING.
      • UNEXPECTED_ERASE

        public static final ImportIssueType UNEXPECTED_ERASE
        A cell contains ERASE pattern and it should not.
        This is a IssueLevel.WARNING or IssueLevel.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 Usage.MANDATORY column is absent in sheet header.
        This is a IssueLevel.ERROR.
      • MISSING_MANDATORY_ON_CREATE_COLUMN

        public static final ImportIssueType MISSING_MANDATORY_ON_CREATE_COLUMN
        A Usage.MANDATORY_ON_CREATE column is absent.
        This disables creation.
        This is a IssueLevel.INFO.
      • MISSING_OPTIONAL_COLUMN

        public static final ImportIssueType MISSING_OPTIONAL_COLUMN
        A Usage.OPTIONAL column is absent.
        This disables setting or modifying it.
        This is a IssueLevel.INFO.
      • IGNORED_COLUMN

        public static final ImportIssueType IGNORED_COLUMN
        A column that is not declared in template has been found.
        It will be ignored.
        This is a IssueLevel.INFO or IssueLevel.WARNING.
      • MISSING_MANDATORY_DATA

        public static final ImportIssueType MISSING_MANDATORY_DATA
        No data for a mandatory column in a row.
        This is a IssueLevel.ERROR.
      • NON_CONVERTIBLE_DATA

        public static final ImportIssueType NON_CONVERTIBLE_DATA
        Data can not be converted to expected declared data type.
        This is a IssueLevel.ERROR.
      • NON_COMPLIANT_DATA

        public static final ImportIssueType NON_COMPLIANT_DATA
        Data is rejected by the checker.
        The severity can be any of IssueLevel.INFO, IssueLevel.WARNING, IssueLevel.ERROR, or IssueLevel.FATAL.
        It depends on ColumnTemplate.getCheckFailureLevel().
      • APP_FAILURE

        public static final ImportIssueType APP_FAILURE
        The application failed to execute the required action, for reasons such as: The severity can be any of IssueLevel.WARNING, IssueLevel.ERROR, or IssueLevel.FATAL.
      • APP_INFO

        public static final ImportIssueType APP_INFO
        The application sends an informative message.
        This should be a IssueLevel.INFO.
    • 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 name
        NullPointerException - if the argument is null