|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.util.ConvertUtil
public final class ConvertUtil
Utility class to convert one object to another.
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,String> convertListToMap(List<LabelValue> list)
list
- the list to convert
public static Properties convertBundleToProperties(ResourceBundle rb)
rb
- a given resource bundle
public static Object populateObject(Object obj, ResourceBundle rb)
obj
- an initialized objectrb
- a resource bundle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |