java.text

Class NumberFormat.Field

public static class NumberFormat.Field extends Format.Field

Field Summary
static NumberFormat.FieldCURRENCY
Attribute set to all characters containing the currency unit.
static NumberFormat.FieldDECIMAL_SEPARATOR
Attribute set to all characters containing a decimal separator.
static NumberFormat.FieldEXPONENT
Attribute set to all characters containing digits of the exponential part.
static NumberFormat.FieldEXPONENT_SIGN
Attribute set to all characters containing the exponent sign.
static NumberFormat.FieldEXPONENT_SYMBOL
Attribute set to all characters containing an exponential symbol (e.g.
static NumberFormat.FieldFRACTION
Attribute set to all characters containing digits of the fractional part.
static NumberFormat.FieldGROUPING_SEPARATOR
Attribute set to all characters containing a grouping separator (e.g. a comma, a white space,...).
static NumberFormat.FieldINTEGER
Attribute set to all characters containing digits of the integer part.
static NumberFormat.FieldPERCENT
Attribute set to all characters containing a percent symbol (e.g.
static NumberFormat.FieldPERMILLE
Attribute set to all characters containing a permille symbol.
static NumberFormat.FieldSIGN
Attribute set to all characters containing a sign (plus or minus).
Constructor Summary
protected Field(String field_name)
Create a Field instance with the specified field name.
Method Summary
protected ObjectreadResolve()
This function is used by the deserializer to know which object to use when it encounters an encoded NumberFormat.Field in a serialization stream.

Field Detail

CURRENCY

public static final NumberFormat.Field CURRENCY
Attribute set to all characters containing the currency unit.

DECIMAL_SEPARATOR

public static final NumberFormat.Field DECIMAL_SEPARATOR
Attribute set to all characters containing a decimal separator.

EXPONENT

public static final NumberFormat.Field EXPONENT
Attribute set to all characters containing digits of the exponential part.

EXPONENT_SIGN

public static final NumberFormat.Field EXPONENT_SIGN
Attribute set to all characters containing the exponent sign.

EXPONENT_SYMBOL

public static final NumberFormat.Field EXPONENT_SYMBOL
Attribute set to all characters containing an exponential symbol (e.g. 'E')

FRACTION

public static final NumberFormat.Field FRACTION
Attribute set to all characters containing digits of the fractional part.

GROUPING_SEPARATOR

public static final NumberFormat.Field GROUPING_SEPARATOR
Attribute set to all characters containing a grouping separator (e.g. a comma, a white space,...).

INTEGER

public static final NumberFormat.Field INTEGER
Attribute set to all characters containing digits of the integer part.

PERCENT

public static final NumberFormat.Field PERCENT
Attribute set to all characters containing a percent symbol (e.g. '%')

PERMILLE

public static final NumberFormat.Field PERMILLE
Attribute set to all characters containing a permille symbol.

SIGN

public static final NumberFormat.Field SIGN
Attribute set to all characters containing a sign (plus or minus).

Constructor Detail

Field

protected Field(String field_name)
Create a Field instance with the specified field name.

Parameters: field_name Field name for the new Field instance.

Method Detail

readResolve

protected Object readResolve()
This function is used by the deserializer to know which object to use when it encounters an encoded NumberFormat.Field in a serialization stream. If the stream is valid it should return one of the above field. In the other case we throw an exception.

Returns: a valid official NumberFormat.Field instance.

Throws: InvalidObjectException if the field name is invalid.