Class MapAttributeResolver
- java.lang.Object
-
- org.gatein.pc.api.invocation.resolver.MapAttributeResolver
-
- All Implemented Interfaces:
AttributeResolver
public class MapAttributeResolver extends Object implements AttributeResolver
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description MapAttributeResolver()MapAttributeResolver(Map attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(Object attrKey)Return an attribute from this resolver.SetgetKeys()Returns the set of keys of the attributes bound in that resolver.voidsetAttribute(Object attrKey, Object attrValue)Update an attribute value on this resolve.
-
-
-
Constructor Detail
-
MapAttributeResolver
public MapAttributeResolver(Map attributes)
-
MapAttributeResolver
public MapAttributeResolver()
-
-
Method Detail
-
getKeys
public Set getKeys()
Description copied from interface:AttributeResolverReturns the set of keys of the attributes bound in that resolver.- Specified by:
getKeysin interfaceAttributeResolver- Returns:
- a set of keys
-
getAttribute
public Object getAttribute(Object attrKey) throws IllegalArgumentException
Description copied from interface:AttributeResolverReturn an attribute from this resolver.- Specified by:
getAttributein interfaceAttributeResolver- Returns:
- the attribute value or null if it is not found
- Throws:
IllegalArgumentException- if the attribute key is not valid
-
setAttribute
public void setAttribute(Object attrKey, Object attrValue) throws IllegalArgumentException
Description copied from interface:AttributeResolverUpdate 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:
setAttributein interfaceAttributeResolverattrValue- the attribute value- Throws:
IllegalArgumentException- if the attribute key is not valid
-
-