1 9 package org.jboss.portal.server.plugins.preferences; 10 11 import java.io.Serializable ; 12 13 import org.jboss.portal.common.value.Value; 14 15 19 public class AbstractPreference implements Preference, Serializable 20 { 21 22 protected String name; 23 protected Value value; 24 protected boolean readOnly; 25 26 public AbstractPreference(String name, Value value, boolean readOnly) 27 { 28 this.name = name; 29 this.value = value; 30 this.readOnly = readOnly; 31 } 32 33 public String 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 |