org.melati.template
Interface TemplateContext

Package class diagram package 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
 Object get(String s)
          Get an object from the Context by key.
 Object getContext()
          Return the Context itself, as an Object.
 void put(String s, 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(String s,
         Object o)
Put an object into the Context with a key.

Parameters:
s - the key
o - the object

get

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

Parameters:
s - key
Returns:
value

getContext

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-2010 PanEris. All Rights Reserved.