KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > portlet > metadata > LanguagesMetaData


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.portlet.metadata;
10
11 import java.util.LinkedList JavaDoc;
12 import java.util.List JavaDoc;
13
14 import org.jboss.portal.common.plugin.PluginMetaData;
15
16 /**
17  * Contains locale specific values.
18  *
19  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
20  * @version $Revision: 1.4 $
21  */

22 public class LanguagesMetaData
23    implements PluginMetaData
24 {
25
26    /**
27     * The unmodifiable list of the locales supported by the portlet.
28     */

29    private List JavaDoc supportedLocales;
30
31    /**
32     * The path of the resource bundle or null if no is defined.
33     */

34    private String JavaDoc resourceBundle;
35
36    /**
37     * The inline info or null if not defined
38     */

39    private InfoMetaData info;
40
41    public LanguagesMetaData()
42    {
43       this.supportedLocales = new LinkedList JavaDoc();
44    }
45
46    public List JavaDoc getSupportedLocales()
47    {
48       return supportedLocales;
49    }
50
51    public String JavaDoc getResourceBundle()
52    {
53       return resourceBundle;
54    }
55
56    public void setResourceBundle(String JavaDoc resourceBundle)
57    {
58       this.resourceBundle = resourceBundle;
59    }
60
61    public InfoMetaData getInfo()
62    {
63       return info;
64    }
65
66    public void setInfo(InfoMetaData info)
67    {
68       this.info = info;
69    }
70
71    public static class InfoMetaData
72    {
73
74       /** The portlet title, cannot be null. */
75       private String JavaDoc title;
76
77       /** The portlet short title, can be null if not defined. */
78       private String JavaDoc shortTitle;
79
80       /** The unparsed keywords, can be null if not defined. */
81       private String JavaDoc keywords;
82
83       public String JavaDoc getTitle()
84       {
85          return title;
86       }
87
88       public void setTitle(String JavaDoc title)
89       {
90          this.title = title;
91       }
92
93       public String JavaDoc getShortTitle()
94       {
95          return shortTitle;
96       }
97
98       public void setShortTitle(String JavaDoc shortTitle)
99       {
100          this.shortTitle = shortTitle;
101       }
102
103       public String JavaDoc getKeywords()
104       {
105          return keywords;
106       }
107
108       public void setKeywords(String JavaDoc keywords)
109       {
110          this.keywords = keywords;
111       }
112    }
113 }
114
Popular Tags