oracle.ide.util
Interface PropertyAccess
- All Known Subinterfaces:
- Layout
- All Known Implementing Classes:
- PropertiesNode
- public interface PropertyAccess
The PropertyAccess
interface provides the API for
getting and setting properties.
Method Summary |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Retrieves the value associated with a property. |
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. |
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
- Retrieves the value associated with a property. If no value
exists for the requested property, the specified default value
is returned.
- Parameters:
key
- the property key for which a value is desired.defaultValue
- the value to return if no value currently
exists.- Returns:
- the value of the requested property, or the default value
if the property does not exist.
setProperty
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
- Sets the value for a property.
- Parameters:
key
- the property key to setvalue
- the string value to set- Returns:
- the previous value
removeProperty
public java.lang.Object removeProperty(java.lang.String key)
- Removes the property.
- Parameters:
key
- the property key to remove- Returns:
- the previous value