public class SimpleJasperReportsContext extends Object implements JasperReportsContext
| Constructor and Description |
|---|
SimpleJasperReportsContext()
Constructs a SimpleJasperReportsContext instance that has the DefaultJasperReportsContext.getInstance() as parent.
|
SimpleJasperReportsContext(JasperReportsContext parent) |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
getExtensions(Class<T> extensionType)
Returns a list of extension objects for a specific extension type.
|
Object |
getOwnValue(String key) |
Map<String,String> |
getProperties() |
Map<String,String> |
getPropertiesMap() |
String |
getProperty(String key)
Returns the value of the property.
|
Object |
getValue(String key) |
void |
removeProperty(String key) |
void |
removeValue(String key) |
<T> void |
setExtensions(Class<T> extensionType,
List<? extends T> extensions) |
void |
setExtensions(Map<Class<?>,List<?>> extensions) |
void |
setParent(JasperReportsContext parent) |
void |
setPropertiesMap(Map<String,String> propertiesMap) |
void |
setProperty(String key,
String value) |
void |
setValue(String key,
Object value) |
public SimpleJasperReportsContext()
public SimpleJasperReportsContext(JasperReportsContext parent)
public void setParent(JasperReportsContext parent)
public Object getValue(String key)
getValue in interface JasperReportsContextpublic Object getOwnValue(String key)
getOwnValue in interface JasperReportsContextpublic void setValue(String key, Object value)
setValue in interface JasperReportsContextpublic void removeValue(String key)
public <T> List<T> getExtensions(Class<T> extensionType)
getExtensions in interface JasperReportsContextT - generic extension typeextensionType - the extension typepublic String getProperty(String key)
getProperty in interface JasperReportsContextkey - the keypublic void setProperty(String key, String value)
setProperty in interface JasperReportsContextpublic void removeProperty(String key)
removeProperty in interface JasperReportsContextpublic Map<String,String> getProperties()
getProperties in interface JasperReportsContextCopyright © 2017. All rights reserved.