Package com.vdoc.sdk.commons.utils
Class ConfigurationUtils
java.lang.Object
com.vdoc.sdk.commons.utils.ConfigurationUtils
Class utility to manipulate configuration parameters.
- Since:
- 18/06/2015
- Version:
- 1.0
- Author:
- vlygeros
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConfigurationUtils
public ConfigurationUtils()
-
-
Method Details
-
asMap
public static Map<String,String> asMap(String mappingFields, String firstSeparator, String secondSeparator) Allow to convert a configuration parameter to aMapobject. Example of configuration key: key=sourceField1|targetFieldX;sourceField2|targetFieldY;sourceField3|targetFieldZ- Parameters:
mappingFields- value of the keyfirstSeparator- first separator. In the example: ";"secondSeparator- second separator. In the example: "\\|";- Returns:
- A
Mapobject with the following entries: sourceField=targetField, sourceField2=targetFieldY, sourceField3|targetFieldZ
-