wt.htmlutil
Class CachedHTMLTemplate

java.lang.Object
  extended bywt.htmlutil.CachedHTMLTemplate

public class CachedHTMLTemplate
extends Object

CachedHTMLTemplate is a pre-parsed representation of an HTML template. It contains a list of TemplateAction objects representing actions to perform for the template output. Currently there are two types of TemplateAction: MethodAction for invoking methods, and TextAction for outputting static text.


Field Summary
private  long lastModified
          Deprecated.  
private  Vector parsedData
          Deprecated.  
 
Constructor Summary
CachedHTMLTemplate()
          Deprecated. Default Constructor, creates the parsedData Vector and initializes lastModified.
 
Method Summary
 void addAction(TemplateAction ta)
          Deprecated. Add a TemplateAction to the list
 void execute(OutputStream out)
          Deprecated. Execute the parsed template on the given output stream
 void execute(OutputStream out, Object context, Locale locale)
          Deprecated. Execute the parsed template on the given output stream, context, and locale
 void execute(OutputStream out, Object context, Locale locale, boolean includeLocale)
          Deprecated. Execute the parsed template on the given output stream, context, locale, and specify whether the locale should be used
 TemplateAction getAction(int index)
          Deprecated. Get the action at a certain index
 long getLastModified()
          Deprecated. Get when the template for this parsed data was last modified
 void insertActionAt(TemplateAction ta, int index)
          Deprecated. Insert an action after a certain point
 void removeActionAt(int index)
          Deprecated. Remove a TemplateAction at a certain point
 void setLastModified(long lastModified)
          Deprecated. Set when the template for this parsed data was last modified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsedData

private Vector parsedData
Deprecated. 

lastModified

private long lastModified
Deprecated. 
Constructor Detail

CachedHTMLTemplate

public CachedHTMLTemplate()
Deprecated. 
Default Constructor, creates the parsedData Vector and initializes lastModified.

Method Detail

getLastModified

public long getLastModified()
Deprecated. 
Get when the template for this parsed data was last modified

Returns:
The date, as a long

setLastModified

public void setLastModified(long lastModified)
Deprecated. 
Set when the template for this parsed data was last modified

Parameters:
lastModified - The new date, as a long

addAction

public void addAction(TemplateAction ta)
Deprecated. 
Add a TemplateAction to the list

Parameters:
ta - The TemplateAction instance

removeActionAt

public void removeActionAt(int index)
Deprecated. 
Remove a TemplateAction at a certain point

Parameters:
index - The index of the action to remove

insertActionAt

public void insertActionAt(TemplateAction ta,
                           int index)
Deprecated. 
Insert an action after a certain point

Parameters:
ta - The action
index - The index to insert it after

getAction

public TemplateAction getAction(int index)
Deprecated. 
Get the action at a certain index

Parameters:
index - The index from which to get the action
Returns:
The action at that index

execute

public void execute(OutputStream out)
             throws WTException,
                    IOException
Deprecated. 
Execute the parsed template on the given output stream

Parameters:
out - The OutputStream to write to
Throws:
WTException
IOException

execute

public void execute(OutputStream out,
                    Object context,
                    Locale locale)
             throws WTException,
                    IOException
Deprecated. 
Execute the parsed template on the given output stream, context, and locale

Parameters:
out - The OutputStream to write to
context - The object to invoke methods on
locale - The locale to pass into the invocations
Throws:
WTException
IOException

execute

public void execute(OutputStream out,
                    Object context,
                    Locale locale,
                    boolean includeLocale)
             throws WTException,
                    IOException
Deprecated. 
Execute the parsed template on the given output stream, context, locale, and specify whether the locale should be used

Parameters:
out - The OutputStream to write to
context - The object to invoke methods on
locale - The locale to pass into the invocations
includeLocale - A flag specifyin whether to use the locale or not
Throws:
WTException
IOException