public static class FixedLengthVectorCoord.VectorDomain extends Object implements Domain<FixedLengthVectorCoord.VectorDomain>, DomainMapper
Constructor and Description |
---|
VectorDomain(int nel,
Class<?>[] userClasses)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getDomainName()
Returns the name of this domain.
|
FixedLengthVectorCoord.VectorDomain[] |
getMappers()
Returns a list of all mappers known to map values to this domain.
|
FixedLengthVectorCoord.VectorDomain |
getPossibleMapper(ValueInfo info)
Returns a typed DomainMapper that can be used
for data described by the given metadata object.
|
FixedLengthVectorCoord.VectorDomain |
getProbableMapper(ValueInfo info)
Returns a typed DomainMapper that is likely to be appropriate
for data described by the given metadata object.
|
Class<?> |
getSourceClass()
Returns the type of values from which this mapper instance can
convert.
|
String |
getSourceDescription()
Returns a description of the type of source values which this mapper
can convert from.
|
String |
getSourceName()
Returns a short name for the type of source values which this mapper
can convert from.
|
FixedLengthVectorCoord.VectorDomain |
getTargetDomain()
Returns the target domain of this mapper.
|
int |
hashCode() |
public VectorDomain(int nel, Class<?>[] userClasses)
nel
- fixed number of elements in arrayuserClasses
- classes of user object that can be handled
int this domainpublic String getDomainName()
Domain
getDomainName
in interface Domain<FixedLengthVectorCoord.VectorDomain>
public FixedLengthVectorCoord.VectorDomain[] getMappers()
Domain
getMappers
in interface Domain<FixedLengthVectorCoord.VectorDomain>
public FixedLengthVectorCoord.VectorDomain 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<FixedLengthVectorCoord.VectorDomain>
info
- metadata describing data to be mappedpublic FixedLengthVectorCoord.VectorDomain 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<FixedLengthVectorCoord.VectorDomain>
info
- metadata describing data to be mappedpublic FixedLengthVectorCoord.VectorDomain getTargetDomain()
DomainMapper
getTargetDomain
in interface DomainMapper
public Class<?> getSourceClass()
DomainMapper
Object.class
.getSourceClass
in interface DomainMapper
public String getSourceName()
DomainMapper
getSourceName
in interface DomainMapper
public String getSourceDescription()
DomainMapper
getSourceDescription
in interface DomainMapper
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.