org.pentaho.reporting.engine.classic.core.filter.templates
Class AbstractTemplate

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
All Implemented Interfaces:
Serializable, Cloneable, DataSource, Template
Direct Known Subclasses:
AnchorFieldTemplate, ComponentFieldTemplate, DateFieldTemplate, DrawableFieldTemplate, DrawableURLElementTemplate, DrawableURLFieldTemplate, EllipseTemplate, HorizontalLineTemplate, ImageFieldTemplate, ImageURLElementTemplate, ImageURLFieldTemplate, LabelTemplate, MessageFieldTemplate, NumberFieldTemplate, RectangleTemplate, ResourceFieldTemplate, ResourceLabelTemplate, ResourceMessageTemplate, RoundRectangleTemplate, ShapeFieldTemplate, StringFieldTemplate, VerticalLineTemplate

public abstract class AbstractTemplate
extends Object
implements Template

An abstract base class that implements the Template interface.

Author:
Thomas Morgner
See Also:
Serialized Form

Method Summary
 Object clone()
          Clones the template.
 Template getInstance()
          Returns an instance of the template by cloning.
 String getName()
          Returns the template name.
 void setName(String name)
          Sets the template name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.filter.DataSource
getValue
 

Method Detail

setName

public void setName(String name)
Sets the template name.

Specified by:
setName in interface Template
Parameters:
name - the name (null not permitted).

getName

public String getName()
Returns the template name.

Specified by:
getName in interface Template
Returns:
The name.

clone

public Object clone()
             throws CloneNotSupportedException
Clones the template.

Specified by:
clone in interface DataSource
Overrides:
clone in class Object
Returns:
the clone.
Throws:
CloneNotSupportedException - this should never happen.

getInstance

public Template getInstance()
Returns an instance of the template by cloning.

Specified by:
getInstance in interface Template
Returns:
A clone.