java.text
Class NumberFormat.Field

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute 
      extended by java.text.Format.Field sample code for java.text.Format.Field definition code for java.text.Format.Field 
          extended by java.text.NumberFormat.Field
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Enclosing class:
NumberFormat sample code for java.text.NumberFormat definition code for java.text.NumberFormat

public static class NumberFormat.Field
extends Format.Field sample code for java.text.Format.Field definition code for java.text.Format.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from NumberFormat.formatToCharacterIterator and as field identifiers in FieldPosition.

Since:
1.4
See Also:
Serialized Form

Field Summary
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field CURRENCY sample code for java.text.NumberFormat.Field.CURRENCY definition code for java.text.NumberFormat.Field.CURRENCY
          Constant identifying the currency field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field DECIMAL_SEPARATOR sample code for java.text.NumberFormat.Field.DECIMAL_SEPARATOR definition code for java.text.NumberFormat.Field.DECIMAL_SEPARATOR
          Constant identifying the decimal separator field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field EXPONENT sample code for java.text.NumberFormat.Field.EXPONENT definition code for java.text.NumberFormat.Field.EXPONENT
          Constant identifying the exponent field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field EXPONENT_SIGN sample code for java.text.NumberFormat.Field.EXPONENT_SIGN definition code for java.text.NumberFormat.Field.EXPONENT_SIGN
          Constant identifying the exponent sign field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field EXPONENT_SYMBOL sample code for java.text.NumberFormat.Field.EXPONENT_SYMBOL definition code for java.text.NumberFormat.Field.EXPONENT_SYMBOL
          Constant identifying the exponent symbol field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field FRACTION sample code for java.text.NumberFormat.Field.FRACTION definition code for java.text.NumberFormat.Field.FRACTION
          Constant identifying the fraction field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field GROUPING_SEPARATOR sample code for java.text.NumberFormat.Field.GROUPING_SEPARATOR definition code for java.text.NumberFormat.Field.GROUPING_SEPARATOR
          Constant identifying the grouping separator field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field INTEGER sample code for java.text.NumberFormat.Field.INTEGER definition code for java.text.NumberFormat.Field.INTEGER
          Constant identifying the integer field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field PERCENT sample code for java.text.NumberFormat.Field.PERCENT definition code for java.text.NumberFormat.Field.PERCENT
          Constant identifying the percent field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field PERMILLE sample code for java.text.NumberFormat.Field.PERMILLE definition code for java.text.NumberFormat.Field.PERMILLE
          Constant identifying the permille field.
static NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field SIGN sample code for java.text.NumberFormat.Field.SIGN definition code for java.text.NumberFormat.Field.SIGN
          Constant identifying the sign field.
 
Fields inherited from class java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT sample code for java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT definition code for java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT , LANGUAGE sample code for java.text.AttributedCharacterIterator.Attribute.LANGUAGE definition code for java.text.AttributedCharacterIterator.Attribute.LANGUAGE , READING sample code for java.text.AttributedCharacterIterator.Attribute.READING definition code for java.text.AttributedCharacterIterator.Attribute.READING
 
Constructor Summary
protected NumberFormat.Field sample code for java.text.NumberFormat.Field.NumberFormat.Field(java.lang.String) definition code for java.text.NumberFormat.Field.NumberFormat.Field(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Creates a Field instance with the specified name.
 
Method Summary
protected  Object sample code for java.lang.Object definition code for java.lang.Object readResolve sample code for java.text.NumberFormat.Field.readResolve() definition code for java.text.NumberFormat.Field.readResolve() ()
          Resolves instances being deserialized to the predefined constants.
 
Methods inherited from class java.text.AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
equals sample code for java.text.AttributedCharacterIterator.Attribute.equals(java.lang.Object) definition code for java.text.AttributedCharacterIterator.Attribute.equals(java.lang.Object) , getName sample code for java.text.AttributedCharacterIterator.Attribute.getName() definition code for java.text.AttributedCharacterIterator.Attribute.getName() , hashCode sample code for java.text.AttributedCharacterIterator.Attribute.hashCode() definition code for java.text.AttributedCharacterIterator.Attribute.hashCode() , toString sample code for java.text.AttributedCharacterIterator.Attribute.toString() definition code for java.text.AttributedCharacterIterator.Attribute.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

INTEGER sample code for java.text.NumberFormat.Field.INTEGER

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  INTEGER
Constant identifying the integer field.


FRACTION sample code for java.text.NumberFormat.Field.FRACTION

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  FRACTION
Constant identifying the fraction field.


EXPONENT sample code for java.text.NumberFormat.Field.EXPONENT

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  EXPONENT
Constant identifying the exponent field.


DECIMAL_SEPARATOR sample code for java.text.NumberFormat.Field.DECIMAL_SEPARATOR

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  DECIMAL_SEPARATOR
Constant identifying the decimal separator field.


SIGN sample code for java.text.NumberFormat.Field.SIGN

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  SIGN
Constant identifying the sign field.


GROUPING_SEPARATOR sample code for java.text.NumberFormat.Field.GROUPING_SEPARATOR

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  GROUPING_SEPARATOR
Constant identifying the grouping separator field.


EXPONENT_SYMBOL sample code for java.text.NumberFormat.Field.EXPONENT_SYMBOL

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  EXPONENT_SYMBOL
Constant identifying the exponent symbol field.


PERCENT sample code for java.text.NumberFormat.Field.PERCENT

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  PERCENT
Constant identifying the percent field.


PERMILLE sample code for java.text.NumberFormat.Field.PERMILLE

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  PERMILLE
Constant identifying the permille field.


CURRENCY sample code for java.text.NumberFormat.Field.CURRENCY

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  CURRENCY
Constant identifying the currency field.


EXPONENT_SIGN sample code for java.text.NumberFormat.Field.EXPONENT_SIGN

public static final NumberFormat.Field sample code for java.text.NumberFormat.Field definition code for java.text.NumberFormat.Field  EXPONENT_SIGN
Constant identifying the exponent sign field.

Constructor Detail

NumberFormat.Field sample code for java.text.NumberFormat.Field(java.lang.String) definition code for java.text.NumberFormat.Field(java.lang.String)

protected NumberFormat.Field(String sample code for java.lang.String definition code for java.lang.String  name)
Creates a Field instance with the specified name.

Parameters:
name - Name of the attribute
Method Detail

readResolve sample code for java.text.NumberFormat.Field.readResolve() definition code for java.text.NumberFormat.Field.readResolve()

protected Object sample code for java.lang.Object definition code for java.lang.Object  readResolve()
                      throws InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException 
Resolves instances being deserialized to the predefined constants.

Overrides:
readResolve sample code for java.text.AttributedCharacterIterator.Attribute.readResolve() definition code for java.text.AttributedCharacterIterator.Attribute.readResolve() in class AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute
Returns:
resolved NumberFormat.Field constant
Throws:
InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException - if the constant could not be resolved.