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

PropertyMap - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.state
Interface PropertyMap

All Superinterfaces:
java.util.Map, java.io.Serializable
All Known Implementing Classes:
AbstractPropertyMap

public interface PropertyMap
extends java.util.Map, java.io.Serializable

Version:
$Revision: 3287 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 Value getProperty(java.lang.String key)
          Return the value for the given key or null if it does not exist.
 void setProperty(java.lang.String key, Value value)
          Update the value of the given key.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getProperty

public Value getProperty(java.lang.String key)
                  throws java.lang.IllegalArgumentException
Return the value for the given key or null if it does not exist.

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

setProperty

public void setProperty(java.lang.String key,
                        Value value)
                 throws java.lang.IllegalArgumentException,
                        java.lang.UnsupportedOperationException
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.

Parameters:
key - the key to update
value - the new value
Throws:
java.lang.UnsupportedOperationException - if the operation is not supported
java.lang.IllegalArgumentException - if the key is null