java.text
Class NumberFormat.Field

java.lang.Object
  extended by java.text.AttributedCharacterIterator.Attribute
      extended by java.text.Format.Field
          extended by java.text.NumberFormat.Field
All Implemented Interfaces:
Serializable
Enclosing class:
NumberFormat

public static class NumberFormat.Field
extends Format.Field

See Also:
Serialized Form

Field Summary
static NumberFormat.Field CURRENCY
          Attribute set to all characters containing the currency unit.
static NumberFormat.Field DECIMAL_SEPARATOR
          Attribute set to all characters containing a decimal separator.
static NumberFormat.Field EXPONENT
          Attribute set to all characters containing digits of the exponential part.
static NumberFormat.Field EXPONENT_SIGN
          Attribute set to all characters containing the exponent sign.
static NumberFormat.Field EXPONENT_SYMBOL
          Attribute set to all characters containing an exponential symbol (e.g.
static NumberFormat.Field FRACTION
          Attribute set to all characters containing digits of the fractional part.
static NumberFormat.Field GROUPING_SEPARATOR
          Attribute set to all characters containing a grouping separator (e.g.
static NumberFormat.Field INTEGER
          Attribute set to all characters containing digits of the integer part.
static NumberFormat.Field PERCENT
          Attribute set to all characters containing a percent symbol (e.g. '%')
static NumberFormat.Field PERMILLE
          Attribute set to all characters containing a permille symbol.
static NumberFormat.Field SIGN
          Attribute set to all characters containing a sign (plus or minus).
 
Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
 
Constructor Summary
protected NumberFormat.Field(String field_name)
          Create a Field instance with the specified field name.
 
Method Summary
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.
 
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTEGER

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


FRACTION

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


EXPONENT

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


DECIMAL_SEPARATOR

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


SIGN

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


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,...).


EXPONENT_SYMBOL

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


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.


CURRENCY

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


EXPONENT_SIGN

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

Constructor Detail

NumberFormat.Field

protected NumberFormat.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()
                      throws InvalidObjectException
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.

Overrides:
readResolve in class AttributedCharacterIterator.Attribute
Returns:
a valid official NumberFormat.Field instance.
Throws:
InvalidObjectException - if the field name is invalid.