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.
Field Summary |
static java.lang.String |
ClassName
Our Java class name. |
Method Summary |
static java.lang.String |
trimString(java.lang.String str)
Trim the string. |
static java.lang.String |
trimString(java.lang.String str,
java.util.Locale locale)
Trim the string. |
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, makeParseException, makeParseExceptionMessage, makeParseExceptionMessage, objectsAreEqual, objectsAreEqual, parse, parse, parseString, parseString, quickCompare, quickCompare, quickCompareValue, registerFormatter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassName
public static final java.lang.String ClassName
- Our Java class name.
- See Also:
- Constant Field Values
DecimalFormatterCommon
public DecimalFormatterCommon()
trimString
public static java.lang.String trimString(java.lang.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 java.lang.String trimString(java.lang.String str,
java.util.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-2014 Ariba, Inc. All Rights Reserved.