public class AreaDomain extends Object implements Domain<AreaMapper>
The sole instance of this singleton class is available as the
INSTANCE
static member.
Modifier and Type | Field and Description |
---|---|
static AreaMapper |
ASCIIMOC_MAPPER
Mapper for ASCII format MOCs.
|
static AreaMapper |
CIRCLE_MAPPER
Mapper for (x,y,r) circles - see DALI 1.1 section 3.3.6.
|
static AreaDomain |
INSTANCE
Singleton instance.
|
static AreaMapper |
POINT_MAPPER
Mapper for (x,y) points - see DALI 1.1 section 3.3.5.
|
static AreaMapper |
POLYGON_MAPPER
Mapper for (xi,yi,...) polygons - see DALI 1.1 section 3.3.7.
|
static AreaMapper |
STCS_MAPPER
STC-S - see TAP 1.0 section 6.
|
static AreaMapper |
TFCAT_MAPPER
Mapper for TFCat strings.
|
static AreaMapper |
UNIQ_MAPPER
Mapper for single HEALPix UNIQ values.
|
Modifier and Type | Method and Description |
---|---|
String |
getDomainName()
Returns the name of this domain.
|
AreaMapper[] |
getMappers()
Returns a list of all mappers known to map values to this domain.
|
AreaMapper |
getPossibleMapper(ValueInfo info)
Returns a typed DomainMapper that can be used
for data described by the given metadata object.
|
AreaMapper |
getProbableMapper(ValueInfo info)
Returns a typed DomainMapper that is likely to be appropriate
for data described by the given metadata object.
|
public static final AreaDomain INSTANCE
public static final AreaMapper STCS_MAPPER
public static final AreaMapper CIRCLE_MAPPER
public static final AreaMapper POLYGON_MAPPER
public static final AreaMapper POINT_MAPPER
public static final AreaMapper ASCIIMOC_MAPPER
public static final AreaMapper UNIQ_MAPPER
public static final AreaMapper TFCAT_MAPPER
public String getDomainName()
Domain
getDomainName
in interface Domain<AreaMapper>
public AreaMapper[] getMappers()
Domain
getMappers
in interface Domain<AreaMapper>
public AreaMapper 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<AreaMapper>
info
- metadata describing data to be mappedpublic AreaMapper 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<AreaMapper>
info
- metadata describing data to be mappedCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.