org.apache.myfaces.trinidadinternal.ui.collection
Class MapContextMap

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.collection.MapContextMap
All Implemented Interfaces:
ContextMap

public final class MapContextMap
extends java.lang.Object
implements ContextMap

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/collection/MapContextMap.java#0 $) $Date: 10-nov-2005.18:57:34 $
Author:
The Oracle ADF Faces Team

Constructor Summary
MapContextMap()
           
MapContextMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Object> createDefaultMap()
           
 java.lang.Object get(UIXRenderingContext context, java.lang.Object key)
          Returns the Object stored under the key, returning null if no Object with that key exists.
 java.util.Iterator<java.lang.String> keys(UIXRenderingContext context)
          Returns an Iterator of all of the keys in the ContextMap given the specified context.
 void set(java.lang.String key, java.lang.Object value)
          Stores the value in the map, under the key.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapContextMap

public MapContextMap()

MapContextMap

public MapContextMap(java.util.Map<java.lang.String,java.lang.Object> map)
Method Detail

get

public java.lang.Object get(UIXRenderingContext context,
                            java.lang.Object key)
Description copied from interface: ContextMap
Returns the Object stored under the key, returning null if no Object with that key exists.

Specified by:
get in interface ContextMap
Parameters:
context - RenderingContext to use to fulfill this request
key - key used to retrieve the value
Returns:
The value stored under this key, or null if no value is found.

set

public void set(java.lang.String key,
                java.lang.Object value)
Description copied from interface: ContextMap
Stores the value in the map, under the key.

As the RenderingContext is not passed to this function, sets do not have the same databinding capabilities that gets do.

Specified by:
set in interface ContextMap
Parameters:
key - key used to set the value
value - The new value to set

keys

public java.util.Iterator<java.lang.String> keys(UIXRenderingContext context)
Description copied from interface: ContextMap
Returns an Iterator of all of the keys in the ContextMap given the specified context.

The entire contents of the ContextMap can be retrieved by calling ContextMap.get for each of the keys in the enumeration.

Specified by:
keys in interface ContextMap
Returns:
The Iterator of keys in the RenderingContext

size

public int size()

createDefaultMap

protected java.util.Map<java.lang.String,java.lang.Object> createDefaultMap()


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.