|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 find
Set<String> getKeys()
Collection<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 remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |