moritz.eric
Class TallXSLT

java.lang.Object
  extended bymoritz.eric.TallXSLT

public class TallXSLT
extends java.lang.Object


Constructor Summary
TallXSLT(java.lang.String templateDir)
          This is the Constructor
 
Method Summary
 DataStore getDataStore()
          This returns the current DataStore.
 java.lang.String getTemplateDir()
          This returns the current template directory
 java.lang.String getTemplateExtension()
          This returns the default template extention
 java.lang.String parse(java.lang.String templateName)
          This parses a XSL template from your template dir.
 void setTemplateExtension(java.lang.String templateExtension)
          This sets the default template extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TallXSLT

public TallXSLT(java.lang.String templateDir)
         throws java.lang.Exception
This is the Constructor

Parameters:
templateDir - The absolute path to the folder holding your templates
Method Detail

parse

public java.lang.String parse(java.lang.String templateName)
                       throws java.lang.Exception
This parses a XSL template from your template dir.

Parameters:
templateName - This is the filename without any inital directory seperators or extention. i.e. use 'test' not /test.xsl for subdirectories, seperated them with a period. i.e. products/smalldisplay.xsl becomes "products.smalldisplay". The reason for this is to allow the template names to be platform independent.
Throws:
java.lang.Exception

getTemplateDir

public java.lang.String getTemplateDir()
This returns the current template directory

Returns:
The template dir

getDataStore

public DataStore getDataStore()
This returns the current DataStore.


setTemplateExtension

public void setTemplateExtension(java.lang.String templateExtension)
This sets the default template extension. The default value is ".xsl"

Parameters:
templateExtension - This is the template extension

getTemplateExtension

public java.lang.String getTemplateExtension()
This returns the default template extention

Returns:
The extension