org.jfree.report.modules.parser.ext.factory.templates
Class AbstractTemplateDescription

java.lang.Object
  |
  +--org.jfree.xml.factory.objects.AbstractObjectDescription
        |
        +--org.jfree.xml.factory.objects.BeanObjectDescription
              |
              +--org.jfree.report.modules.parser.ext.factory.templates.AbstractTemplateDescription
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 org.jfree.xml.factory.objects.BeanObjectDescription
implements TemplateDescription

An abstract class for implementing the TemplateDescription interface.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
AbstractTemplateDescription(java.lang.String name, java.lang.Class template, boolean init)
          Creates a new description.
 
Method Summary
 Template createTemplate()
          Creates a template.
 boolean equals(java.lang.Object o)
          Indicated whether an other object is equal to this one.
 java.lang.String getName()
          Returns the name.
 int hashCode()
          Computes an hashcode for this factory.
 void setName(java.lang.String name)
          Sets the name.
 
Methods inherited from class org.jfree.xml.factory.objects.BeanObjectDescription
createObject, ignoreParameter, isParameterIgnored, setParameterFromObject
 
Methods inherited from class org.jfree.xml.factory.objects.AbstractObjectDescription
configure, convertPrimitiveClass, getConfig, getDefinedParameterNames, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, setParameter, setParameterDefinition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplateDescription

public AbstractTemplateDescription(java.lang.String name,
                                   java.lang.Class template,
                                   boolean init)
Creates a new description.
Parameters:
name - the name.
template - the template class.
init - initialise?
Method Detail

getName

public java.lang.String getName()
Returns the name.
Specified by:
getName in interface TemplateDescription
Returns:
The name.

setName

public void setName(java.lang.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(java.lang.Object o)
Indicated whether an other object is equal to this one.
Overrides:
equals in class org.jfree.xml.factory.objects.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.
Overrides:
hashCode in class org.jfree.xml.factory.objects.AbstractObjectDescription
Returns:
the hashcode.
See Also:
Object.hashCode()