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(String dir, String theme, String name)
          Constructor.
 
方法摘要
 String getDir()
           
 String getName()
           
 List<Template> getPossibleTemplates(TemplateEngine engine)
           
 String getTheme()
           
 String toString()
          Constructs a string in the format /dir/theme/name.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Template

public Template(String dir,
                String theme,
                String name)
Constructor.

参数:
dir - base folder where the template is stored.
theme - the theme of the template
name - 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.