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.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
-
Constructor Details
-
SimpleJasperReportsContext
public SimpleJasperReportsContext()Constructs a SimpleJasperReportsContext instance that has the DefaultJasperReportsContext.getInstance() as parent. -
SimpleJasperReportsContext
-
-
Method Details
-
setParent
-
getParent
-
getValue
- Specified by:
getValue
in interfaceJasperReportsContext
-
getOwnValue
- Specified by:
getOwnValue
in interfaceJasperReportsContext
-
setValue
- Specified by:
setValue
in interfaceJasperReportsContext
-
removeValue
-
getExtensions
Returns a list of extension objects for a specific extension type.- Specified by:
getExtensions
in 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:
getProperty
in interfaceJasperReportsContext
- Parameters:
key
- the key- Returns:
- the property value
-
getOwnProperty
- Specified by:
getOwnProperty
in interfaceJasperReportsContext
-
setProperty
- Specified by:
setProperty
in interfaceJasperReportsContext
-
removeProperty
- Specified by:
removeProperty
in interfaceJasperReportsContext
-
getProperties
- Specified by:
getProperties
in interfaceJasperReportsContext
-
getPropertiesMap
-
setPropertiesMap
-