Class TemplateCollector
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.TemplateCollection
-
- 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
Constructors Constructor Description TemplateCollector()
Creates a new template collector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classTemplateCollection
- Parameters:
name
- the name.- Returns:
- The template description.
-
getDescription
public TemplateDescription getDescription(Template template)
Returns a template description.- Overrides:
getDescription
in classTemplateCollection
- 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 classTemplateCollection
- 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 classTemplateCollection
- 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 classTemplateCollection
- Returns:
- the hashcode.
- See Also:
Object.hashCode()
-
-