Class StringExportHelper
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.StringExportHelper
-
public class StringExportHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable Object
getObjectValue(@Nullable String value)
Convert arbitrary string to an object that is suitable for use in YAML export.static @Nullable String
getStringValue(@Nullable Object value)
Converts back to String using with toString method.
-
-
-
Method Detail
-
getObjectValue
@Nullable public static @Nullable Object getObjectValue(@Nullable @Nullable String value)
Convert arbitrary string to an object that is suitable for use in YAML export. Literals "true" and "false" are converted to Boolean, numbers are converted to Long. If input value is null, null is returned. If no pattern is recognized the string is returned as is.
-
-