org.apache.struts2.components.template
Class Template
java.lang.Object
org.apache.struts2.components.template.Template
- All Implemented Interfaces:
- java.lang.Cloneable
public class Template
- extends java.lang.Object
- implements java.lang.Cloneable
A template.
A template is used as a model for rendering output.
This object contains basic common template information
Constructor Summary |
Template(java.lang.String dir,
java.lang.String theme,
java.lang.String name)
Constructor. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Template
public Template(java.lang.String dir,
java.lang.String theme,
java.lang.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 java.lang.String getDir()
getTheme
public java.lang.String getTheme()
getName
public java.lang.String getName()
getPossibleTemplates
public java.util.List getPossibleTemplates(TemplateEngine engine)
toString
public java.lang.String toString()
- Constructs a string in the format
/dir/theme/name
.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string in the format
/dir/theme/name
.
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.