Package de.xima.fc.workflow.itemlist
Class CsvItemSourceHelper
- java.lang.Object
-
- de.xima.fc.workflow.itemlist.CsvItemSourceHelper
-
public final class CsvItemSourceHelper extends Object
Helper methods for CSV item sources of the for each loop in the workflow.- Since:
- 8.2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CsvFormat
buildCsvFormat(AListItemSourcePropsCsvFormat props)
Builds theCsvFormat
from the given workflow node properties model.static CsvFormat
buildCsvFormat(ListItemSourcePropsCharacterSeparatedValues props)
Builds theCsvFormat
from the given workflow node properties model.static CsvFormat
buildCsvFormat(ListItemSourcePropsRowsOfCharacterSeparatedValues props)
Builds theCsvFormat
from the given workflow node properties model.static String
buildCsvFormatExampleString(AListItemSourceProps sourceProps)
Sometimes, it is easier to understand the format by looking at an example.static List<String>
buildCsvFormatExampleValues(AListItemSourceProps sourceProps)
Sometimes, it is easier to understand the format by looking at an example.static CsvFormat.Builder
builderCsvFormat(AListItemSourcePropsCsvFormat props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model.static CsvFormat.Builder
builderCsvFormat(ListItemSourcePropsCharacterSeparatedValues props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model.static CsvFormat.Builder
builderCsvFormat(ListItemSourcePropsRowsOfCharacterSeparatedValues props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model.
-
-
-
Method Detail
-
buildCsvFormat
public static CsvFormat buildCsvFormat(AListItemSourcePropsCsvFormat props)
Builds theCsvFormat
from the given workflow node properties model.- Parameters:
props
- The properties model.- Returns:
- The CSV format.
-
buildCsvFormat
public static CsvFormat buildCsvFormat(ListItemSourcePropsRowsOfCharacterSeparatedValues props)
Builds theCsvFormat
from the given workflow node properties model.- Parameters:
props
- The properties model.- Returns:
- The CSV format.
-
buildCsvFormat
public static CsvFormat buildCsvFormat(ListItemSourcePropsCharacterSeparatedValues props)
Builds theCsvFormat
from the given workflow node properties model.- Parameters:
props
- The properties model.- Returns:
- The CSV format.
-
buildCsvFormatExampleString
public static String buildCsvFormatExampleString(AListItemSourceProps sourceProps)
Sometimes, it is easier to understand the format by looking at an example.When the type item list source
CHARACTER_SEPARATED_VALUES
is selected: Gets a formatted string of values using the currently selectedformat
settings. When the string returned by this method is split into individual values using the current format settings, this results in the list ofexample values
.- Returns:
- The list of
example values
, formatted according to the given settings.
-
buildCsvFormatExampleValues
public static List<String> buildCsvFormatExampleValues(AListItemSourceProps sourceProps)
Sometimes, it is easier to understand the format by looking at an example.When the type item list source
CHARACTER_SEPARATED_VALUES
is selected: Gets a list of example values. Theexample string
is the formatted string, this method returns the values obtained when splitting that formatted string according to the givenformat
settings.- Returns:
- A list of sample values for illustrating the currently selected format.
-
builderCsvFormat
public static CsvFormat.Builder builderCsvFormat(AListItemSourcePropsCsvFormat props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props
- The properties model.- Returns:
- The CSV format builder.
-
builderCsvFormat
public static CsvFormat.Builder builderCsvFormat(ListItemSourcePropsCharacterSeparatedValues props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props
- The properties model.- Returns:
- The CSV format builder.
-
builderCsvFormat
public static CsvFormat.Builder builderCsvFormat(ListItemSourcePropsRowsOfCharacterSeparatedValues props)
Creates a builder for aCsvFormat
ands sets it up with the data from the given workflow node properties model. Can be used to customize the format further before building the format.- Parameters:
props
- The properties model.- Returns:
- The CSV format builder.
-
-