public class StringTemplateBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
keyPrefix |
protected Set<String> |
keySet |
protected String |
keySufix |
protected String |
sourceCode |
Constructor and Description |
---|
StringTemplateBuilder() |
StringTemplateBuilder(String keyPrefix,
String keySufix) |
Modifier and Type | Method and Description |
---|---|
String |
asVar(String key) |
String |
build() |
protected void |
extractKeys() |
String |
getKeyPrefix() |
String |
getKeySufix() |
Set<String> |
keys() |
StringTemplateBuilder |
replace(String key,
String value) |
void |
setKeyPrefix(String keyPrefix) |
void |
setKeySufix(String keySufix) |
void |
setTemplate(String template) |
protected String keyPrefix
protected String keySufix
protected String sourceCode
public void setTemplate(String template)
public String getKeyPrefix()
public void setKeyPrefix(String keyPrefix)
public String getKeySufix()
public void setKeySufix(String keySufix)
public String build()
public StringTemplateBuilder replace(String key, String value)
protected void extractKeys()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.