Package net.sf.jasperreports.engine
Class SimpleJasperReportsContext
java.lang.Object
net.sf.jasperreports.engine.SimpleJasperReportsContext
- All Implemented Interfaces:
JasperReportsContext
- Direct Known Subclasses:
LocalJasperReportsContext
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a SimpleJasperReportsContext instance that has the DefaultJasperReportsContext.getInstance() as parent. -
Method Summary
Modifier and TypeMethodDescription<T> List<T> getExtensions(Class<T> extensionType) Returns a list of extension objects for a specific extension type.getOwnProperty(String key) getOwnValue(String key) getProperty(String key) Returns the value of the property.voidremoveProperty(String key) voidremoveValue(String key) <T> voidsetExtensions(Class<T> extensionType, List<? extends T> extensions) voidsetExtensions(Map<Class<?>, List<?>> extensions) voidsetParent(JasperReportsContext parent) voidsetPropertiesMap(Map<String, String> propertiesMap) voidsetProperty(String key, String value) void
-
Constructor Details
-
SimpleJasperReportsContext
public SimpleJasperReportsContext()Constructs a SimpleJasperReportsContext instance that has the DefaultJasperReportsContext.getInstance() as parent. -
SimpleJasperReportsContext
-
-
Method Details
-
setParent
-
getParent
-
getValue
- Specified by:
getValuein interfaceJasperReportsContext
-
getOwnValue
- Specified by:
getOwnValuein interfaceJasperReportsContext
-
setValue
- Specified by:
setValuein interfaceJasperReportsContext
-
removeValue
-
getExtensions
Returns a list of extension objects for a specific extension type.- Specified by:
getExtensionsin interfaceJasperReportsContext- Type Parameters:
T- generic extension type- Parameters:
extensionType- the extension type- Returns:
- a list of extension objects
-
setExtensions
-
setExtensions
-
getProperty
Returns the value of the property.- Specified by:
getPropertyin interfaceJasperReportsContext- Parameters:
key- the key- Returns:
- the property value
-
getOwnProperty
- Specified by:
getOwnPropertyin interfaceJasperReportsContext
-
setProperty
- Specified by:
setPropertyin interfaceJasperReportsContext
-
removeProperty
- Specified by:
removePropertyin interfaceJasperReportsContext
-
getProperties
- Specified by:
getPropertiesin interfaceJasperReportsContext
-
getPropertiesMap
-
setPropertiesMap
-