org.apache.sirona.reporting.web.plugin.api
Class Template
java.lang.Object
org.apache.sirona.reporting.web.plugin.api.Template
public class Template
- extends Object
Represents a template (by name/path)
and its set of parameters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 templateisHtml
- should the template be rendered with the site them or not (= is it a page fragment).
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.