KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > common > context > NamedContext


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.common.context;
10
11 /**
12  * POJO for a context linked to a name
13  * @author <a HREF="theute@jboss.org">Thomas Heute</a>
14  * $Revision: 1.1.1.1 $
15  */

16 public class NamedContext
17 {
18    private Context context;
19    
20    private String JavaDoc name;
21    
22    public NamedContext(String JavaDoc name, Context ctx)
23    {
24       this.name = name;
25       this.context = ctx;
26    }
27    
28    /**
29     * @return Returns the context.
30     */

31    public Context getContext()
32    {
33       return context;
34    }
35
36    /**
37     * @return Returns the name.
38     */

39    public String JavaDoc getName()
40    {
41       return name;
42    }
43
44    /**
45     * @param context The context to set.
46     */

47    public void setContext(Context context)
48    {
49       this.context = context;
50    }
51
52    /**
53     * @param name The name to set.
54     */

55    public void setName(String JavaDoc name)
56    {
57       this.name = name;
58    }
59 }
60
Popular Tags