@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()
Startablepublic void refreshTerminologyEntries()
TerminologyTransformerTerminologyEntryReader.getAllTerminologyEntries().refreshTerminologyEntries in interface TerminologyTransformerpublic String process(String text)
TerminologyTransformerTerminologyEntry'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 TerminologyTransformertext - Input text to do replacements.Copyright © 2002-2022 Atlassian. All Rights Reserved.