public final class ConvertUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Properties |
convertBundleToProperties(ResourceBundle rb)
Method to convert a ResourceBundle to a Properties object.
|
static Map<String,String> |
convertListToMap(List<LabelValue> list)
Convert a java.util.List of LabelValue objects to a LinkedHashMap.
|
static Object |
populateObject(Object obj,
ResourceBundle rb)
Convenience method used by tests to populate an object from a
ResourceBundle
|
public static Map<String,String> convertListToMap(List<LabelValue> list)
list
- the list to convertpublic static Properties convertBundleToProperties(ResourceBundle rb)
rb
- a given resource bundlepublic static Object populateObject(Object obj, ResourceBundle rb)
obj
- an initialized objectrb
- a resource bundleCopyright © 2015. All rights reserved.