org.maverickdbms.basic.text
Class MLROconvFormatter

java.lang.Object
  extended byorg.maverickdbms.basic.text.Formatter
      extended byorg.maverickdbms.basic.text.MLRFormatter
          extended byorg.maverickdbms.basic.text.MLROconvFormatter
All Implemented Interfaces:
Formatter

public class MLROconvFormatter
extends MLRFormatter

Formatter outputs numeric patterns for OCONV ML and MR


Field Summary
 
Fields inherited from class org.maverickdbms.basic.text.MLRFormatter
convNull, decimalPoint, factory, map, mask, mtype, negativePrefix, negativeSuffix, patterns, positivePrefix, positiveSuffix, precision, scale, scalefactor, thousandsSeparator, type, zeroAsNull
 
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
MLROconvFormatter(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.MLRFormatter
getPattern, getType, isNullOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLROconvFormatter

public MLROconvFormatter(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