public class TimeDomain extends Object implements Domain<TimeMapper>
The sole instance of this singleton class is available as the
INSTANCE
static member.
Modifier and Type | Field and Description |
---|---|
static TimeDomain |
INSTANCE
Singleton instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getDomainName()
Returns the name of this domain.
|
TimeMapper[] |
getMappers()
Returns a list of all mappers known to map values to this domain.
|
TimeMapper |
getPossibleMapper(ValueInfo info)
Returns a typed DomainMapper that can be used
for data described by the given metadata object.
|
TimeMapper |
getProbableMapper(ValueInfo info)
Returns a typed DomainMapper that is likely to be appropriate
for data described by the given metadata object.
|
String |
toString() |
public static TimeDomain INSTANCE
public String getDomainName()
Domain
getDomainName
in interface Domain<TimeMapper>
public TimeMapper[] getMappers()
Domain
getMappers
in interface Domain<TimeMapper>
public TimeMapper getProbableMapper(ValueInfo info)
Domain
In general, implementations of this method will first check the
ValueInfo.getDomainMappers()
method.
If it is doubtful how to map from the given info to this domain,
null should be returned.
getProbableMapper
in interface Domain<TimeMapper>
info
- metadata describing data to be mappedpublic TimeMapper getPossibleMapper(ValueInfo info)
Domain
If the result of Domain.getProbableMapper(uk.ac.starlink.table.ValueInfo)
is non-null,
then this method must also return non-null, but this method
is not required to return the same value as
getProbableMapper
.
getPossibleMapper
in interface Domain<TimeMapper>
info
- metadata describing data to be mappedCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.