当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
SimpleValueMap - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.common.value
Class SimpleValueMap
java.lang.Object
org.jboss.portal.common.value.SimpleValueMap
- All Implemented Interfaces:
- ValueMap
- Direct Known Subclasses:
- ComponentPreferencesPlugin
- public class SimpleValueMap
- extends java.lang.Object
- implements ValueMap
Field Summary |
protected java.util.Map |
values
. |
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. |
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 |
values
protected final java.util.Map values
- .
SimpleValueMap
public SimpleValueMap()
SimpleValueMap
public SimpleValueMap(java.util.Map map)
getKeys
public java.util.Set getKeys()
- Description copied from interface:
ValueMap
- Return the key set of the map.
- Specified by:
getKeys
in interface ValueMap
getValue
public Value getValue(java.lang.String key)
throws java.lang.IllegalArgumentException
- Description copied from interface:
ValueMap
- Return the value for the given key or null if it does not exist.
- Specified by:
getValue
in interface ValueMap
- Parameters:
key
- the requested key
- Returns:
- the requested value or null if it does not exist
- Throws:
java.lang.IllegalArgumentException
- if the key is null
setValue
public void setValue(java.lang.String key,
Value value)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
- Description copied from interface:
ValueMap
- Update the value of the given key. If the value object is null
it means that the entry must be removed. Implementation can throw
an unsupported operation exception when it is abnormal to perform an update.
- Specified by:
setValue
in interface ValueMap
- Parameters:
key
- the key to updatevalue
- the new value
- Throws:
java.lang.IllegalArgumentException
- if the key is null
java.lang.UnsupportedOperationException
- if the operation is not supported