|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.text.format.ObjectFormat
info.informatica.text.format.NumberFormat
info.informatica.text.format.FloatFormat
public class FloatFormat
| Field Summary |
|---|
| Fields inherited from interface info.informatica.doc.style.Alignable |
|---|
CENTER, JUSTIFY, LEFT, RIGHT, UNDETERMINED |
| Constructor Summary | |
|---|---|
FloatFormat()
|
|
| Method Summary | |
|---|---|
static FloatFormat |
create(String format,
DecimalFormatSymbols symbols)
Creates the proper FloatFormat object according to format. |
static FloatFormat |
create(String format,
Locale locale)
Creates the proper FloatFormat object according to format. |
String |
format(Object o)
Formats an object according to the format specification set by setFormat. |
DecimalFormatSymbols |
getDecimalFormatSymbols()
Gets the decimal format symbols. |
Object |
sample()
Produce a sample of this format. |
void |
setDecimalFormatSymbols(DecimalFormatSymbols symbols)
Sets the decimal format symbols. |
String |
toString()
|
| Methods inherited from class info.informatica.text.format.ObjectFormat |
|---|
align, create, create, create, getAlignment |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloatFormat()
| Method Detail |
|---|
public static FloatFormat create(String format,
Locale locale)
throws SpecParsingException
format - the formatlocale - the locale for symbols.
format
SpecParsingException
public static FloatFormat create(String format,
DecimalFormatSymbols symbols)
throws SpecParsingException
format - the formatsymbols - the symbols to use in decimal formatting.
format
SpecParsingExceptionpublic String format(Object o)
ObjectFormatsetFormat.
Must be overriden by subclasses.
format in class ObjectFormatpublic void setDecimalFormatSymbols(DecimalFormatSymbols symbols)
symbols - the new DecimalFormatSymbolspublic DecimalFormatSymbols getDecimalFormatSymbols()
public String toString()
toString in class Objectpublic Object sample()
ObjectFormat
sample in class ObjectFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||