public class Conversions extends Object
Note:
The functionality provided here predates the DomainMapper
machinery (see ValueInfo.getDomainMappers()
),
and using it may interfere with that.
At time of writing this note however, DomainMapper implementation and
use is not complete either. When DomainMappers are working properly,
use of this class should be phased out.
The class is currently configured to perform conversions for
(sexagesimal) angles, but not for ISO-8601 time representations,
since time is handled by DomainMappers. But there may still be
opportunities for nasty surprises.
Modifier and Type | Method and Description |
---|---|
static ValueConverter |
getNumericConverter(ValueInfo info)
Returns a converter from the given ValueInfo to a numeric quantity.
|
public static ValueConverter getNumericConverter(ValueInfo info)
info
- input quantity metadatainfo
quantities to
a numeric form, or null
if we don't know how
to do itCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.