public class DictionaryTransformer extends Object implements Transformer
Dictionary
object to lookup a string in its
keys and returns the value if the key is found. Otherwise it returns the
original string.Modifier and Type | Field and Description |
---|---|
(package private) Dictionary |
dictionary |
Constructor and Description |
---|
DictionaryTransformer() |
Modifier and Type | Method and Description |
---|---|
Dictionary |
getDictionary() |
void |
setDictionary(Dictionary dictionary) |
String |
transform(String s) |
Dictionary dictionary
public DictionaryTransformer()
public String transform(String s) throws TransformationException
transform
in interface Transformer
TransformationException
public Dictionary getDictionary()
public void setDictionary(Dictionary dictionary)
Copyright © 2012–2014 Royal Botanic Gardens, Kew. All rights reserved.