Interface Element
-
public interface Element
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementVisitoraccept(ElementVisitor visitor)Accept the visitor to visit the elementElementaddNewLine(boolean needNewLine)Set the value isNewLine for the case digestElementconfig(PluginConfig templateConfig)Sets the template configure for the elementStringgetLanguage()Gets the language what belongs to the templatePluginConfiggetPluginConfig()Gets template configure for the element uses it in the case when we need to get the groovy template.StringgetTemplate()Gets the template of specified elementbooleanisNewLine()Get the value of isNewLineElementlanguage(String language)Assigns the language toElementtemplate(String template)Assigns the template to the element
-
-
-
Method Detail
-
getLanguage
String getLanguage()
Gets the language what belongs to the template- Returns:
-
accept
ElementVisitor accept(ElementVisitor visitor)
Accept the visitor to visit the element- Parameters:
visitor-- Returns:
-
getTemplate
String getTemplate()
Gets the template of specified element- Returns:
-
template
Element template(String template)
Assigns the template to the element- Parameters:
template-- Returns:
-
getPluginConfig
PluginConfig getPluginConfig()
Gets template configure for the element uses it in the case when we need to get the groovy template.- Returns:
-
config
Element config(PluginConfig templateConfig)
Sets the template configure for the element- Parameters:
templateConfig-- Returns:
-
addNewLine
Element addNewLine(boolean needNewLine)
Set the value isNewLine for the case digest- Parameters:
needNewLine-- Returns:
-
isNewLine
boolean isNewLine()
Get the value of isNewLine- Returns:
-
-