org.apache.sirona.reporting.web.plugin.api
Class Template

java.lang.Object
  extended by org.apache.sirona.reporting.web.plugin.api.Template

public class Template
extends Object

Represents a template (by name/path) and its set of parameters.


Constructor Summary
Template(String template)
           
Template(String template, Map<String,Object> userParams)
           
Template(String template, Map<String,Object> userParams, boolean isHtml)
           
 
Method Summary
 String getTemplate()
           
 Map<String,?> getUserParams()
           
 boolean isHtml()
           
 Template set(String attribute, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template(String template)

Template

public Template(String template,
                Map<String,Object> userParams)

Template

public Template(String template,
                Map<String,Object> userParams,
                boolean isHtml)
Parameters:
template - template path, if isHtml is true it is relative to /templates otherwise it is absolute.
userParams - variables used by the template
isHtml - should the template be rendered with the site them or not (= is it a page fragment).
Method Detail

getTemplate

public String getTemplate()

getUserParams

public Map<String,?> getUserParams()

isHtml

public boolean isHtml()

set

public Template set(String attribute,
                    Object value)


Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.