|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Formatter
A formatter is a special kind of transformer with a CharSequence result type.
| Nested Class Summary | |
|---|---|
static class |
Formatter.AbstractFormatter
The baseclass for all concrete formatters. |
static class |
Formatter.Base64
|
static class |
Formatter.Capitalize
A formatter that uppercases the first N (default 1) characters. |
static class |
Formatter.Namefy
A formatter that trims and replaces non-alphabetic characters with a configurable character sequence (default is the underscore). |
static class |
Formatter.Pad
A formatter that pads an item with a configurable string to a configurable width, before or after the item. |
static class |
Formatter.Remove
A formatter that removes a string from an item. |
static class |
Formatter.Replace
A formatter that replaces a substring with another. |
static class |
Formatter.TextFormatter
A formatter that applies a Java format string with optional arguments to the item. |
static class |
Formatter.ToAscii
A formatter that . |
static class |
Formatter.ToLowercase
A formatter that converts a string to its lowercase representation. |
static class |
Formatter.ToSlug
A formatter that converts a string with spaces and underscores to a lowercase string with dashes. |
static class |
Formatter.ToUppercase
A formatter that converts a string to its uppercase representation. |
static class |
Formatter.ToXml
A formatter that converts a string to an XML includable representation. |
static class |
Formatter.Trim
A formatter that trims whitespace. |
| Nested classes/interfaces inherited from interface com.codemesh.terp.api.Transformer |
|---|
Transformer.AbstractTransformer<T>, Transformer.LineBreaker |
| Field Summary |
|---|
| Fields inherited from interface com.codemesh.terp.api.Transformer |
|---|
NO_ARGS, NO_PARAM_NAMES |
| Method Summary |
|---|
| Methods inherited from interface com.codemesh.terp.api.Transformer |
|---|
getItemName, getParamNames, transform, transform, transform |
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||