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

java.lang.Object
  |
  +--com.jrefinery.report.io.ext.factory.templates.TemplateCollection
        |
        +--com.jrefinery.report.io.ext.factory.templates.TemplateCollector

public class TemplateCollector
extends TemplateCollection

A template collection.

Author:
Thomas Morgner

Constructor Summary
TemplateCollector()
          Creates a new template collector.
 
Method Summary
 void addTemplateCollection(TemplateCollection tc)
          Adds a template collection.
 void configure(org.jfree.util.Configuration config)
          Configures this factory.
 TemplateDescription getDescription(Template template)
          Returns a template description.
 java.util.Iterator getFactories()
          Returns an iterator that provides access to the factories.
 TemplateDescription getTemplate(java.lang.String name)
          Returns a template description.
 
Methods inherited from class com.jrefinery.report.io.ext.factory.templates.TemplateCollection
addTemplate, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateCollector

public TemplateCollector()
Creates a new template collector.

Method Detail

addTemplateCollection

public void addTemplateCollection(TemplateCollection tc)
Adds a template collection.

Parameters:
tc - the template collection.

getFactories

public java.util.Iterator getFactories()
Returns an iterator that provides access to the factories.

Returns:
The iterator.

getTemplate

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

Overrides:
getTemplate in class TemplateCollection
Parameters:
name - the name.
Returns:
The template description.

getDescription

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

Overrides:
getDescription in class TemplateCollection
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.

Overrides:
configure in class TemplateCollection
Parameters:
config - the configuration, never null