站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

SimpleValueMap - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model22.other
Class SimpleValueMap

java.lang.Object
  extended byorg.jboss.portal.migration.model22.other.SimpleValueMap
All Implemented Interfaces:
ValueMap

public class SimpleValueMap
extends java.lang.Object
implements ValueMap

Version:
$Revision: 5449 $
Author:
Julien Viet

Field Summary
protected  java.util.Map values
          .
 
Constructor Summary
SimpleValueMap()
           
SimpleValueMap(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.
 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

values

protected final java.util.Map values
.

Constructor Detail

SimpleValueMap

public SimpleValueMap()

SimpleValueMap

public SimpleValueMap(java.util.Map map)
Method Detail

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 update
value - the new value
Throws:
java.lang.IllegalArgumentException - if the key is null
java.lang.UnsupportedOperationException - if the operation is not supported