org.jboss.portal.server.plugins.preferences
Class AbstractPreference

java.lang.Object
  extended by org.jboss.portal.server.plugins.preferences.AbstractPreference
All Implemented Interfaces:
java.io.Serializable, Preference

public class AbstractPreference
extends java.lang.Object
implements Preference, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
protected  boolean readOnly
           
protected  Value value
           
 
Constructor Summary
AbstractPreference(java.lang.String name, Value value, boolean readOnly)
           
 
Method Summary
 java.lang.String getName()
          Return the preference name.
 Value getValue()
          Return the preference value.
 boolean isReadOnly()
          Return the preference read only value.
 void setValue(Value value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

value

protected Value value

readOnly

protected boolean readOnly
Constructor Detail

AbstractPreference

public AbstractPreference(java.lang.String name,
                          Value value,
                          boolean readOnly)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Preference
Return the preference name.

Specified by:
getName in interface Preference
Returns:
the preference name

getValue

public Value getValue()
Description copied from interface: Preference
Return the preference value.

Specified by:
getValue in interface Preference
Returns:
the preference value.

setValue

public void setValue(Value value)

isReadOnly

public boolean isReadOnly()
Description copied from interface: Preference
Return the preference read only value.

Specified by:
isReadOnly in interface Preference
Returns:
the read only value