com.go.tea.runtime
Interface TemplateLoader.Template

Enclosing class:
TemplateLoader

public static interface TemplateLoader.Template

A ready-to-use Tea template.

Version:
15 4 9/07/00
Author:
Brian S O'Neill

Method Summary
 void execute(Context context, java.lang.Object[] parameters)
          Executes this template using the given runtime context instance and parameters.
 java.lang.Class getContextType()
          Returns the type of runtime context that this template accepts.
 java.lang.String getName()
          Returns the full name of this template.
 java.lang.String[] getParameterNames()
          Returns the parameter names that this template accepts.
 java.lang.Class[] getParameterTypes()
          Returns the parameter types that this template accepts.
 java.lang.Class getTemplateClass()
          Returns the class that defines this template.
 TemplateLoader getTemplateLoader()
           
 java.lang.String toString()
          Returns the template signature.
 

Method Detail

getTemplateLoader

public TemplateLoader getTemplateLoader()

getName

public java.lang.String getName()
Returns the full name of this template.

getTemplateClass

public java.lang.Class getTemplateClass()
Returns the class that defines this template.

getContextType

public java.lang.Class getContextType()
Returns the type of runtime context that this template accepts.
See Also:
Context

getParameterNames

public java.lang.String[] getParameterNames()
Returns the parameter names that this template accepts. The length of the returned array is the same as returned by getParameterTypes. If any template parameter names is unknown, the array entry is null.

getParameterTypes

public java.lang.Class[] getParameterTypes()
Returns the parameter types that this template accepts. The length of the returned array is the same as returned by getParameterNames.

execute

public void execute(Context context,
                    java.lang.Object[] parameters)
             throws java.lang.Exception
Executes this template using the given runtime context instance and parameters.
Parameters:
context - Must be assignable to the type returned by getContextType().
parameters - Must have same length and types as returned by getParameterTypes().

toString

public java.lang.String toString()
Returns the template signature.
Overrides:
toString in class java.lang.Object