com.opensymphony.webwork.components.template
Class Template
java.lang.Object
com.opensymphony.webwork.components.template.Template
- All Implemented Interfaces:
- 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
- Author:
- plightbo
Template
public Template(String dir,
String theme,
String name)
- Constructor.
- Parameters:
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 getPossibleTemplates(TemplateEngine engine)
toString
public String toString()
- Constructs a string in the format
/dir/theme/name.
- Overrides:
toString in class Object
- Returns:
- a string in the format
/dir/theme/name.
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class Object
- Throws:
CloneNotSupportedException
Copyright © 2013 OpenSymphony. All Rights Reserved.