org.mmbase.util.transformers
Class Transformers

Package class diagram package Transformers
java.lang.Object
  extended by org.mmbase.util.transformers.Transformers

public class Transformers
extends Object

Utitilies related to the tranformers of this package.

Since:
MMBase-1.7
Author:
Michiel Meeuwissen

Constructor Summary
Transformers()
           
 
Method Summary
static CharTransformer getCharTransformer(String name, String config, String errorId, boolean back)
          This method instatiates a CharTransformer by use of reflection.
static ParameterizedTransformerFactory getTransformerFactory(String name, String errorId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformers

public Transformers()
Method Detail

getCharTransformer

public static CharTransformer getCharTransformer(String name,
                                                 String config,
                                                 String errorId,
                                                 boolean back)
This method instatiates a CharTransformer by use of reflection.

Parameters:
name - The class name for the CharTransformer to be returned
config - A configuration string for this transformer. At the moment this can be parsed as an integer, or the name of a integer constant of the transformer's class. Likely, other ways to configure a transformer will be available.
errorId - If something goes wrong, an error message is logged, in which this String is used, to clear things up.
back - If true, the Transformer will be wrapped in a InverseCharTransformer, so the transformation will do the inverse thing.
Returns:
A CharTransformer instance or null in case of an error.

getTransformerFactory

public static ParameterizedTransformerFactory getTransformerFactory(String name,
                                                                    String errorId)
Since:
MMBase-1.8


MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34