org.mmbase.util.transformers
Class WordWrapperFactory

java.lang.Object
  extended byorg.mmbase.util.transformers.WordWrapperFactory
All Implemented Interfaces:
ParameterizedTransformerFactory

public class WordWrapperFactory
extends Object
implements ParameterizedTransformerFactory

Word wrapping as a transformer factory. Can be used in taglib e.g. like escape="wrap(20)"

Since:
MMBase-1.8
Author:
Michiel Meeuwissen

Field Summary
protected static Parameter[] PARAMS
           
 
Constructor Summary
WordWrapperFactory()
           
 
Method Summary
 Parameters createParameters()
          Create empty Parameters object for use with createTransformer(Parameters).
 Transformer createTransformer(Parameters parameters)
          Creates a parameterized transformer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMS

protected static final Parameter[] PARAMS
Constructor Detail

WordWrapperFactory

public WordWrapperFactory()
Method Detail

createParameters

public Parameters createParameters()
Description copied from interface: ParameterizedTransformerFactory
Create empty Parameters object for use with ParameterizedTransformerFactory.createTransformer(Parameters).

Specified by:
createParameters in interface ParameterizedTransformerFactory

createTransformer

public Transformer createTransformer(Parameters parameters)
Creates a parameterized transformer.

Specified by:
createTransformer in interface ParameterizedTransformerFactory


MMBase build 1.8.1.20060716