Package com.eduix.genexp.enrichment
Class AbstractEnrichmentService
- java.lang.Object
-
- com.eduix.genexp.enrichment.AbstractEnrichmentService
-
- All Implemented Interfaces:
EnrichmentService
- Direct Known Subclasses:
BaseEnrichmentService,BaseEnrichmentService,NoopEnrichmentService
public abstract class AbstractEnrichmentService extends Object implements EnrichmentService
An abstract implementation of an enrichment service.- Author:
- Jarkko Leponiemi
-
-
Constructor Summary
Constructors Constructor Description AbstractEnrichmentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementDeleteMarkergetElementDeleteMarker()StringgetName()Map<String,Class<?>>getTypeClassMappings()booleanisApplicable(String type)booleanisProcessable(EnrichmentContext enrichmentContext)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.eduix.genexp.enrichment.EnrichmentService
enrich
-
-
-
-
Field Detail
-
name
protected String name
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceEnrichmentService- Returns:
- the name of the enrichment service
-
isApplicable
public boolean isApplicable(String type)
- Specified by:
isApplicablein interfaceEnrichmentService- Parameters:
type- study element typ- Returns:
- true, if enrichment service is applicable for given study elemenrt type
-
getTypeClassMappings
public Map<String,Class<?>> getTypeClassMappings()
- Specified by:
getTypeClassMappingsin interfaceEnrichmentService
-
isProcessable
public boolean isProcessable(EnrichmentContext enrichmentContext)
- Specified by:
isProcessablein interfaceEnrichmentService- Parameters:
enrichmentContext- the current enrichment context- Returns:
- true, if enrichment service is currently processable for given context
-
getElementDeleteMarker
public ElementDeleteMarker getElementDeleteMarker()
- Specified by:
getElementDeleteMarkerin interfaceEnrichmentService- Returns:
- the deletion marker for this enrichment service
-
-