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

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.AbstractObjectDescription
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.BeanObjectDescription
          extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.templates.AbstractTemplateDescription
All Implemented Interfaces:
Serializable, Cloneable, ObjectDescription, TemplateDescription
Direct Known Subclasses:
AnchorFieldTemplateDescription, ComponentFieldTemplateDescription, DateFieldTemplateDescription, DrawableFieldTemplateDescription, DrawableURLElementTemplateDescription, DrawableURLFieldTemplateDescription, EllipseTemplateDescription, HorizontalLineTemplateDescription, ImageFieldTemplateDescription, ImageURLElementTemplateDescription, ImageURLFieldTemplateDescription, LabelTemplateDescription, MessageFieldTemplateDescription, NumberFieldTemplateDescription, RectangleTemplateDescription, ResourceFieldTemplateDescription, ResourceLabelTemplateDescription, ResourceMessageTemplateDescription, RoundRectangleTemplateDescription, ShapeFieldTemplateDescription, StringFieldTemplateDescription, VerticalLineTemplateDescription

public abstract class AbstractTemplateDescription
extends BeanObjectDescription
implements TemplateDescription

An abstract class for implementing the TemplateDescription interface.

Author:
Thomas Morgner
See Also:
Serialized Form

Method Summary
 Template createTemplate()
          Creates a template.
 boolean equals(Object o)
          Indicated whether an other object is equal to this one.
 String getName()
          Returns the name.
 int hashCode()
          Computes an hashcode for this factory.
 void setName(String name)
          Sets the name.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.BeanObjectDescription
createObject, setParameterFromObject
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.AbstractObjectDescription
clone, configure, convertPrimitiveClass, getConfig, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, setParameter, setParameterDefinition
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectDescription
configure, createObject, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, setParameter, setParameterFromObject
 

Method Detail

getName

public String getName()
Returns the name.

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

setName

public void setName(String name)
Sets the name.

Specified by:
setName in interface TemplateDescription
Parameters:
name - the name (null not allowed).

createTemplate

public Template createTemplate()
Creates a template.

Specified by:
createTemplate in interface TemplateDescription
Returns:
The template.

equals

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

Specified by:
equals in interface ObjectDescription
Overrides:
equals in class AbstractObjectDescription
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.

Specified by:
hashCode in interface ObjectDescription
Overrides:
hashCode in class AbstractObjectDescription
Returns:
the hashcode.
See Also:
Object.hashCode()