|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appfuse.util.ConvertUtil
Utility class to convert one object to another.
| Constructor Summary | |
ConvertUtil()
|
|
| Method Summary | |
static Object |
convert(Object o)
Convenience method to convert a form to a POJO and back again |
static Map |
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 Object |
convertDates(Object obj,
Object form)
This method loops through all the Date methods and formats them for the UI. |
static Object |
convertLists(Object o)
Convenience method to convert Lists (in a Form) from POJOs to Forms. |
static Object |
getOpposingObject(Object o)
This method inspects a POJO or Form and figures out its pojo/form equivalent. |
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 |
| Constructor Detail |
public ConvertUtil()
| Method Detail |
public static Map convertBundleToMap(ResourceBundle rb)
rb - a given resource bundle
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
public static Object convertDates(Object obj,
Object form)
obj - form -
public static Object getOpposingObject(Object o)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
o - the object to inspect
ClassNotFoundException
InstantiationException
IllegalAccessException
public static Object convert(Object o)
throws Exception
o - the object to tranfer properties from
Exception
public static Object convertLists(Object o)
throws Exception
o -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||