Anyframe Core

anyframe.core.basis.util
Class ConvertUtil

java.lang.Object
  extended by anyframe.core.basis.util.ConvertUtil

public final class ConvertUtil
extends Object

Utility class to convert one object to another.

Author:
Matt Raible, modified by SooYeon Park

Method Summary
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 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

convertBundleToMap

public static Map<String,String> convertBundleToMap(ResourceBundle rb)
Method to convert a ResourceBundle to a Map object.

Parameters:
rb - a given resource bundle
Returns:
Map a populated map

convertBundleToProperties

public static Properties convertBundleToProperties(ResourceBundle rb)
Method to convert a ResourceBundle to a Properties object.

Parameters:
rb - a given resource bundle
Returns:
Properties a populated properties object

populateObject

public static Object populateObject(Object obj,
                                    ResourceBundle rb)
Convenience method used by tests to populate an object from a ResourceBundle

Parameters:
obj - an initialized object
rb - a resource bundle
Returns:
a populated object

Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.