|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.jsf.FacesMap<MemberType>
public class FacesMap<MemberType extends Serializable>
Supplies an implemented Map interface intended for use within a JSF expression.
All Map interface methods are implemented, but basically have no behavior.
Sub-classes should override the "public Object get(Object key)" method to provide JSF with expression based results.
Example:
rendered="#{PageContext.roleMap['someRole']}"
In this case, RoleMap extends FacesMap and overrides the get() method returning a Boolean indicating whether or not the active user has the supplied role 'someRole'.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
FacesMap()
Default constructor. |
Method Summary | |
---|---|
void |
clear()
Clears the map. |
boolean |
containsKey(Object key)
Determines if a key is contained within the map. |
boolean |
containsValue(Object value)
Determines if a value is contained within the map. |
Set<Map.Entry<String,MemberType>> |
entrySet()
Returns the set of entries contained within the map. |
MemberType |
get(Object key)
Gets the value associated with a key. |
boolean |
isEmpty()
Determines if the map is empty. |
Set<String> |
keySet()
Returns the set of keys contained within the map. |
MemberType |
put(String key,
MemberType value)
Puts a value within the map. |
void |
putAll(Map<? extends String,? extends MemberType> map)
Copies the entries from the supplied Map to this Map. |
MemberType |
remove(Object key)
Removes the value associated with a key. |
int |
size()
Returns the number of entries contained within the map. |
Collection<MemberType> |
values()
Returns the collection of values contained within the map. |
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 |
Constructor Detail |
---|
public FacesMap()
Method Detail |
---|
public void clear()
clear
in interface Map<String,MemberType extends Serializable>
public boolean containsKey(Object key)
containsKey
in interface Map<String,MemberType extends Serializable>
key
- the key to check
public boolean containsValue(Object value)
containsValue
in interface Map<String,MemberType extends Serializable>
value
- the value to check
public Set<Map.Entry<String,MemberType>> entrySet()
entrySet
in interface Map<String,MemberType extends Serializable>
public MemberType get(Object key)
get
in interface Map<String,MemberType extends Serializable>
public boolean isEmpty()
isEmpty
in interface Map<String,MemberType extends Serializable>
public Set<String> keySet()
keySet
in interface Map<String,MemberType extends Serializable>
public MemberType put(String key, MemberType value)
put
in interface Map<String,MemberType extends Serializable>
key
- the map entry keyvalue
- the map entry value (always null)public void putAll(Map<? extends String,? extends MemberType> map)
putAll
in interface Map<String,MemberType extends Serializable>
map
- the map to copypublic MemberType remove(Object key)
remove
in interface Map<String,MemberType extends Serializable>
key
- the key associated with the value to remove
public int size()
size
in interface Map<String,MemberType extends Serializable>
public Collection<MemberType> values()
values
in interface Map<String,MemberType extends Serializable>
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |