public class TableTransformers extends Object
Facade responsible for transforming table string representations. It allows
the registration of several TableTransformers.TableTransformer instances by name.
Some Transformers are provided out-of-the-box:
FromLandscape: registered under
name FROM_LANDSCAPEFormatting: registered under name
FORMATTINGReplacing: registered under name
REPLACING| Modifier and Type | Class and Description |
|---|---|
static class |
TableTransformers.Formatting |
static class |
TableTransformers.FromLandscape |
static class |
TableTransformers.Replacing |
static interface |
TableTransformers.TableTransformer |
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMATTING |
static String |
FROM_LANDSCAPE |
static String |
REPLACING |
| Constructor and Description |
|---|
TableTransformers() |
| Modifier and Type | Method and Description |
|---|---|
String |
transform(String transformerName,
String tableAsString,
Properties properties) |
void |
useTransformer(String name,
TableTransformers.TableTransformer transformer) |
public static final String FROM_LANDSCAPE
public static final String FORMATTING
public static final String REPLACING
public String transform(String transformerName, String tableAsString, Properties properties)
public void useTransformer(String name, TableTransformers.TableTransformer transformer)
Copyright © 2003–2016. All rights reserved.