org.apache.struts2.components.template
类 Template
java.lang.Object
org.apache.struts2.components.template.Template
- 所有已实现的接口:
- Cloneable
public class Template
- extends Object
- implements Cloneable
A template.
A template is used as a model for rendering output.
This object contains basic common template information
Template
public Template(String dir,
String theme,
String name)
- Constructor.
- 参数:
dir
- base folder where the template is stored.theme
- the theme of the templatename
- the name of the template.
getDir
public String getDir()
getTheme
public String getTheme()
getName
public String getName()
getPossibleTemplates
public List<Template> getPossibleTemplates(TemplateEngine engine)
toString
public String toString()
- Constructs a string in the format
/dir/theme/name
.
- 覆盖:
- 类
Object
中的 toString
- 返回:
- a string in the format
/dir/theme/name
.