public class WrapFileLinks extends AbstractParamLayoutFormatter
Modifier and Type | Class and Description |
---|---|
protected class |
WrapFileLinks.FormatEntry
This class defines the building blocks of a parsed format strings.
|
Modifier and Type | Field and Description |
---|---|
static int |
FILE_DESCRIPTION |
static int |
FILE_EXTENSION |
static int |
FILE_PATH |
static int |
FILE_TYPE |
static int |
ITERATION_COUNT |
static int |
RELATIVE_FILE_PATH |
static int |
STRING |
Constructor and Description |
---|
WrapFileLinks() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.String field)
Failure Mode:
|
java.util.List<WrapFileLinks.FormatEntry> |
parseFormatString(java.lang.String format)
Parse a format string and return a list of FormatEntry objects.
|
protected java.lang.String |
replaceStrings(java.lang.String text) |
void |
setArgument(java.lang.String arg)
Method for setting the argument of this formatter.
|
parseArgument
public static final int STRING
public static final int ITERATION_COUNT
public static final int FILE_PATH
public static final int FILE_TYPE
public static final int FILE_EXTENSION
public static final int FILE_DESCRIPTION
public static final int RELATIVE_FILE_PATH
public void setArgument(java.lang.String arg)
ParamLayoutFormatter
arg
- A String argument.public java.lang.String format(java.lang.String field)
LayoutFormatter
Formatters should be robust in the sense that they always return some relevant string.
If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.
field
- The text to layout.protected java.lang.String replaceStrings(java.lang.String text)
public java.util.List<WrapFileLinks.FormatEntry> parseFormatString(java.lang.String format)
format
- The marked-up string.