org.maverickdbms.basic.text
Class MTFormatter

java.lang.Object
  extended byorg.maverickdbms.basic.text.Formatter
      extended byorg.maverickdbms.basic.text.MTFormatter
All Implemented Interfaces:
Formatter
Direct Known Subclasses:
MTIconvFormatter, MTOconvFormatter

public abstract class MTFormatter
extends org.maverickdbms.basic.text.Formatter

This is the basic string interface for the package.


Field Summary
protected  char[] amPrefix
           
protected  char[] amSuffix
           
protected  boolean convNull
           
protected  Factory factory
           
protected  java.lang.Object[] patterns
           
protected  char[] pmPrefix
           
protected  char[] pmSuffix
           
protected  char separator
           
protected  boolean showSeconds
           
protected  boolean twelveHourFormat
           
protected  int type
           
protected  boolean 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
MTFormatter(Factory factory, int type, java.lang.Object[] patterns, boolean convNull)
           
 
Method Summary
 ConstantString getPattern()
          Return the formatter conversion pattern
 int getType()
          Return the type of the formatter
 boolean isNullOnError()
          On error whether null or the input string is returned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.maverickdbms.basic.Formatter
format
 

Field Detail

separator

protected char separator

twelveHourFormat

protected boolean twelveHourFormat

zeroSuppressHour

protected boolean zeroSuppressHour

showSeconds

protected boolean showSeconds

amPrefix

protected char[] amPrefix

amSuffix

protected char[] amSuffix

pmPrefix

protected char[] pmPrefix

pmSuffix

protected char[] pmSuffix

factory

protected Factory factory

type

protected int type

patterns

protected java.lang.Object[] patterns

convNull

protected boolean convNull
Constructor Detail

MTFormatter

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

isNullOnError

public boolean isNullOnError()
Description copied from interface: Formatter
On error whether null or the input string is returned

Specified by:
isNullOnError in interface Formatter
Returns:
if null is returned

getPattern

public ConstantString getPattern()
Description copied from interface: Formatter
Return the formatter conversion pattern

Specified by:
getPattern in interface Formatter
Returns:
the formatters pattern

getType

public int getType()
Description copied from interface: Formatter
Return the type of the formatter

Specified by:
getType in interface Formatter
Returns:
the formatters type