public class Template extends java.lang.Object implements TemplateParser
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
DECLARATION, FIELD, IMPORT, METHOD, PACKAGE, TEMPLATE, TEMPLATEEND, VALUE| Constructor and Description |
|---|
Template() |
Template(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
TemplateResultFragment |
generate(LocalisationInterface parameters,
SendableEntityCreator parent,
GraphMember member) |
java.lang.String |
getName() |
int |
getType() |
SimpleList<java.lang.String> |
getVariables() |
ObjectCondition |
parsing(CharacterBuffer buffer,
LocalisationInterface customTemplate,
boolean isExpression,
java.lang.String... stopWords) |
ObjectCondition |
parsing(StringCondition tokenTemplate,
LocalisationInterface customTemplate,
boolean variable) |
void |
setType(int type) |
protected void |
setValue(java.lang.CharSequence value) |
java.lang.String |
toString() |
Template |
withCondition(java.lang.CharSequence condition) |
Template |
withImport(java.lang.String item) |
Template |
withTemplate(java.lang.String... template) |
Template |
withType(int type) |
public TemplateResultFragment generate(LocalisationInterface parameters, SendableEntityCreator parent, GraphMember member)
public ObjectCondition parsing(StringCondition tokenTemplate, LocalisationInterface customTemplate, boolean variable)
public ObjectCondition parsing(CharacterBuffer buffer, LocalisationInterface customTemplate, boolean isExpression, java.lang.String... stopWords)
parsing in interface TemplateParserpublic Template withTemplate(java.lang.String... template)
protected void setValue(java.lang.CharSequence value)
public Template withCondition(java.lang.CharSequence condition)
public Template withImport(java.lang.String item)
public int getType()
public void setType(int type)
public Template withType(int type)
public SimpleList<java.lang.String> getVariables()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()