Class MappingValueExtractor
- java.lang.Object
-
- org.incenp.obofoundry.sssom.extract.MappingValueExtractor
-
- All Implemented Interfaces:
IValueExtractor
- Direct Known Subclasses:
HashExtractor,MappingExtensionExtractor,MappingSlotExtractor,SExpressionExtractor
public abstract class MappingValueExtractor extends Object implements IValueExtractor
Base class for extractors that extract a value from a specific mapping record.This is used by all expressions of the form
mapping.ormapping(N)..
-
-
Field Summary
Fields Modifier and Type Field Description protected intmappingNo
-
Constructor Summary
Constructors Modifier Constructor Description protectedMappingValueExtractor(int mappingNo)Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Objectextract(Mapping mapping)Extracts the desired value from the given mapping.Objectextract(MappingSet ms)Extracts the desired value from the given mapping set.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.incenp.obofoundry.sssom.extract.IValueExtractor
getType
-
-
-
-
Method Detail
-
extract
public Object extract(MappingSet ms)
Description copied from interface:IValueExtractorExtracts the desired value from the given mapping set.- Specified by:
extractin interfaceIValueExtractor- Parameters:
ms- The mapping set from which to extract the value.- Returns:
- The desired value, or
nullif the set does not contain a value at the specified location.
-
-