Define a Map-like contract
that makes it easier for components to implement PartialStateHolder. Each UIComponent in the view will
return an implementation of this interface from its UIComponent#getStateHelper method.
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Serializable
the key for which the value should be returned. key, Object the value to add value)Store the specified
|
| public Object | Returns: the evaluated value.the name of the value in the internal map, or the name
of a value expression in the components value expression
collection. key)Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found. |
| public Object | Returns: the evaluated value.the key for which the value should be returned. key, Object the value to return if no value is found in
the call to defaultValue)eval().Performs the same logic as |
| public Object | Returns: the value.the key for which the value should be returned. key)Return the value currently
associated with the specified |
| public Object | Returns: the previously stored valuethe key for the value key, Object the value value)Return the previously stored value and store the specified key/value pair. |
| public Object | Returns: the value.the key of the map itself key, String the key within the internal map mapKey, Object the value for the key in the internal map value)Store the specified
|
| public Object | Returns: the removed value.the key to remove key)Remove the key/value pair from the helper, returning the value previously stored under this key. |
| public Object | Returns: the removed value.the key of in the inner data structure whose value is
a key, Object Collection or Mapthe value or key to be removed. valueOrKey)Remove a value from the inner data structure. |
| add | back to summary |
|---|---|
| public void add(Serializable key, Object value) Store the specified
It's important to note for delta
tracking that any modifications to the internal
| |
| eval | back to summary |
|---|---|
| public Object eval(Serializable key) Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found.
| |
| eval | back to summary |
|---|---|
| public Object eval(Serializable key, Object defaultValue) Performs the same logic as
| |
| get | back to summary |
|---|---|
| public Object get(Serializable key) Return the value currently
associated with the specified
| |
| put | back to summary |
|---|---|
| public Object put(Serializable key, Object value) Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component.
| |
| put | back to summary |
|---|---|
| public Object put(Serializable key, String mapKey, Object value) Store the specified
It's important to note for delta tracking that any
modifications to the internal
| |
| remove | back to summary |
|---|---|
| public Object remove(Serializable key) Remove the key/value pair from the helper, returning the value previously stored under this key.
| |
| remove | back to summary |
|---|---|
| public Object remove(Serializable key, Object valueOrKey) Remove a value from the inner data
structure. Look in the inner data structure for the value at the
given
| |