KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mdarad > framework > resources > ResourceMapped


1 /*
2     Mdarad-Toolobox is a collection of tools for Architected RAD
3     (Rapid Application Development) based on an MDA approach.
4     The toolbox contains frameworks and generators for many environments
5     (JAVA, J2EE, Hibernate, .NET, C++, etc.) which allow to generate
6     applications from a design Model
7     Copyright (C) 2004-2005 Elapse Technologies Inc.
8
9     This library is free software; you can redistribute it and/or
10     modify it under the terms of the GNU General Public
11     License as published by the Free Software Foundation; either
12     version 2.1 of the License, or (at your option) any later version.
13
14     This library is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17     General Public License for more details.
18
19     You should have received a copy of the GNU General Public
20     License along with this library; if not, write to the Free Software
21     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */

23 package org.mdarad.framework.resources;
24
25 import java.util.Locale JavaDoc;
26
27 /**
28  * This interface must be implemented for an object using resource
29  * bundle to get label properties.
30  * @author Philippe Brouillette
31  * @version 1.0
32  */

33 public interface ResourceMapped {
34
35     /**
36      * Method that returns the locale information needed
37      * to retrieved label from bundle file.
38      * @return <code>Locale</code> object
39      */

40     public Locale JavaDoc getLocale();
41
42     /**
43      * Setter of the locale information
44      * @param locale <code>Locale</code> object
45      */

46     public void setLocale(Locale JavaDoc locale);
47     
48     
49     /**
50      * Method that returns the bundle name of the resource
51      * file.
52      * @return bundle name
53      */

54     public String JavaDoc getBundle();
55
56     /**
57      * Setter for the bundle name
58      * @param bundle bundle name
59      */

60     public void setBundle(String JavaDoc bundle);
61 }
Popular Tags