Enum ServiceType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ServiceType>

    public enum ServiceType
    extends java.lang.Enum<ServiceType>
    Defines the possible service types.
    Since:
    2.3.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CSV_EXPORT
      Specifies the service type used to export data to a CSV file.
      CSV_IMPORT
      Specifies the service type used to import data from a CSV file.
      SPREADSHEET_EXPORT
      Specifies the service type used to export data to an Excel file.
      SPREADSHEET_IMPORT
      Specifies the service type used to import data from an Excel file.
      SQL_EXPORT
      Specifies the service type used to export data to an external database.
      SQL_IMPORT
      Specifies the service type used to import data from an external database.
      TRANSFER
      Specifies the service type used to transfer data.
      XML_EXPORT
      Specifies the service type used to export data to an XML file.
      XML_IMPORT
      Specifies the service type used to import data from an XML file.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCSVExport()
      Returns true if the service type is CSV_EXPORT.
      boolean isCSVImport()
      Returns true if the service type is CSV_IMPORT.
      boolean isSpreadsheetExport()
      Returns true if the service type is SPREADSHEET_EXPORT.
      boolean isSpreadsheetImport()
      Returns true if the service type is SPREADSHEET_IMPORT.
      boolean isSQLExport()
      Returns true if the service type is SQL_EXPORT.
      boolean isSQLImport()
      Returns true if the service type is SQL_IMPORT.
      boolean isTransfer()
      Returns true if the service type is TRANSFER.
      boolean isXMLExport()
      Returns true if the service type is XML_EXPORT.
      boolean isXMLImport()
      Returns true if the service type is XML_IMPORT.
      static ServiceType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ServiceType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • TRANSFER

        public static final ServiceType TRANSFER
        Specifies the service type used to transfer data.
      • XML_IMPORT

        public static final ServiceType XML_IMPORT
        Specifies the service type used to import data from an XML file.
      • XML_EXPORT

        public static final ServiceType XML_EXPORT
        Specifies the service type used to export data to an XML file.
      • SQL_IMPORT

        public static final ServiceType SQL_IMPORT
        Specifies the service type used to import data from an external database.
      • SQL_EXPORT

        public static final ServiceType SQL_EXPORT
        Specifies the service type used to export data to an external database.
      • SPREADSHEET_IMPORT

        public static final ServiceType SPREADSHEET_IMPORT
        Specifies the service type used to import data from an Excel file.
      • SPREADSHEET_EXPORT

        public static final ServiceType SPREADSHEET_EXPORT
        Specifies the service type used to export data to an Excel file.
      • CSV_IMPORT

        public static final ServiceType CSV_IMPORT
        Specifies the service type used to import data from a CSV file.
      • CSV_EXPORT

        public static final ServiceType CSV_EXPORT
        Specifies the service type used to export data to a CSV file.
    • Method Detail

      • values

        public static ServiceType[] 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 (ServiceType c : ServiceType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServiceType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isTransfer

        public boolean isTransfer()
        Returns true if the service type is TRANSFER.
      • isXMLExport

        public boolean isXMLExport()
        Returns true if the service type is XML_EXPORT.
      • isXMLImport

        public boolean isXMLImport()
        Returns true if the service type is XML_IMPORT.
      • isSQLExport

        public boolean isSQLExport()
        Returns true if the service type is SQL_EXPORT.
      • isSQLImport

        public boolean isSQLImport()
        Returns true if the service type is SQL_IMPORT.
      • isCSVExport

        public boolean isCSVExport()
        Returns true if the service type is CSV_EXPORT.
      • isCSVImport

        public boolean isCSVImport()
        Returns true if the service type is CSV_IMPORT.
      • isSpreadsheetExport

        public boolean isSpreadsheetExport()
        Returns true if the service type is SPREADSHEET_EXPORT.
      • isSpreadsheetImport

        public boolean isSpreadsheetImport()
        Returns true if the service type is SPREADSHEET_IMPORT.