public final class ConvertUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
convertBundleToMap(ResourceBundle rb)
Method to convert a ResourceBundle to a Map object.
|
static Properties |
convertBundleToProperties(ResourceBundle rb)
Method to convert a ResourceBundle to a Properties object.
|
static Map<String,String> |
convertListToMap(List<org.appfuse.model.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> convertBundleToMap(ResourceBundle rb)
rb - a given resource bundlepublic static Map<String,String> convertListToMap(List<org.appfuse.model.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 © 2003-2012. All Rights Reserved.