classycle.renderer
Class TemplateBasedStrongComponentRenderer

java.lang.Object
  extended byclassycle.renderer.AbstractStrongComponentRenderer
      extended byclassycle.renderer.TemplateBasedStrongComponentRenderer
All Implemented Interfaces:
StrongComponentRenderer

public class TemplateBasedStrongComponentRenderer
extends AbstractStrongComponentRenderer

Renderer of a StrongComponent. The renderer is based on a java.text.MessageFormat template.

Author:
Franz-Josef Elmer

Constructor Summary
TemplateBasedStrongComponentRenderer(java.lang.String template, int minimumNumber)
          Creates an instance for the specified template.
 
Method Summary
 java.lang.String render(StrongComponent component)
          Renderes the specified StrongComponent.
 
Methods inherited from class classycle.renderer.AbstractStrongComponentRenderer
createName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateBasedStrongComponentRenderer

public TemplateBasedStrongComponentRenderer(java.lang.String template,
                                            int minimumNumber)
Creates an instance for the specified template.

Parameters:
template - The template.
Method Detail

render

public java.lang.String render(StrongComponent component)
Description copied from interface: StrongComponentRenderer
Renderes the specified StrongComponent.