org.apache.struts2.components.template
Class Template

java.lang.Object
  extended by 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.
 
Method Summary
protected  java.lang.Object clone()
           
 java.lang.String getDir()
           
 java.lang.String getName()
           
 java.util.List<Template> getPossibleTemplates(TemplateEngine engine)
           
 java.lang.String getTheme()
           
 java.lang.String toString()
          Constructs a string in the format /dir/theme/name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 template
name - the name of the template.
Method Detail

getDir

public java.lang.String getDir()

getTheme

public java.lang.String getTheme()

getName

public java.lang.String getName()

getPossibleTemplates

public java.util.List<Template> 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-2011 Apache Software Foundation. All Rights Reserved.