public interface PropertyEvaluator
This interface defines no independent thread safety, but in typical usage it will be used with the project manager mutex. Changes should be fired synchronously.
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a listener to changes in particular property values.
|
String |
evaluate(String text)
Evaluate a block of text possibly containing property references.
|
Map<String,String> |
getProperties()
Get a set of all current property definitions at once.
|
String |
getProperty(String prop)
Evaluate a single property.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener to changes in particular property values.
|
@CheckForNull String getProperty(@NonNull String prop)
prop
- the name of a property@CheckForNull String evaluate(@NonNull String text)
text
- some text possibly containing one or more property references@CheckForNull Map<String,String> getProperties()
void addPropertyChangeListener(PropertyChangeListener listener)
listener
- a listener to addvoid removePropertyChangeListener(PropertyChangeListener listener)
listener
- a listener to remove