org.bejug.javacareers.common.templates
Class TemplateHolder

java.lang.Object
  extended byorg.bejug.javacareers.common.templates.TemplateHolder

public class TemplateHolder
extends java.lang.Object

Version:
$Revision: 1.12 $ - $Date: 2005/12/20 15:36:46 $
Author:
bbr (last modified by $Author: shally $)

Constructor Summary
TemplateHolder()
           
 
Method Summary
 java.lang.String getContent()
           
 java.lang.String getFilepath()
           
 java.lang.String getLocale()
           
 java.lang.String getShortName()
           
 org.apache.velocity.Template getTemplate()
           
 void setContent(java.lang.String content)
          sets the content.
 void setFilepath(java.lang.String filepath)
          sets the filepath.
 void setLocale(java.lang.String locale)
          sets the locale.
 void setTemplate(org.apache.velocity.Template velTemplate)
          sets the template.
 java.lang.String toString()
          Gets a String representation of this obfeject.
 void update()
          to update the template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateHolder

public TemplateHolder()
Method Detail

setTemplate

public void setTemplate(org.apache.velocity.Template velTemplate)
sets the template.

Parameters:
velTemplate - the template to set.

getShortName

public java.lang.String getShortName()
Returns:
the short name, this is the name up to '_' or up to '.'

getFilepath

public java.lang.String getFilepath()
Returns:
the filepath.

setFilepath

public void setFilepath(java.lang.String filepath)
sets the filepath.

Parameters:
filepath - a String indicating the filepath to set.

setLocale

public void setLocale(java.lang.String locale)
sets the locale.

Parameters:
locale - a String indicating the locale to set.

getTemplate

public org.apache.velocity.Template getTemplate()
Returns:
the wanted template.

getLocale

public java.lang.String getLocale()
Returns:
a String containing the locale.

getContent

public java.lang.String getContent()
Returns:
a String containing the content of the velocitytemplate.

setContent

public void setContent(java.lang.String content)
sets the content.

Parameters:
content - a String containing the content.

update

public void update()
            throws java.lang.Exception
to update the template.

Throws:
java.lang.Exception - on template failures

toString

public java.lang.String toString()
Gets a String representation of this obfeject.

Returns:
String A string representation of the properties


Copyright © 2005-2006 BeJUG. All Rights Reserved.