@ThreadSafe @ReturnValuesAreNonnullByDefault @ParametersAreNonnullByDefault public class TerminologyTransformerImpl extends Object implements TerminologyTransformer, Startable
Constructor and Description |
---|
TerminologyTransformerImpl(TerminologyEntryReader terminologyEntryReader) |
Modifier and Type | Method and Description |
---|---|
String |
process(String text)
Replace marked occurrences of
TerminologyEntry 's original name with new name
for all TerminologyEntryReader.getAllTerminologyEntries() in given text. |
void |
refreshTerminologyEntries()
Get newest terminology entries from
TerminologyEntryReader.getAllTerminologyEntries() . |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public TerminologyTransformerImpl(TerminologyEntryReader terminologyEntryReader)
public void start()
Startable
public void refreshTerminologyEntries()
TerminologyTransformer
TerminologyEntryReader.getAllTerminologyEntries()
.refreshTerminologyEntries
in interface TerminologyTransformer
public String process(String text)
TerminologyTransformer
TerminologyEntry
's original name with new name
for all TerminologyEntryReader.getAllTerminologyEntries()
in given text.
To mark occurrence surround it with '%', e.g. "This occurrence of %sprint% will be replaced, but this sprint will not".
process
in interface TerminologyTransformer
text
- Input text to do replacements.Copyright © 2002-2023 Atlassian. All Rights Reserved.