Class ConverterUUID

All Implemented Interfaces:
CsvConverter

public class ConverterUUID extends AbstractCsvConverter
This class converts an String to a UUID instance.
Since:
5.4
  • Field Details

  • Constructor Details

    • ConverterUUID

      public ConverterUUID(Locale errorLocale)
      Initializes the class.
      Parameters:
      errorLocale - The locale to use for error messages
  • Method Details

    • convertToRead

      public Object convertToRead(String value) throws CsvDataTypeMismatchException
      Description copied from interface: CsvConverter
      Method for converting from a string to the proper data type of the destination field.
      Parameters:
      value - The string from the selected field of the CSV file. If the field is marked as required in the annotation, this value is guaranteed not to be null, empty or blank according to StringUtils.isBlank(java.lang.CharSequence)
      Returns:
      An Object representing the input data converted into the proper type
      Throws:
      CsvDataTypeMismatchException - If the input string cannot be converted into the proper type