org.melati.template
Interface TemplateContext

All Known Subinterfaces:
ServletTemplateContext
All Known Implementing Classes:
MultipartTemplateContext, VelocityServletTemplateContext, VelocityTemplateContext, WebmacroServletTemplateContext, WebmacroTemplateContext

public interface TemplateContext

A Context for use by a TemplateEngine to expand a Template against.

See Also:
ServletTemplateContext

Method Summary
 java.lang.Object get(java.lang.String s)
          Get an object from the Context by key.
 java.lang.Object getContext()
          Return the Context itself, as an Object.
 void put(java.lang.String s, java.lang.Object o)
          Put an object into the Context with a key.
 void setPassbackExceptionHandling()
          Set the current exception handling style.
 void setPropagateExceptionHandling()
          Set the current exception handling style.
 

Method Detail

put

void put(java.lang.String s,
         java.lang.Object o)
Put an object into the Context with a key.

Parameters:
s - the key
o - the object

get

java.lang.Object get(java.lang.String s)
Get an object from the Context by key.

Parameters:
s - key
Returns:
value

getContext

java.lang.Object getContext()
Return the Context itself, as an Object.

Returns:
the Context

setPassbackExceptionHandling

void setPassbackExceptionHandling()
Set the current exception handling style.


setPropagateExceptionHandling

void setPropagateExceptionHandling()
Set the current exception handling style.



Copyright © 2000-2009 PanEris. All Rights Reserved.