public class DefaultPropertyAccess extends java.lang.Object implements PropertyAccess
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
_map |
Constructor and Description |
---|
DefaultPropertyAccess() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
get(java.lang.Object key) |
java.lang.String |
getProperty(java.lang.String key, java.lang.String defaultValue)
Retrieves the value associated with a property.
|
protected java.lang.Object |
put(java.lang.Object key, java.lang.Object value) |
protected java.lang.Object |
remove(java.lang.String key) |
java.lang.Object |
removeProperty(java.lang.String key)
Removes the property.
|
java.lang.Object |
setProperty(java.lang.String key, java.lang.String value)
Sets the value for a property.
|
protected final java.lang.Object get(java.lang.Object key)
protected final java.lang.Object put(java.lang.Object key, java.lang.Object value)
protected final java.lang.Object remove(java.lang.String key)
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
PropertyAccess
getProperty
in interface PropertyAccess
key
- the property key for which a value is desired.defaultValue
- the value to return if no value currently exists.public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
PropertyAccess
setProperty
in interface PropertyAccess
key
- the property key to setvalue
- the string value to setpublic java.lang.Object removeProperty(java.lang.String key)
PropertyAccess
removeProperty
in interface PropertyAccess
key
- the property key to remove