public interface ECPProperties
ECPProperties
are used to store key - value - pairs.
It publishes observable events on the ECPObserverBus
.
Related Observer types: ECPPropertiesObserver
. Use ECPUtil.getECPObserverBus()
to
retrieve the ObserverBus and
ECPObserverBus#register(ECPObserver)
to register an Observer.Modifier and Type | Method and Description |
---|---|
void |
addObserver(ECPPropertiesObserver changeObserver)
Adds an
ECPPropertiesObserver which will be notified if a property changes. |
void |
addProperty(String key,
String value)
Adds a key-value-pair.
|
ECPProperties |
copy()
Creates a copy of the current set of properties.
|
Set<String> |
getKeys()
All stored keys.
|
Collection<Map.Entry<String,String>> |
getProperties()
All Properties.
|
String |
getValue(String key)
Get the value of a property identified by this key.
|
boolean |
hasProperties()
Whether any properties are stored.
|
void |
removeObserver(ECPPropertiesObserver changeObserver)
Removes an
ECPPropertiesObserver from the collection of observer which will be notified if a
property changes. |
void |
removeProperty(String key)
Removes a property.
|
void addProperty(String key, String value)
key
- the key of the propertyvalue
- the value of the propertyvoid removeProperty(String key)
key
- of the property to removeString getValue(String key)
key
- the key of the property to findCollection<Map.Entry<String,String>> getProperties()
boolean hasProperties()
ECPProperties copy()
void addObserver(ECPPropertiesObserver changeObserver)
ECPPropertiesObserver
which will be notified if a property changes.changeObserver
- the observer to addvoid removeObserver(ECPPropertiesObserver changeObserver)
ECPPropertiesObserver
from the collection of observer which will be notified if a
property changes.changeObserver
- the observer to removeCopyright © 2019. All rights reserved.