|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.iris.Fissures.seed.container.DataFormat
public abstract class DataFormat
Factory class for processing numeric formatting of Strings, using the provided format string.
| Field Summary | |
|---|---|
protected java.text.DecimalFormat |
df
The decimal format. |
| Constructor Summary | |
|---|---|
DataFormat(java.text.DecimalFormat df)
|
|
| Method Summary | |
|---|---|
static void |
clearCache()
Clears the data format map and all of the formatted value maps. |
java.lang.String |
format(java.lang.Object obj)
Formats an object to produce a string. |
static DataFormat |
getDataFormat(java.lang.String fmtString)
Get the data format for the specified format string. |
static DataFormat |
getDataFormat(java.lang.String fmtString,
boolean plusPrefixFlag)
Get the data format for the specified format string. |
protected java.lang.String |
getFmtVal(java.lang.Object obj)
Formats an object to produce a string. |
protected abstract java.lang.String |
getFmtVal(java.lang.String s)
Formats the number text to produce a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.text.DecimalFormat df
| Constructor Detail |
|---|
public DataFormat(java.text.DecimalFormat df)
| Method Detail |
|---|
public static void clearCache()
public static DataFormat getDataFormat(java.lang.String fmtString)
fmtString - the format string.
public static DataFormat getDataFormat(java.lang.String fmtString,
boolean plusPrefixFlag)
fmtString - the format string.plusPrefixFlag - true to use plus sign for a positive prefix, false otherwise.
public java.lang.String format(java.lang.Object obj)
obj - Formats an object to produce a string.
protected java.lang.String getFmtVal(java.lang.Object obj)
obj - Formats an object to produce a string.
protected abstract java.lang.String getFmtVal(java.lang.String s)
s - the number text.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||