org.maverickdbms.basic.text
Class MTOconvFormatter

java.lang.Object
  extended byorg.maverickdbms.basic.text.Formatter
      extended byorg.maverickdbms.basic.text.MTFormatter
          extended byorg.maverickdbms.basic.text.MTOconvFormatter
All Implemented Interfaces:
Formatter

public class MTOconvFormatter
extends MTFormatter

Formatter outputs numeric patterns for OCONV MT


Field Summary
 
Fields inherited from class org.maverickdbms.basic.text.MTFormatter
amPrefix, amSuffix, convNull, factory, patterns, pmPrefix, pmSuffix, separator, showSeconds, twelveHourFormat, type, zeroSuppressHour
 
Fields inherited from interface org.maverickdbms.basic.Formatter
STATUS_INVALID_CONVERSION, STATUS_INVALID_DATE, STATUS_INVALID_EXPRESSION, STATUS_SUCCESS, TYPE_FMT, TYPE_ICONV, TYPE_OCONV, TYPE_PRINT
 
Constructor Summary
MTOconvFormatter(Factory factory, int type, java.lang.Object[] patterns, boolean convNull)
           
 
Method Summary
 mvString format(mvString result, mvString status, ConstantString input)
          Format the specified input string
 
Methods inherited from class org.maverickdbms.basic.text.MTFormatter
getPattern, getType, isNullOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTOconvFormatter

public MTOconvFormatter(Factory factory,
                        int type,
                        java.lang.Object[] patterns,
                        boolean convNull)
Method Detail

format

public mvString format(mvString result,
                       mvString status,
                       ConstantString input)
Description copied from interface: Formatter
Format the specified input string

Parameters:
result - string to store the result
status - errorcode if the foramt failed
input - string to format
Returns:
the resulting string