Class AttributeUtility
- java.lang.Object
-
- org.gcube.informationsystem.utils.AttributeUtility
-
public class AttributeUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AttributeUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalDateTimecheckDateTimeString(String dateTimeString)Check if the string is a valid date time string according to the pattern defined in theElement.DATETIME_PATTERNstatic voidcheckRegex(String regex, String text)static StringevaluateNullForDefaultValue(String defaultValueAsString)static ObjectevaluateValueStringAccordingBaseType(PropertyTypeName.BaseType baseType, String valueAsString)
-
-
-
Method Detail
-
evaluateNullForDefaultValue
public static String evaluateNullForDefaultValue(String defaultValueAsString)
-
evaluateValueStringAccordingBaseType
public static Object evaluateValueStringAccordingBaseType(PropertyTypeName.BaseType baseType, String valueAsString)
-
checkDateTimeString
public static LocalDateTime checkDateTimeString(String dateTimeString) throws DateTimeParseException
Check if the string is a valid date time string according to the pattern defined in theElement.DATETIME_PATTERN- Parameters:
dateTimeString-- Returns:
- Throws:
DateTimeParseException
-
-