package io.ebeaninternal.server.deploy;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
public class DeployPropertyParserMap extends DeployParser {
private final Map<String, String> map;
public DeployPropertyParserMap(Map<String, String> map) {
this.map = map;
}
@Override
public Set<String> getIncludes() {
return Collections.emptySet();
}
@Override
public String convertWord() {
String r = getDeployWord(word);
return r == null ? word : r;
}
@Override
public String getDeployWord(String expression) {
return map.get(expression);
}
}