com.abstractics.utils
Class ResourceBundleUtils

java.lang.Object
  extended bycom.abstractics.utils.ResourceBundleUtils

public class ResourceBundleUtils
extends java.lang.Object

Contains static methods to deal with getting values/replacing values using ResourceBundles

Version:
$Id: ResourceBundleUtils.java,v 1.2 2006/03/15 05:37:33 andyman99 Exp $
Author:
Andrew Lawrence, Copyright 2006 Abstractics, L.L.C., Licensed under the Apache License, Version 2.0

Constructor Summary
ResourceBundleUtils()
           
 
Method Summary
static java.lang.Object getValue(java.lang.String str, java.util.ResourceBundle bundle)
          Given a String as a parameter, this method replaces $R{} values in the String with values from the ResourceBundle given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleUtils

public ResourceBundleUtils()
Method Detail

getValue

public static java.lang.Object getValue(java.lang.String str,
                                        java.util.ResourceBundle bundle)
Given a String as a parameter, this method replaces $R{} values in the String with values from the ResourceBundle given. If the entire String is a $R{} value, then the actual value from the ResourceBundle is returned.
Examples:

Parameters:
str -
bundle -
Returns: