public abstract class Template extends java.lang.Object implements PresentableLookupValue
TemplateManager
Modifier and Type | Class and Description |
---|---|
static class |
Template.Property |
Constructor and Description |
---|
Template() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addEndVariable() |
abstract void |
addSelectionEndVariable() |
abstract void |
addSelectionStartVariable() |
abstract void |
addTextSegment(java.lang.String text) |
abstract Variable |
addVariable(Expression expression,
boolean isAlwaysStopAt) |
Variable |
addVariable(java.lang.String name,
Expression defaultValueExpression,
boolean isAlwaysStopAt) |
Variable |
addVariable(java.lang.String name,
Expression expression,
Expression defaultValueExpression,
boolean isAlwaysStopAt) |
abstract Variable |
addVariable(java.lang.String name,
Expression expression,
Expression defaultValueExpression,
boolean isAlwaysStopAt,
boolean skipOnStart) |
abstract Variable |
addVariable(java.lang.String name,
java.lang.String expression,
java.lang.String defaultValueExpression,
boolean isAlwaysStopAt) |
abstract void |
addVariableSegment(java.lang.String name) |
static boolean |
getDefaultValue(Template.Property key) |
abstract java.lang.String |
getDescription() |
abstract java.lang.String |
getId() |
abstract java.lang.String |
getKey() |
java.lang.String |
getPresentation() |
abstract java.lang.String |
getSegmentName(int segmentIndex) |
abstract int |
getSegmentOffset(int segmentIndex) |
abstract int |
getSegmentsCount() |
abstract java.lang.String |
getString() |
abstract java.lang.String |
getTemplateText() |
boolean |
getValue(Template.Property key) |
abstract boolean |
isToReformat() |
abstract boolean |
isToShortenLongNames() |
abstract void |
setInline(boolean isInline)
Inline templates do not insert text.
|
abstract void |
setToIndent(boolean toIndent) |
abstract void |
setToReformat(boolean toReformat) |
abstract void |
setToShortenLongNames(boolean toShortenLongNames) |
void |
setValue(Template.Property key,
boolean value) |
public abstract void addTextSegment(java.lang.String text)
public abstract void addVariableSegment(java.lang.String name)
public Variable addVariable(java.lang.String name, Expression defaultValueExpression, boolean isAlwaysStopAt)
public abstract Variable addVariable(Expression expression, boolean isAlwaysStopAt)
public Variable addVariable(java.lang.String name, Expression expression, Expression defaultValueExpression, boolean isAlwaysStopAt)
public abstract Variable addVariable(java.lang.String name, Expression expression, Expression defaultValueExpression, boolean isAlwaysStopAt, boolean skipOnStart)
public abstract Variable addVariable(java.lang.String name, java.lang.String expression, java.lang.String defaultValueExpression, boolean isAlwaysStopAt)
public abstract void addEndVariable()
public abstract void addSelectionStartVariable()
public abstract void addSelectionEndVariable()
public abstract java.lang.String getId()
public abstract java.lang.String getKey()
public abstract java.lang.String getDescription()
public abstract boolean isToReformat()
public abstract void setToReformat(boolean toReformat)
public abstract void setToIndent(boolean toIndent)
public abstract void setInline(boolean isInline)
public abstract int getSegmentsCount()
public abstract java.lang.String getSegmentName(int segmentIndex)
public abstract int getSegmentOffset(int segmentIndex)
public abstract java.lang.String getString()
getTemplateText()
public abstract java.lang.String getTemplateText()
getString()
public abstract boolean isToShortenLongNames()
public abstract void setToShortenLongNames(boolean toShortenLongNames)
public boolean getValue(Template.Property key)
public void setValue(Template.Property key, boolean value)
public static boolean getDefaultValue(Template.Property key)
public java.lang.String getPresentation()
getPresentation
in interface PresentableLookupValue