ariba.util.formatter
Class DecimalFormatterCommon
java.lang.Object
ariba.util.formatter.Formatter
ariba.util.formatter.DecimalFormatterCommon
- All Implemented Interfaces:
- Compare, StringParser
- Direct Known Subclasses:
- BigDecimalFormatter, DoubleFormatter
public abstract class DecimalFormatterCommon
- extends Formatter
Base class for BigDecimalFormatter and DoubleFormatter to share
common formatting utilities.
| Methods inherited from class ariba.util.formatter.Formatter |
canFormatNulls, compare, compare, equal, equal, getFormat, getFormat, getFormatterClassForType, getFormatterForObject, getFormatterForType, getLocale, getStringValue, getStringValue, getValue, getValue, handlesNulls, isBidirectional, makeParseException, makeParseException, objectsAreEqual, objectsAreEqual, parse, parse, parseString, parseString, quickCompare, quickCompare, quickCompareValue, registerFormatter |
ClassName
public static final String ClassName
- Our Java class name.
- See Also:
- Constant Field Values
DecimalFormatterCommon
public DecimalFormatterCommon()
trimString
public static String trimString(String str)
- Trim the string. Remove all trailing zero's. Use the
default locale for determining the decimal separator character.
- Parameters:
str - the input string from which leading and trailing whitespace is removed
- Returns:
- Returns a input string with after removing leading and trailing whitespace, including trailing zero's.
trimString
public static String trimString(String str,
Locale locale)
- Trim the string. Remove all trailing zero's
- Parameters:
str - the input string from which leading and trailing whitespace is removedlocale - the locale used to determine the decimal separator when trimming whitespace
- Returns:
- Returns a input string with after removing leading and trailing whitespace, including trailing zero's.
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.