net.sf.jasperreports.engine
Class SimpleJasperReportsContext
java.lang.Object
net.sf.jasperreports.engine.SimpleJasperReportsContext
- All Implemented Interfaces:
- JasperReportsContext
- Direct Known Subclasses:
- LocalJasperReportsContext
public class SimpleJasperReportsContext
- extends Object
- implements JasperReportsContext
- Version:
- $Id: SimpleJasperReportsContext.java 5268 2012-04-13 11:44:13Z lucianc $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleJasperReportsContext
public SimpleJasperReportsContext()
- Constructs a SimpleJasperReportsContext instance that has the DefaultJasperReportsContext.getInstance() as parent.
SimpleJasperReportsContext
public SimpleJasperReportsContext(JasperReportsContext parent)
setParent
public void setParent(JasperReportsContext parent)
getValue
public Object getValue(String key)
- Specified by:
getValue in interface JasperReportsContext
setValue
public void setValue(String key,
Object value)
- Specified by:
setValue in interface JasperReportsContext
removeValue
public void removeValue(String key)
getExtensions
public <T> List<T> getExtensions(Class<T> extensionType)
- Returns a list of extension objects for a specific extension type.
- Specified by:
getExtensions in interface JasperReportsContext
- Type Parameters:
T - generic extension type- Parameters:
extensionType - the extension type
- Returns:
- a list of extension objects
setExtensions
public <T> void setExtensions(Class<T> extensionType,
List<? extends T> extensions)
setExtensions
public void setExtensions(Map<Class<?>,List<?>> extensions)
getProperty
public String getProperty(String key)
- Returns the value of the property.
- Specified by:
getProperty in interface JasperReportsContext
- Parameters:
key - the key
- Returns:
- the property value
setProperty
public void setProperty(String key,
String value)
- Specified by:
setProperty in interface JasperReportsContext
removeProperty
public void removeProperty(String key)
- Specified by:
removeProperty in interface JasperReportsContext
getProperties
public Map<String,String> getProperties()
- Specified by:
getProperties in interface JasperReportsContext
Copyright © 2012. All Rights Reserved.