de.smartics.exceptions.report.generator
Class StringFunction
java.lang.Object
de.smartics.exceptions.report.generator.StringFunction
-
public final class StringFunction
-
extends
Object
Utilities for this package.
-
Author:
-
Robert Reiner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMessage
public static String getMessage(ResourceBundle bundle,
String key,
String defaultValue)
-
Returns the value associated with the given key in the given bundle.
-
-
Parameters:
-
bundle
- the resource bundle to search in.
-
key
- the key to the value in the resource bundle to return.
-
defaultValue
- the default value to return if either the bundle or the key is
null
or the key cannot be found or the value is not a
String
.
-
Returns:
-
the value associated or the default value if no associated value can be found.
Copyright © 2007-null
Kronseder & Reiner GmbH - smartics. All Rights Reserved.