KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > plugins > preferences > AbstractPreference


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.server.plugins.preferences;
10
11 import java.io.Serializable JavaDoc;
12
13 import org.jboss.portal.common.value.Value;
14
15 /**
16  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
17  * @version $Revision: 1.2 $
18  */

19 public class AbstractPreference implements Preference, Serializable JavaDoc
20 {
21
22    protected String JavaDoc name;
23    protected Value value;
24    protected boolean readOnly;
25
26    public AbstractPreference(String JavaDoc name, Value value, boolean readOnly)
27    {
28       this.name = name;
29       this.value = value;
30       this.readOnly = readOnly;
31    }
32
33    public String JavaDoc getName()
34    {
35       return name;
36    }
37
38    public Value getValue()
39    {
40       return value;
41    }
42
43    public void setValue(Value value)
44    {
45       this.value = value;
46    }
47
48    public boolean isReadOnly()
49    {
50       return readOnly;
51    }
52 }
53
Popular Tags