public interface PropertyManager
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
String value)
Associates the specified value with the specified key.
|
String |
getProperty(String key)
Returns the value of the given key, or null if this Property Manager contains no mapping for
the key.
|
String |
removeProperty(String key)
Removes the association for a key from this store if it is present.
|
String |
updateProperty(String key,
String value)
Replaces the value of the given key in the store.
|
void addProperty(String key, String value)
updateProperty(String, String) method.key - key with which the specified value is to be associatedvalue - value to be associated with the specified keyNullPointerException - if the key or value parameter is null.RuntimeException - an excpetion should be thrown if the key already exists.String getProperty(String key)
key - The key whose associated value is to be returnedNullPointerException - if the key parameter is null.String removeProperty(String key)
key - Key whose mapping is to be removedNullPointerException - if the key parameter is null.String updateProperty(String key, String value)
key - Key with which the specified value is to be associated.value - Value to be associated with the specified key. Null value is not supported.NullPointerException - if the key or value parameter is null.Copyright © 2011–2015 Everit Kft.. All rights reserved.