ariba.ui.validation
Class AWVBigDecimalFormatter

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWFormatter
          extended by ariba.ui.validation.AWVBigDecimalFormatter
All Implemented Interfaces:
AWObject

public final class AWVBigDecimalFormatter
extends AWFormatter


Field Summary
 
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
 
Constructor Summary
AWVBigDecimalFormatter(java.lang.String formatPattern, int scale, java.util.Locale locale)
           
 
Method Summary
 java.lang.String format(java.lang.Object bigDecimalValue)
          Returns a formatted string for this BigDecimal bigDecimalValue in the locale specified in the constructor.
 java.lang.Object parseObject(java.lang.String stringToParse)
          Returns a big decimal object for this String stringToParse
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWVBigDecimalFormatter

public AWVBigDecimalFormatter(java.lang.String formatPattern,
                              int scale,
                              java.util.Locale locale)
Method Detail

format

public java.lang.String format(java.lang.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 java.lang.Object parseObject(java.lang.String stringToParse)
                             throws java.text.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:
java.text.ParseException


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.