|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.util.MF
Convenience methods for formatting messages with java.util.MessageFormat. All-static and uninstanciable.
Field Summary | |
(package private) static int |
BLANKAFTER
|
(package private) static int |
BLANKBEFORE
|
(package private) static int |
CARRIAGERETURN
|
Constructor Summary | |
private |
MF()
This class is not instanciable. |
Method Summary | |
static java.lang.String |
format(java.util.List l)
formats a List assuming template at index 0 and variables at following indices. |
static java.lang.String |
format(java.util.ResourceBundle rb,
java.lang.String result)
Formats a string containing template and parameters. |
static java.lang.String |
format(java.lang.String pattern,
java.util.List l)
Formats lists by pattern beginning at index 0 |
static java.lang.String |
format(java.lang.String pattern,
java.util.List l,
boolean noindex0)
formats a pattern with the variables given in the vector. if noindex0 is set, List.get(0) is not used at all (variables begin at index 1), otherwise variables are taken from index 0 on. |
static java.lang.String |
format(java.lang.String pattern,
java.util.Map m)
Creates a formatted string by inserting m's values whereever {}-encapsulated keys of m occur. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0)
formats pattern with one variable object. |
private static java.lang.String |
format(java.lang.String pattern,
java.lang.Object[] oo)
Internal helper method to format messages without pattern nicely. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0,
java.lang.Object o1)
formats pattern with two variable objects. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0,
java.lang.Object o1,
java.lang.Object o2)
formats pattern with three variable objects. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0,
java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3)
formats pattern with four variable objects. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0,
java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3,
java.lang.Object o4)
formats pattern with five variable objects. |
static java.lang.String |
format(java.lang.String pattern,
java.lang.Object o0,
java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3,
java.lang.Object o4,
java.lang.Object o5)
formats pattern with six variable objects. |
private static int[] |
getFormatModifier(java.lang.String encaps)
Parses the given string and returns the including format modifier as int array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final int CARRIAGERETURN
static final int BLANKBEFORE
static final int BLANKAFTER
Constructor Detail |
private MF()
Method Detail |
private static java.lang.String format(java.lang.String pattern, java.lang.Object[] oo)
pattern
- The formatting patternoo
- Array of parameters to the pattern
public static java.lang.String format(java.util.List l)
l
- Description of the Parameter
public static java.lang.String format(java.lang.String pattern, java.util.List l, boolean noindex0)
pattern
- The formatting patternl
- List of parameters to the patternnoindex0
- Flag whether element at index 0 in the list should be seen as parameter or not
public static java.lang.String format(java.lang.String pattern, java.util.List l)
pattern
- The formatting patternl
- List of parameters to the pattern
public static java.lang.String format(java.lang.String pattern, java.util.Map m)
pattern
- Formatting patternm
- Map with parameters
private static int[] getFormatModifier(java.lang.String encaps)
encaps
- String with format modifiers
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0)
pattern
- The formatting patterno0
- The first parameter to the pattern
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0, java.lang.Object o1)
pattern
- The formatting patterno0
- The first parameter to the patterno1
- The second parameter to the pattern
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0, java.lang.Object o1, java.lang.Object o2)
pattern
- The formatting patterno0
- The first parameter to the patterno1
- The second parameter to the patterno2
- The third parameter to the pattern
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
pattern
- The formatting patterno0
- The first parameter to the patterno1
- The second parameter to the patterno2
- The third parameter to the patterno3
- The fourth parameter to the pattern
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3, java.lang.Object o4)
pattern
- The formatting patterno0
- The first parameter to the patterno1
- The second parameter to the patterno2
- The third parameter to the patterno3
- The fourth parameter to the patterno4
- The fifth parameter to the pattern
public static java.lang.String format(java.lang.String pattern, java.lang.Object o0, java.lang.Object o1, java.lang.Object o2, java.lang.Object o3, java.lang.Object o4, java.lang.Object o5)
pattern
- The formatting patterno0
- The first parameter to the patterno1
- The second parameter to the patterno2
- The third parameter to the patterno3
- The fourth parameter to the patterno4
- The fifth parameter to the patterno5
- The sixth parameter to the pattern
public static java.lang.String format(java.util.ResourceBundle rb, java.lang.String result)
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |