当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
CombinedPreferencesResolver - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.common.prefs
Class CombinedPreferencesResolver
java.lang.Object
org.jboss.portal.common.prefs.CombinedPreferencesResolver
- All Implemented Interfaces:
- PreferencesResolver
- public class CombinedPreferencesResolver
- extends java.lang.Object
- implements PreferencesResolver
Method Summary |
java.util.Set |
getKeys()
Return the merged key set. |
Value |
getValue(java.lang.String key)
Return a preference among the sets or null if no suitable preference is found. |
boolean |
isReadOnly(java.lang.String key)
Say if the preference is marked as read only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinedPreferencesResolver
public CombinedPreferencesResolver(Preferences[] array)
getValue
public Value getValue(java.lang.String key)
throws java.lang.IllegalArgumentException
- Description copied from interface:
PreferencesResolver
- Return a preference among the sets or null if no suitable preference is found.
- Specified by:
getValue
in interface PreferencesResolver
- Parameters:
key
- the requested key
- Returns:
- the found preference or null
- Throws:
java.lang.IllegalArgumentException
- if the key or the array is null
isReadOnly
public boolean isReadOnly(java.lang.String key)
throws java.lang.IllegalArgumentException
- Description copied from interface:
PreferencesResolver
- Say if the preference is marked as read only.
- Specified by:
isReadOnly
in interface PreferencesResolver
- Parameters:
key
- the requested key
- Returns:
- the read only value
- Throws:
java.lang.IllegalArgumentException
- if the key or the array is null
getKeys
public java.util.Set getKeys()
throws java.lang.IllegalArgumentException
- Description copied from interface:
PreferencesResolver
- Return the merged key set.
- Specified by:
getKeys
in interface PreferencesResolver
- Returns:
- the merged key set
- Throws:
java.lang.IllegalArgumentException
- if the array is null