| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_SUMMARY_ERROR |
static String |
MESSAGE_SUMMARY_SUCCESS |
static String |
XLSX_CONTENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsFloat(Float... f)
Compares objects and returns true if objects are not null and values of objects are equal.
|
static String |
formatOverlayContentText(String string)
Breaks string if it is too long.
|
static String |
formatRecordValue(String string)
(Default) Formats string from record value.
|
static String |
formatRecordValueTrimFrom(String string)
(Default) Formats string from record value, trimming all leading and trailing whitespaces.
|
static String |
formatWhitespace(String string)
Formats given string by collapsing and trimming all whitespaces.
|
static String |
formatWhitespaceTrimFrom(String string)
Formats given string by collapsing and trimming all leading and trailing whitespaces.
|
static void |
isFloatEntered(Object value)
Utility method used for Double validation.
|
static void |
isIntegerEntered(Object value)
Utility method for Integer validation.
|
static boolean |
isNullOrEmpty(Collection<?> collection)
Checks whether a
Collection is null or empty. |
static boolean |
isNullOrEmpty(Map<?,?> map)
Checks whether a
Map is null or empty. |
static void |
isURLEntered(Object value)
Utility method used for URL validation.
|
static void |
isValidCableClass(Object value)
Utility method used for cable class validation.
|
static void |
isValidLbsTag(Object value)
Utility method used for Lbs tag validation.
|
static void |
isValidSubsystem(Object value)
Utility method used for subsystem validation.
|
static void |
isValidSystem(Object value)
Utility method used for system validation.
|
static String |
nullIfEmpty(String string)
Returns null if string is empty, otherwise string.
|
static List<String> |
splitStringIntoList(String data)
Splits a string at "," and returns results as a list
|
static Date |
toDate(Object value)
Converts value to Date or null if value is null or empty.
|
static Date |
toDateNull(Object value)
Converts value to Date or null if value is null or empty or cannot be converted.
|
static Float |
toFloat(String value)
Converts value to Float or null if value is null or empty.
|
static Integer |
toInteger(String value)
Converts value to Integer or null if value is null or empty.
|
static String |
upperCase(String string)
Returns upper case if string is not null, otherwise null.
|
public static final String MESSAGE_SUMMARY_SUCCESS
public static final String MESSAGE_SUMMARY_ERROR
public static final String XLSX_CONTENT_TYPE
public static void isValidSystem(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid systempublic static void isValidSubsystem(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid subsystempublic static void isValidCableClass(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid cable classpublic static void isValidLbsTag(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid Lbs tagpublic static void isURLEntered(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid URLpublic static void isIntegerEntered(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid Integerpublic static void isFloatEntered(Object value)
value - valuejavax.faces.validator.ValidatorException - if value is not valid Doublepublic static boolean isNullOrEmpty(Collection<?> collection)
Collection is null or empty.collection - the collection to testtrue if collection is null or empty, false otherwisepublic static boolean isNullOrEmpty(Map<?,?> map)
Map is null or empty.map - the map to testtrue if map is null or empty, false otherwisepublic static String nullIfEmpty(String string)
string - stringpublic static String formatWhitespace(String string)
string - to formatpublic static String formatWhitespaceTrimFrom(String string)
string - to formatpublic static String formatRecordValue(String string)
string - stringpublic static String formatRecordValueTrimFrom(String string)
string - stringpublic static String formatOverlayContentText(String string)
string - string to format.public static List<String> splitStringIntoList(String data)
data - string of data to splitpublic static boolean equalsFloat(Float... f)
Note
Float.equals(Object)
f - variable number of float parameters to comparetrue if objects are not null and values of objects are equal, false otherwiseFloat.equals(Object)public static Integer toInteger(String value)
value - the value to be converted to doubleNumberFormatException - if the value cannot be converted.public static Float toFloat(String value)
value - the value to be converted to doubleNumberFormatException - if the value cannot be converted.public static Date toDate(Object value)
value - the value to be casted to dateClassCastException - if the value cannot be converted.public static Date toDateNull(Object value)
value - the value to be casted to dateCopyright © 2025 European Spallation Source. All rights reserved.