net.sf.jasperreports.engine.export
public class DefaultElementHandlerBundle extends java.lang.Object implements GenericElementHandlerBundle
GenericElementHandlerBundle
implementation.
This implementation uses a map
to keep element handlers.
Constructor and Description |
---|
DefaultElementHandlerBundle() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getElementHandlers()
Returns the map of element handlers.
|
GenericElementHandler |
getHandler(java.lang.String elementName,
java.lang.String exporterKey)
Uses the handler map to locate a handler for the element name
and exporter key.
|
java.lang.String |
getNamespace()
Returns the namespace of this bundle.
|
void |
setElementHandlers(java.util.Map elementHandlers)
Sets the map of element handlers.
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace of this bundle.
|
public GenericElementHandler getHandler(java.lang.String elementName, java.lang.String exporterKey)
getHandler
in interface GenericElementHandlerBundle
elementName
- the element type nameexporterKey
- the exporter keyJRRuntimeException
- if no handler is foundpublic java.lang.String getNamespace()
GenericElementHandlerBundle
getNamespace
in interface GenericElementHandlerBundle
public void setNamespace(java.lang.String namespace)
namespace
- the namespacegetNamespace()
public java.util.Map getElementHandlers()
public void setElementHandlers(java.util.Map elementHandlers)
The map needs to be a two level map, the first one indexed by element names and the second level indexed by exporter keys.
elementHandlers
- the map of element handlers© 2001-2010 Jaspersoft Corporation www.jaspersoft.com