public abstract class RawData extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
analysed
Status info for call to analyzeData method.
|
Constructor and Description |
---|
RawData()
Only used by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String placeholder,
Serializable value)
Adds a placeholder to the replaceMap.
|
void |
addValues(Map<String,Serializable> values)
Adds values from an existing replaceMap.
|
protected abstract void |
analyse()
Subclasses should analyse the data added together.
|
void |
analyseData()
Analyses the data added together.
|
Serializable |
get(String key)
Used to get the value for a placeholder without the placeholder prefix and suffix.
|
Map<String,Serializable> |
getReplaceMap()
Used to get the placeholders and values.
|
boolean |
isAnalysed()
Check if analyseData() has been called.
|
public boolean isAnalysed()
public void analyseData()
Places place-holders to the replace map.
protected abstract void analyse()
Place-holders should be added to the replace map.
public void addValues(Map<String,Serializable> values)
values
- Map that contains place-holders.public void addValue(String placeholder, Serializable value)
placeholder
- placeholder, without prefix and suffixvalue
- Any value the placeholder should be replaced with.public Map<String,Serializable> getReplaceMap()
public Serializable get(String key)
key
- placeholder name without ${ and }Copyright © 2017. All rights reserved.