当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
ParameterMap - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.common.util
Class ParameterMap
java.lang.Object
org.jboss.portal.common.util.TypedMap
org.jboss.portal.common.util.ParameterMap
- All Implemented Interfaces:
- java.util.Map
- Direct Known Subclasses:
- ParameterMapTestCase.TestParameterMap, Parameters
- public abstract class ParameterMap
- extends TypedMap
A decorator that enforce the map content to be
- Version:
- $Revision: 5451 $
- Author:
- Julien Viet
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary |
protected void |
assertKeyValidity(java.lang.Object value)
Only accept non null string objects. |
protected java.lang.Object |
getExternalValue(java.lang.Object value)
Wrap the internal value into its external representation. |
protected java.lang.Object |
getInternalValue(java.lang.Object value)
Only check are made to the value. |
Methods inherited from class org.jboss.portal.common.util.TypedMap |
clear, containsKey, containsValue, entrySet, get, getDelegate, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
ParameterMap
public ParameterMap()
assertKeyValidity
protected void assertKeyValidity(java.lang.Object value)
throws java.lang.NullPointerException,
java.lang.ClassCastException
- Only accept non null string objects.
- Specified by:
assertKeyValidity
in class TypedMap
- Throws:
java.lang.NullPointerException
- if the value is null
java.lang.ClassCastException
- if the value is not an instance of string
getInternalValue
protected java.lang.Object getInternalValue(java.lang.Object value)
throws java.lang.NullPointerException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException
- Only check are made to the value. The only valid values accepted
are string arrays with non zero length and containing non null
values.
- Specified by:
getInternalValue
in class TypedMap
- Parameters:
value
- the value to unwrap
- Returns:
- the unwrapped value
- Throws:
java.lang.NullPointerException
- if the value is null
java.lang.ClassCastException
- if the value type is not an array of string
java.lang.IllegalArgumentException
- if the array length is zero or one of the array value is null
getExternalValue
protected java.lang.Object getExternalValue(java.lang.Object value)
- Description copied from class:
TypedMap
- Wrap the internal value into its external representation.
- Specified by:
getExternalValue
in class TypedMap