org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates
Class TemplateCollector

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateCollection
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateCollector
All Implemented Interfaces:
Serializable

public class TemplateCollector
extends TemplateCollection

A template collection.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
TemplateCollector()
          Creates a new template collector.
 
Method Summary
 void addTemplateCollection(TemplateCollection tc)
          Adds a template collection.
 void configure(org.pentaho.reporting.libraries.base.config.Configuration config)
          Configures this factory.
 boolean equals(Object o)
          Indicated whether an other object is equal to this one.
 TemplateDescription getDescription(Template template)
          Returns a template description.
 Iterator getFactories()
          Returns an iterator that provides access to the factories.
 TemplateDescription getTemplate(String name)
          Returns a template description.
 int hashCode()
          Computes an hashcode for this factory.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateCollection
addTemplate, getConfig, getNames
 
Methods inherited from class java.lang.Object
getClass, 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 Iterator getFactories()
Returns an iterator that provides access to the factories.

Returns:
The iterator.

getTemplate

public TemplateDescription getTemplate(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.pentaho.reporting.libraries.base.config.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

equals

public boolean equals(Object o)
Indicated whether an other object is equal to this one.

Overrides:
equals in class TemplateCollection
Parameters:
o - the other object.
Returns:
true, if the object is equal, false otherwise.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Computes an hashcode for this factory.

Overrides:
hashCode in class TemplateCollection
Returns:
the hashcode.
See Also:
Object.hashCode()