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 java.lang.Object
- implements JasperReportsContext
- Version:
- $Id: SimpleJasperReportsContext.java 5268 2012-04-13 11:44:13Z lucianc $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Method Summary |
|
getExtensions(java.lang.Class<T> extensionType)
Returns a list of extension objects for a specific extension type. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the property. |
java.lang.Object |
getValue(java.lang.String key)
|
void |
removeProperty(java.lang.String key)
|
void |
removeValue(java.lang.String key)
|
|
setExtensions(java.lang.Class<T> extensionType,
java.util.List<? extends T> extensions)
|
void |
setExtensions(java.util.Map<java.lang.Class<?>,java.util.List<?>> extensions)
|
void |
setParent(JasperReportsContext parent)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
|
void |
setValue(java.lang.String key,
java.lang.Object value)
|
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 java.lang.Object getValue(java.lang.String key)
- Specified by:
getValue
in interface JasperReportsContext
setValue
public void setValue(java.lang.String key,
java.lang.Object value)
- Specified by:
setValue
in interface JasperReportsContext
removeValue
public void removeValue(java.lang.String key)
getExtensions
public <T> java.util.List<T> getExtensions(java.lang.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(java.lang.Class<T> extensionType,
java.util.List<? extends T> extensions)
setExtensions
public void setExtensions(java.util.Map<java.lang.Class<?>,java.util.List<?>> extensions)
getProperty
public java.lang.String getProperty(java.lang.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(java.lang.String key,
java.lang.String value)
- Specified by:
setProperty
in interface JasperReportsContext
removeProperty
public void removeProperty(java.lang.String key)
- Specified by:
removeProperty
in interface JasperReportsContext
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getProperties
in interface JasperReportsContext
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com