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()
DomaingetDomainName in interface Domain<FixedLengthVectorCoord.VectorDomain>public FixedLengthVectorCoord.VectorDomain[] getMappers()
DomaingetMappers in interface Domain<FixedLengthVectorCoord.VectorDomain>public FixedLengthVectorCoord.VectorDomain getProbableMapper(ValueInfo info)
DomainIn 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)
DomainIf 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()
DomainMappergetTargetDomain in interface DomainMapperpublic Class<?> getSourceClass()
DomainMapperObject.class.getSourceClass in interface DomainMapperpublic String getSourceName()
DomainMappergetSourceName in interface DomainMapperpublic String getSourceDescription()
DomainMappergetSourceDescription in interface DomainMapperCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.