|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertySet
A set of "properties" that can be accessed via strongly-typed fields as well as reflexibly through the property name.
| Nested Class Summary | |
|---|---|
static interface |
PropertySet.Property
Marks a field on PropertySet as a
property of MessageContext. |
| Method Summary | |
|---|---|
Map<String,Object> |
asMap()
Creates a modifiable Map view of this PropertySet. |
boolean |
containsKey(Object key)
|
Map<String,Object> |
createMapView()
Deprecated. use newer implementation BasePropertySet.asMap() which produces
readwrite Map |
Object |
get(Object key)
Gets the name of the property. |
Object |
put(String key,
Object value)
Sets a property. |
Object |
remove(Object key)
|
boolean |
supports(Object key)
Checks if this PropertySet supports a property of the given name. |
| Method Detail |
|---|
boolean containsKey(Object key)
Object get(Object key)
key - This field is typed as Object to follow the Map.get(Object)
convention, but if anything but String is passed, this method
just returns null.
Object put(String key,
Object value)
PropertySet.Propertyboolean supports(Object key)
PropertySet supports a property of the given name.
Object remove(Object key)
@Deprecated Map<String,Object> createMapView()
BasePropertySet.asMap() which produces
readwrite Map
Map view of this PropertySet.
This map is partially live, in the sense that values you set to it
will be reflected to PropertySet.
However, this map may not pick up changes made
to PropertySet after the view is created.
Map<String,Object> asMap()
Map view of this PropertySet.
Changes done on this Map or on PropertySet object work in both directions - values made to
Map are reflected to PropertySet and changes done using getters/setters on PropertySet
object are automatically reflected in this Map.
If necessary, it also can hold other values (not present on PropertySet) -
PropertySet#mapAllowsAdditionalProperties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||