|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.prefs.MapPreferences
Constructor Summary | |
MapPreferences()
|
|
MapPreferences(java.util.Map map)
|
Method Summary | |
java.util.Set |
getKeys()
Return the key set of the map. |
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. |
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 |
Constructor Detail |
public MapPreferences()
public MapPreferences(java.util.Map map)
Method Detail |
public java.util.Set getKeys()
ValueMap
public Value getValue(java.lang.String key) throws java.lang.IllegalArgumentException
ValueMap
key
- the requested key
java.lang.IllegalArgumentException
- if the key is nullpublic boolean isReadOnly(java.lang.String key)
Preferences
isReadOnly
in interface Preferences
key
- the requested key
public void setValue(java.lang.String key, Value value) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
ValueMap
key
- the key to updatevalue
- the new value
java.lang.UnsupportedOperationException
- if the operation is not supported
java.lang.IllegalArgumentException
- if the key is nullpublic void setReadOnly(java.lang.String key, boolean readOnly)
Preferences
setReadOnly
in interface Preferences
key
- 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 |