Class ImportTextUtils
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.util.ImportTextUtils
Text helpers shared by the workbook reader and the appointment creation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringNormalizes a text for comparison: accents removed, blanks (including non-breaking spaces and underscores) trimmed and collapsed, lower case.static StringnormalizePhoneNumber(String strValue) Removes the separators of a phone number and restores the leading zero a numeric Excel cell drops.
-
Method Details
-
normalize
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
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
-