|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.component.lettertemplate.util.VariablesFormat
Formatter for variables values.
Inner Class Summary | |
(package private) class |
VariablesFormat.IbNumberFormat
Auxiliary class representing all number formatters. |
(package private) static interface |
VariablesFormat.MakeUpFormat
Interface establishing special make ups to the basic formated strings |
(package private) class |
VariablesFormat.Phone_MakeUp
Formatter for Phone format. |
(package private) class |
VariablesFormat.Rounder
Implementation of MakeUpFormat intended for formatting numbers (not SSN nor Phone) |
(package private) class |
VariablesFormat.SSN_MakeUp
Formatter for SSN format. |
Field Summary | |
static int[] |
dateFormatCode
dateFormatCode |
static java.lang.String[] |
dateFormatPattern
Strings describing date formats. |
(package private) java.util.Hashtable |
dateFormatter
Actual date formatters are stored here, next to their corresponding format codes. |
(package private) java.text.SimpleDateFormat |
dateParser
The overall date parser. |
static int |
DD_MMM_YYYY
Code for format DD-MMM-YYYY |
(package private) Debug |
debug
|
static int |
MMMcwYYYY
Code for format MMM, YYYY |
static int |
MMMwDDcwYY
Code for format MMM DD, YY |
static int |
MMMwDDcwYYYY
Code for format MMM DD, YYYY |
static int |
MMsDDsYY
Code for format MM/DD/YY |
static int |
MMsDDsYYYY
Code for format MM/DD/YYYY |
static int |
N9999
Code for format 9999 |
static int |
N9999p99
Code for format 9999.99 |
static int |
N9c999
Code for format 9,999 |
static int |
N9c999p99
Code for format 9,999.99 |
static int |
Nd9c999p99
Code for format $9,999.99 |
static int |
NdZcZZ9p99
Code for format $Z,ZZ9.99 |
static int |
NPhone
Code for format Phone |
static int |
NSSN
Code for format SSN |
static int[] |
numberFormatCode
Table of actual codes for Number Formats |
(package private) java.util.Hashtable |
numberFormatter
Actual number formatters are stored here, next to their corresponding format codes. |
(package private) java.text.NumberFormat |
numberParser
The overall number parser. |
static int |
NZcZZ9
Code for format Z,ZZ9 |
static int |
NZcZZ9_
Code for format Z,ZZ9- |
static int |
NZcZZ9p99
Code for format Z,ZZ9.99 |
static int |
NZcZZ9p99_
Code for format Z,ZZ9.99- |
static int |
NZZ9p9999pc
Code for format ZZ9.9999% |
static int |
NZZ9p999pc
Code for format ZZ9.999% |
static int |
NZZZ9
Code for format ZZZ9 |
static int |
NZZZ9_
Code for format ZZZ9- |
static int |
NZZZ9p99
Code for format ZZZ9.99 |
(package private) java.util.Locale |
uslocale
Formats follow general conventions for the US. |
static int |
YYYYsMMsDD
Code for format YYYY/MM/DD |
Constructor Summary | |
VariablesFormat()
VariablesFormat constructor. |
Method Summary | |
private java.text.DecimalFormat |
baseFormatter(int formatNumber,
java.lang.String pattern)
Every number formattes is constructed over an object like this one. |
private VariablesFormat.IbNumberFormat |
buildNumberFormatter(int formatNumber)
Delivers the number formatters. |
java.lang.String |
format(java.lang.String varValue,
java.lang.Long fmtCode)
Formats a string of chars according to a format. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Locale uslocale
public static final int N9999
public static final int NZZZ9
public static final int NZcZZ9
public static final int NZZZ9_
public static final int NZcZZ9_
public static final int NZcZZ9p99_
public static final int NZZ9p999pc
public static final int NZZ9p9999pc
public static final int N9999p99
public static final int NZZZ9p99
public static final int N9c999
public static final int N9c999p99
public static final int NZcZZ9p99
public static final int Nd9c999p99
public static final int NdZcZZ9p99
public static final int NSSN
public static final int NPhone
public static final int[] numberFormatCode
public static final int MMsDDsYY
public static final int MMsDDsYYYY
public static final int YYYYsMMsDD
public static final int DD_MMM_YYYY
public static final int MMMwDDcwYY
public static final int MMMwDDcwYYYY
public static final int MMMcwYYYY
public static final int[] dateFormatCode
public static final java.lang.String[] dateFormatPattern
java.util.Hashtable dateFormatter
java.util.Hashtable numberFormatter
java.text.NumberFormat numberParser
java.text.SimpleDateFormat dateParser
Debug debug
Constructor Detail |
public VariablesFormat()
dateParser
and numberParser
. It also creates the formatters corresponding to all
formats.Method Detail |
private java.text.DecimalFormat baseFormatter(int formatNumber, java.lang.String pattern)
formatNumber
- Format code.pattern
- Format patternprivate VariablesFormat.IbNumberFormat buildNumberFormatter(int formatNumber)
formatNumber
- Format codepublic java.lang.String format(java.lang.String varValue, java.lang.Long fmtCode)
varValue
- The string to be formated.fmtCode
- The format code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |