ariba.ui.validation
Class AWVBigDecimalFormatter
java.lang.Object
ariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.util.AWFormatter
ariba.ui.validation.AWVBigDecimalFormatter
- All Implemented Interfaces:
- AWObject
public final class AWVBigDecimalFormatter
- extends AWFormatter
| Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject |
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber |
|
Method Summary |
String |
format(Object bigDecimalValue)
Returns a formatted string for this BigDecimal bigDecimalValue in
the locale specified in the constructor. |
Object |
parseObject(String stringToParse)
Returns a big decimal object for this String stringToParse |
AWVBigDecimalFormatter
public AWVBigDecimalFormatter(String formatPattern,
int scale,
Locale locale)
format
public String format(Object bigDecimalValue)
- Returns a formatted string for this BigDecimal
bigDecimalValue in
the locale specified in the constructor. Trailing decimal zeros are removed from the
string.
- Specified by:
format in class AWFormatter
- Parameters:
bigDecimalValue - bigDecimalValue to convert to a string value
- Returns:
- Returns a string representation of the
bigDecimalValue
parseObject
public Object parseObject(String stringToParse)
throws ParseException
- Returns a big decimal object for this String
stringToParse
- Specified by:
parseObject in class AWFormatter
- Parameters:
stringToParse - stringToParse
- Returns:
- Returns a Object representation of the
stringToParse
- Throws:
ParseException
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.