org.maverickdbms.basic.text
Class MLRFormatter
java.lang.Object
org.maverickdbms.basic.text.Formatter
org.maverickdbms.basic.text.MLRFormatter
- All Implemented Interfaces:
- Formatter
- Direct Known Subclasses:
- MLRIconvFormatter, MLROconvFormatter
- public abstract class MLRFormatter
- extends org.maverickdbms.basic.text.Formatter
This is the basic string interface for the package.
|
Constructor Summary |
MLRFormatter(Factory factory,
int type,
java.lang.Object[] patterns,
boolean convNull)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mtype
protected char mtype
precision
protected int precision
scale
protected int scale
scalefactor
protected long scalefactor
zeroAsNull
protected boolean zeroAsNull
decimalPoint
protected char decimalPoint
thousandsSeparator
protected char thousandsSeparator
negativePrefix
protected char[] negativePrefix
positivePrefix
protected char[] positivePrefix
negativeSuffix
protected char[] negativeSuffix
positiveSuffix
protected char[] positiveSuffix
mask
protected char[] mask
map
protected int[] map
factory
protected Factory factory
type
protected int type
patterns
protected java.lang.Object[] patterns
convNull
protected boolean convNull
MLRFormatter
public MLRFormatter(Factory factory,
int type,
java.lang.Object[] patterns,
boolean convNull)
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