fr.opensagres.xdocreport.template
Interface IContext

All Known Implementing Classes:
XDocFreemarkerContext, XDocVelocityContext

public interface IContext

Context used to register a Java model with given key. This context is used for merging XML document archive with the Java model and generate report.


Method Summary
 Object get(String key)
          Get the Java object with the given key which was registered and null otherwise.
 Map<String,Object> getContextMap()
           
 Object put(String key, Object value)
          Register a Java object with the given key.
 void putMap(Map<String,Object> contextMap)
           
 

Method Detail

put

Object put(String key,
           Object value)
Register a Java object with the given key.

Parameters:
key -
value - Java model
Returns:

get

Object get(String key)
Get the Java object with the given key which was registered and null otherwise.

Parameters:
key -
Returns:

putMap

void putMap(Map<String,Object> contextMap)
Parameters:
contextMap -

getContextMap

Map<String,Object> getContextMap()


Copyright © 2013. All rights reserved.