|
||||||||||
| 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 | |
|---|---|
boolean |
containsKey(java.lang.Object key)
|
java.util.Map<java.lang.String,java.lang.Object> |
createMapView()
Creates a Map view of this PropertySet. |
java.lang.Object |
get(java.lang.Object key)
Gets the name of the property. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Sets a property. |
java.lang.Object |
remove(java.lang.Object key)
|
boolean |
supports(java.lang.Object key)
Checks if this PropertySet supports a property of the given name. |
| Method Detail |
|---|
boolean containsKey(java.lang.Object key)
java.lang.Object get(java.lang.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.
java.lang.Object put(java.lang.String key,
java.lang.Object value)
PropertySet.Propertyboolean supports(java.lang.Object key)
PropertySet supports a property of the given name.
java.lang.Object remove(java.lang.Object key)
java.util.Map<java.lang.String,java.lang.Object> createMapView()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||