public class Transformers extends Object
| Constructor and Description |
|---|
Transformers() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static CharTransformer getCharTransformer(String name, String config, String errorId, boolean back)
name - The class name for the CharTransformer to be returnedconfig - 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.public static ParameterizedTransformerFactory getTransformerFactory(String name, String errorId)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}