com.jrefinery.report.io.ext.factory.templates
Class TemplateCollection

java.lang.Object
  extended bycom.jrefinery.report.io.ext.factory.templates.TemplateCollection
Direct Known Subclasses:
DefaultTemplateCollection, TemplateCollector

public class TemplateCollection
extends java.lang.Object

A template collection.

Author:
Thomas Morgner

Constructor Summary
TemplateCollection()
          Creates a new collection.
 
Method Summary
 void addTemplate(TemplateDescription template)
          Adds a template.
 void configure(org.jfree.util.Configuration config)
          Configures this factory.
 org.jfree.util.Configuration getConfig()
          Returns the currently set configuration or null, if none was set.
 TemplateDescription getDescription(Template template)
          Returns a template description.
 TemplateDescription getTemplate(java.lang.String name)
          Returns a template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateCollection

public TemplateCollection()
Creates a new collection.

Method Detail

addTemplate

public void addTemplate(TemplateDescription template)
Adds a template.

Parameters:
template - the template.

getTemplate

public TemplateDescription getTemplate(java.lang.String name)
Returns a template.

Parameters:
name - the template name.
Returns:
The template description.

getDescription

public TemplateDescription getDescription(Template template)
Returns a template description.

Parameters:
template - the template.
Returns:
The description.

configure

public void configure(org.jfree.util.Configuration config)
Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends.

The configuration contents may change during the reporting.

Parameters:
config - the configuration, never null

getConfig

public org.jfree.util.Configuration getConfig()
Returns the currently set configuration or null, if none was set.

Returns:
the configuration.