public interface PropertySet
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertySet.Property
Marks a field on
PropertySet as a
property of MessageContext . |
Modifier and Type | Method and Description |
---|---|
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. |
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.Property
boolean supports(Object key)
PropertySet
supports a property of the given name.@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
Copyright © 2018 Oracle Corporation. All rights reserved.