当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractInvocationContextTestCase.MapResolver - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.test.common
Class AbstractInvocationContextTestCase.MapResolver
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.jboss.portal.test.common.AbstractInvocationContextTestCase.MapResolver
- All Implemented Interfaces:
- AttributeResolver, java.lang.Cloneable, java.util.Map, java.io.Serializable
- Enclosing class:
- AbstractInvocationContextTestCase
- private static class AbstractInvocationContextTestCase.MapResolver
- extends java.util.HashMap
- implements AttributeResolver
Nested classes inherited from class java.util.HashMap |
|
Nested classes inherited from class java.util.AbstractMap |
|
Fields inherited from class java.util.HashMap |
|
Fields inherited from class java.util.AbstractMap |
|
Method Summary |
java.lang.Object |
getAttribute(java.lang.Object attrKey)
Return an attribute from this resolver. |
java.util.Set |
getKeys()
Returns the set of keys of the attributes bound in that resolver. |
void |
setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
Update an attribute value on this resolve. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
AbstractInvocationContextTestCase.MapResolver
private AbstractInvocationContextTestCase.MapResolver()
getKeys
public java.util.Set getKeys()
- Description copied from interface:
AttributeResolver
- Returns the set of keys of the attributes bound in that resolver.
- Specified by:
getKeys
in interface AttributeResolver
- Returns:
- a set of keys
getAttribute
public java.lang.Object getAttribute(java.lang.Object attrKey)
throws java.lang.IllegalArgumentException
- Description copied from interface:
AttributeResolver
- Return an attribute from this resolver.
- Specified by:
getAttribute
in interface AttributeResolver
- Parameters:
attrKey
-
- Returns:
- the attribute value or null if it is not found
- Throws:
java.lang.IllegalArgumentException
- if the attribute key is not valid
setAttribute
public void setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
throws java.lang.IllegalArgumentException
- Description copied from interface:
AttributeResolver
- Update an attribute value on this resolve. If the attribute value is null
the resolver must treat the operation as a removal of the attribute.
- Specified by:
setAttribute
in interface AttributeResolver
- Parameters:
attrKey
- attrValue
- the attribute value
- Throws:
java.lang.IllegalArgumentException
- if the attribute key is not valid