Package net.sf.statcvs
Class Messages
java.lang.Object
net.sf.statcvs.Messages
This class manages the externalization of strings that will
possiby be presented to the user
- Version:
- $Id: Messages.java,v 1.11 2008/04/02 11:22:16 benoitx Exp $
- Author:
- Lukasz Pekacki
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the value for the specified key.static void
setPrimaryResource
(String primaryResourceName) This method enables a user, typically of another project, to set a primary resource bundle.
-
Field Details
-
WS
Whitespace constant- See Also:
-
NL
Newline constant- See Also:
-
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
getString
Returns the value for the specified key. Key-value pairs are specified in the resourcebundle properties file, either the primary one or, it falls back on the original one.- Parameters:
key
- key of the requested string- Returns:
- String
-
setPrimaryResource
This method enables a user, typically of another project, to set a primary resource bundle. If no value or null, it will revert to the original bundle.- Parameters:
primaryResourceName
-
-