Package com.eduix.genexp.enrichment
Class DefaultEnrichmentContext
- java.lang.Object
-
- com.eduix.genexp.enrichment.DefaultEnrichmentContext
-
- All Implemented Interfaces:
EnrichmentContext,Serializable
public class DefaultEnrichmentContext extends Object implements EnrichmentContext, Serializable
A default implementation of an enrichment context.- Author:
- Jarkko Leponiemi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultEnrichmentContext(String id, String type, String trigger)DefaultEnrichmentContext(String id, String code, String type, String trigger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Map<String,Object>getData()Set<String>getFinishedEnrichments()StringgetId()StringgetTrigger()StringgetType()booleanisEmpty()voidsetCode(String code)voidsetData(Map<String,Object> data)voidsetId(String id)Set the id of the study elementvoidsetTrigger(String trigger)voidsetType(String type)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private String id
-
code
private String code
-
type
private String type
-
trigger
private String trigger
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceEnrichmentContext- Returns:
- the id of the study element
-
setId
public void setId(String id)
Description copied from interface:EnrichmentContextSet the id of the study element- Specified by:
setIdin interfaceEnrichmentContext
-
getCode
public String getCode()
- Specified by:
getCodein interfaceEnrichmentContext- Returns:
- the code of the study element
-
setCode
public void setCode(String code)
-
getType
public String getType()
- Specified by:
getTypein interfaceEnrichmentContext- Returns:
- the type of the study element
-
setType
public void setType(String type)
-
getTrigger
public String getTrigger()
- Specified by:
getTriggerin interfaceEnrichmentContext- Returns:
- the trigger identifier ('initial' or 'update')
-
setTrigger
public void setTrigger(String trigger)
-
getData
public Map<String,Object> getData()
- Specified by:
getDatain interfaceEnrichmentContext- Returns:
- the data created during enrichment
-
getFinishedEnrichments
public Set<String> getFinishedEnrichments()
- Specified by:
getFinishedEnrichmentsin interfaceEnrichmentContext- Returns:
- a set of class names of the enrichment services processed with this context
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceEnrichmentContext
-
-