|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
getKeys in interface ValueMap
public Value getValue(java.lang.String key)
throws java.lang.IllegalArgumentException
ValueMap
getValue in interface ValueMapkey - the requested key
java.lang.IllegalArgumentException - if the key is nullpublic boolean isReadOnly(java.lang.String key)
Preferences
isReadOnly in interface Preferenceskey - the requested key
public void setValue(java.lang.String key,
Value value)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
ValueMap
setValue in interface ValueMapkey - the key to updatevalue - the new value
java.lang.UnsupportedOperationException - if the operation is not supported
java.lang.IllegalArgumentException - if the key is null
public void setReadOnly(java.lang.String key,
boolean readOnly)
Preferences
setReadOnly in interface Preferenceskey - 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 | |||||||||