Class ContentFormatUtils
java.lang.Object
org.craftercms.studio.impl.v1.util.ContentFormatUtils
util methods for parsing/converting data
- Author:
- hyanghee
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanValue(String str) get a boolean value given a stringstatic intgetIntValue(String str) get integer valuestatic ZonedDateTimeparseDate(SimpleDateFormat format, String dateStr, String timeZone) parse the given date using the model date format and the timezone
-
Field Details
-
DATE_PATTERN_TIMEZONE_GMT
model date format constants- See Also:
-
-
Constructor Details
-
ContentFormatUtils
public ContentFormatUtils()
-
-
Method Details
-
parseDate
parse the given date using the model date format and the timezone- Parameters:
format-dateStr-- Returns:
- timeZone
-
getBooleanValue
get a boolean value given a string- Parameters:
str-- Returns:
- boolean value
-
getIntValue
get integer value- Parameters:
str-- Returns:
- int value
-