| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final NumberDelimiterQuantityFormat | EBNF_QUANTITY_FORMAT
Holds the default format instance (EBNFUnitFormat). |
| private static final String | |
| private static final int | |
| private final Map | |
| private final Map | |
| private static final String | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getAvailableFormatNames(FormatService.
the typeFormatTypeImplements javax. Gets a list with available format names of a given type for this format service. |
| public int | getPriority()
Implements tech. Gets a priority value. |
| public QuantityFormat | getQuantityFormat(String
the name of the format. key)Implements javax. Returns the quantity format having the specified name or |
| public QuantityFormat | getQuantityFormat()
Implements javax. Returns the default quantity format. |
| public UnitFormat | getUnitFormat(String
the name of the format. key)Implements javax. Returns the unit format having the specified name or |
| public UnitFormat | getUnitFormat()
Implements javax. Returns the default unit format. |
| public UnitFormat | getUnitFormat(String
the name of the format. name, String any arbitrary value used to indicate a variation of a variant)UnitFormat.Implements javax. Returns the unit format having the specified name or |
| ASCII_UNIT_FORMAT_NAME | back to summary |
|---|---|
| private static final String ASCII_UNIT_FORMAT_NAME | |
| DEFAULT_QUANTITY_FORMAT_NAME | back to summary |
|---|---|
| private static final String DEFAULT_QUANTITY_FORMAT_NAME | |
| DEFAULT_UNIT_FORMAT_NAME | back to summary |
|---|---|
| private static final String DEFAULT_UNIT_FORMAT_NAME | |
| EBNF_KEY | back to summary |
|---|---|
| private static final String EBNF_KEY | |
| EBNF_QUANTITY_FORMAT | back to summary |
|---|---|
| private static final NumberDelimiterQuantityFormat EBNF_QUANTITY_FORMAT Holds the default format instance (EBNFUnitFormat). | |
| LOCAL_KEY | back to summary |
|---|---|
| private static final String LOCAL_KEY | |
| PRIO | back to summary |
|---|---|
| private static final int PRIO | |
| quantityFormatAliases | back to summary |
|---|---|
| private final Map<String, String> quantityFormatAliases | |
| quantityFormats | back to summary |
|---|---|
| private final Map<String, QuantityFormat> quantityFormats | |
| SIMPLE_KEY | back to summary |
|---|---|
| private static final String SIMPLE_KEY | |
| unitFormatAliases | back to summary |
|---|---|
| private final Map<String, String> unitFormatAliases | |
| unitFormats | back to summary |
|---|---|
| private final Map<String, UnitFormat> unitFormats | |
| DefaultFormatService | back to summary |
|---|---|
| public DefaultFormatService() | |
| getAvailableFormatNames | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Gets a list with available format names of a given type for this format service.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements tech. Doc from tech. Gets a priority value.
| |
| getQuantityFormat | back to summary |
|---|---|
| public QuantityFormat getQuantityFormat(String key) Implements javax. Doc from javax. Returns the quantity format having the specified name or
| |
| getQuantityFormat | back to summary |
|---|---|
| public QuantityFormat getQuantityFormat() Implements javax. Doc from javax. Returns the default quantity format.
It is up to implementations what to consider a suitable default. For some (locale-sensitive) implementations it may be a quantity format based on
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat(String key) Implements javax. Doc from javax. Returns the unit format having the specified name or
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat() Implements javax. Doc from javax. Returns the default unit format.
It is up to implementations what to consider a suitable default. For some (locale-sensitive) implementations it may be a unit format based on
| |
| getUnitFormat | back to summary |
|---|---|
| public UnitFormat getUnitFormat(String name, String variant) Implements javax. Doc from javax. Returns the unit format having the specified name or If no variant is applicable, the
| |