|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.util.DVSLFormatter
Formatting tool for use with the DVSL toolbox. This class contains static methods to assist in formatting needs that can't be done or shouldn't be done in a DVSL stylesheet.
Constructor Summary | |
DVSLFormatter()
|
Method Summary | |
static java.lang.String |
formatNumber(java.lang.String value,
java.lang.String pattern)
Formats a string as a number using the specified pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DVSLFormatter()
Method Detail |
public static final java.lang.String formatNumber(java.lang.String value, java.lang.String pattern)
java.text.DecimalFormat
.
This method is thread-hostile.
value
- The number to format.pattern
- The pattern used to format.
java.lang.IllegalArgumentException
- If an invalid pattern is
specified.DecimalFormat
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |