Package org.apache.archiva.redback.users
Class Messages
- java.lang.Object
-
- org.apache.archiva.redback.users.Messages
-
public class Messages extends Object
Localized Message Handling.- Author:
- Joakim Erdfelt
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getString(String key)
Get a Message as-is from the Resource Bundle.static String
getString(String key, Object arg)
Gets a Message from the Resource Bundle, with {1} and {2} style arguments.static String
getString(String key, Object[] args)
Gets a Message from the Resource Bundle, with {1} and {2} style arguments.
-
-
-
Method Detail
-
getString
public static String getString(String key)
Get a Message as-is from the Resource Bundle.- Parameters:
key
- the key for the message to get.- Returns:
- the value of the key, or "!key!" if the key is not found.
-
getString
public static String getString(String key, Object arg)
Gets a Message from the Resource Bundle, with {1} and {2} style arguments.- Parameters:
key
- the key for the message to get.arg
- the argument to pass in.- Returns:
- the value of the key, or "!key!" if the key is not found.
-
-