public interface FormatService extends UnitFormatService
UnitFormat and QuantityFormat.| Modifier and Type | Interface and Description |
|---|---|
static class |
FormatService.FormatType |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAvailableFormatNames(FormatService.FormatType type)
Gets a list with available format names of a given type for this format service.
|
QuantityFormat |
getQuantityFormat()
Returns the default quantity format.
|
QuantityFormat |
getQuantityFormat(java.lang.String name)
Returns the quantity format having the specified name or
null if none. |
getAvailableFormatNames, getUnitFormat, getUnitFormatQuantityFormat getQuantityFormat()
Locale.current() while others may return getQuantityFormat("Simple") or getQuantityFormat("ISO")QuantityFormat implementation.QuantityFormat getQuantityFormat(java.lang.String name)
null if none.
For example getQuantityFormat("Simple") to return the simple UCUM specific QuantityFormat implementation.name - the name of the format.java.util.Set<java.lang.String> getAvailableFormatNames(FormatService.FormatType type)
type - the FormatService.FormatTypeCopyright © 2014–2018 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.