org.springframework.faces.webflow.context.portlet
Class InitParameterMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter<java.lang.String>
org.springframework.faces.webflow.context.portlet.InitParameterMap
- All Implemented Interfaces:
- java.util.Map<java.lang.String,java.lang.String>
public class InitParameterMap
- extends StringKeyedMapAdapter<java.lang.String>
Map backed by a PortletContext for accessing Portlet initialization parameters.
- Since:
- 2.2.0
- Author:
- Rossen Stoyanchev
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
InitParameterMap(javax.portlet.PortletContext portletContext)
|
Method Summary |
protected java.lang.String |
getAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses. |
protected java.util.Iterator<java.lang.String> |
getAttributeNames()
Hook method that needs to be implemented by concrete subclasses. |
protected void |
removeAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses. |
protected void |
setAttribute(java.lang.String key,
java.lang.String value)
Hook method that needs to be implemented by concrete subclasses. |
Methods inherited from class org.springframework.binding.collection.StringKeyedMapAdapter |
clear, containsKey, containsValue, entrySet, get, 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 |
InitParameterMap
public InitParameterMap(javax.portlet.PortletContext portletContext)
getAttribute
protected java.lang.String getAttribute(java.lang.String key)
- Description copied from class:
StringKeyedMapAdapter
- Hook method that needs to be implemented by concrete subclasses. Gets a value associated with a key.
- Specified by:
getAttribute
in class StringKeyedMapAdapter<java.lang.String>
- Parameters:
key
- the key to lookup
- Returns:
- the associated value, or null if none
setAttribute
protected void setAttribute(java.lang.String key,
java.lang.String value)
- Description copied from class:
StringKeyedMapAdapter
- Hook method that needs to be implemented by concrete subclasses. Puts a key-value pair in the map, overwriting
any possible earlier value associated with the same key.
- Specified by:
setAttribute
in class StringKeyedMapAdapter<java.lang.String>
- Parameters:
key
- the key to associate the value withvalue
- the value to associate with the key
removeAttribute
protected void removeAttribute(java.lang.String key)
- Description copied from class:
StringKeyedMapAdapter
- Hook method that needs to be implemented by concrete subclasses. Removes a key and its associated value from the
map.
- Specified by:
removeAttribute
in class StringKeyedMapAdapter<java.lang.String>
- Parameters:
key
- the key to remove
getAttributeNames
protected java.util.Iterator<java.lang.String> getAttributeNames()
- Description copied from class:
StringKeyedMapAdapter
- Hook method that needs to be implemented by concrete subclasses. Returns an enumeration listing all keys known to
the map.
- Specified by:
getAttributeNames
in class StringKeyedMapAdapter<java.lang.String>
- Returns:
- the key enumeration