|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.server.plugins.preferences.AbstractPreferenceSet
public class AbstractPreferenceSet
A simple implementation that store the values in the preference objects which are mutable. The read only set is not supported and throws UnsupportedOperationException.
| Field Summary | |
|---|---|
protected java.util.Map |
map
|
| Constructor Summary | |
|---|---|
AbstractPreferenceSet()
|
|
AbstractPreferenceSet(java.util.Map map)
|
|
| Method Summary | |
|---|---|
Preference |
getPreference(java.lang.String key)
Return the preference for the given key. |
Value |
getValue(java.lang.String key)
Return the value for the given key or null if it does not exist. |
boolean |
isReadOnly(java.lang.String key)
Return the read only value for the given preference. |
java.util.Set |
keySet()
Return the key set of all the preferences. |
void |
setReadOnly(java.lang.String key,
boolean readOnly)
Update the read only value for the given key. |
void |
setValue(java.lang.String key,
Value value)
Update the value of the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map map
| Constructor Detail |
|---|
public AbstractPreferenceSet()
public AbstractPreferenceSet(java.util.Map map)
| Method Detail |
|---|
public java.util.Set keySet()
PreferenceSet
keySet in interface PreferenceSetpublic Preference getPreference(java.lang.String key)
PreferenceSet
getPreference in interface PreferenceSetkey - the requested key
public Value getValue(java.lang.String key)
PreferenceSet
getValue in interface PreferenceSetkey - the requested key
public void setValue(java.lang.String key,
Value value)
PreferenceSet
setValue in interface PreferenceSetkey - the key to updatevalue - the new valuepublic boolean isReadOnly(java.lang.String key)
PreferenceSet
isReadOnly in interface PreferenceSetkey - the requested key
public void setReadOnly(java.lang.String key,
boolean readOnly)
PreferenceSet
setReadOnly in interface PreferenceSetkey - the key to updatereadOnly - the new read only value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||