java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.util.ImportTextUtils

public final class ImportTextUtils extends Object
Text helpers shared by the workbook reader and the appointment creation.
  • Method Details

    • normalize

      public static String normalize(String strValue)
      Normalizes a text for comparison: accents removed, blanks (including non-breaking spaces and underscores) trimmed and collapsed, lower case.
      Parameters:
      strValue - the text, may be null
      Returns:
      the normalized text, never null
    • normalizePhoneNumber

      public static String normalizePhoneNumber(String strValue)
      Removes the separators of a phone number and restores the leading zero a numeric Excel cell drops.
      Parameters:
      strValue - the phone number, may be null
      Returns:
      the phone number without separators, never null