Class ConversionUtils
java.lang.Object
com.broadleafcommerce.catalog.dataexport.converter.support.ConversionUtils
Useful constants and methods for export row conversion.
- Author:
- Samarth Dhruva (samarthd)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
If there are multi-valued fields, the different values will be joined into a single string with this character as a separator.static final String
For fields that are nested within other fields, their full nested path will be joined into a single string using this character as a separator. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
joinToMultivalueString
(Iterable<String> collection) static String
joinToMultivalueString
(Iterable<String> collection, String separator) static String
prependWithPathPrefix
(String prefix, String field) static String
prependWithPathPrefix
(String prefix, String separator, String field) static void
static <T> void
-
Field Details
-
DEFAULT_MULTIVALUE_SEPARATOR
If there are multi-valued fields, the different values will be joined into a single string with this character as a separator.- See Also:
-
DEFAULT_NESTED_PATH_SEPARATOR
For fields that are nested within other fields, their full nested path will be joined into a single string using this character as a separator.- See Also:
-
-
Method Details
-
prependWithPathPrefix
-
prependWithPathPrefix
-
joinToMultivalueString
-
joinToMultivalueString
-
putIfNotNull
-
putIfNotNull
-