From ece7d18cf35374bf4e26d041799cda8f791c89f8 Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 7 Jul 2003 10:58:37 +0000 Subject: Initial commit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../egovernment/moa/spss/util/MessageProvider.html | 250 +++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/util/MessageProvider.html (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/util/MessageProvider.html') diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/util/MessageProvider.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/util/MessageProvider.html new file mode 100644 index 000000000..4435be18e --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/spss/util/MessageProvider.html @@ -0,0 +1,250 @@ + + + + + + +MOA SP/SS Server Internal API: Class MessageProvider + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +at.gv.egovernment.moa.spss.util +
+Class MessageProvider

+
+java.lang.Object
+  |
+  +--at.gv.egovernment.moa.spss.util.MessageProvider
+
+
+
+
public class MessageProvider
extends Object
+ +

+Singleton wrapper around a Messages object. +

+

+
Version:
$Id$
+
Author:
Patrick Peck
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected MessageProvider(String[] resourceNames, + Locale[] locales) + +
+          Create a MessageProvider.
+  + + + + + + + + + + + + + + + +
+Method Summary
+static MessageProvidergetInstance() + +
+          Return the single instance of the MessageProvider. + +
+ StringgetMessage(String messageId, + Object[] parameters) + +
+          Get the message corresponding to a given message ID.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+MessageProvider

+
+protected MessageProvider(String[] resourceNames,
+                          Locale[] locales)
+
+
Create a MessageProvider.
+
Parameters:
resourceNames - The names of the resources containing the messages.
locales - The corresponding locales.
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static MessageProvider getInstance()
+
+
Return the single instance of the MessageProvider. + + Intialilizes the MessageProvider with the default message + locations: /resources/properties/spss_messages.
+
Returns:
The single MessageProvider.
+
+
+
+ +

+getMessage

+
+public String getMessage(String messageId,
+                         Object[] parameters)
+
+
Get the message corresponding to a given message ID.
+
Parameters:
messageId - The ID of the message.
parameters - The parameters to fill in into the message arguments.
Returns:
The formatted message.
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + -- cgit v1.2.3