Class AbstractGeneIdentifierBasedDesignElementMapper<K>
java.lang.Object
ubic.gemma.core.loader.util.mapper.AbstractGeneIdentifierBasedDesignElementMapper<K>
- All Implemented Interfaces:
DesignElementMapper, EntityMapper<CompositeSequence>
- Direct Known Subclasses:
EnsemblIdDesignElementMapper, GeneNameDesignElementMapper, NcbiIdDesignElementMapper, OfficialSymbolDesignElementMapper
public abstract class AbstractGeneIdentifierBasedDesignElementMapper<K>
extends Object
implements DesignElementMapper
Base class for design element mapper that use gene identifiers.
- Author:
- poirigui
-
Nested Class Summary
Nested classes/interfaces inherited from interface EntityMapper
EntityMapper.MappingStatistics, EntityMapper.StatefulEntityMapper<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionforCandidates(Collection<CompositeSequence> candidates) Create a stateful mapper for a set of candidates.protected abstract KgetIdentifier(Gene gene) Extract an identifier from the gene.protected abstract KprocessIdentifier(String identifier) Extract an identifier from an externally supplied string.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DesignElementMapper
forCandidatesMethods inherited from interface EntityMapper
contains, containsAny, getMappingStatistics, getName, matchAll, matchAll, matchOne, matchOne
-
Constructor Details
-
AbstractGeneIdentifierBasedDesignElementMapper
-
-
Method Details
-
forCandidates
public EntityMapper.StatefulEntityMapper<CompositeSequence> forCandidates(Collection<CompositeSequence> candidates) Description copied from interface:EntityMapperCreate a stateful mapper for a set of candidates.- Specified by:
forCandidatesin interfaceEntityMapper<K>
-
toString
-
getIdentifier
-
processIdentifier
-