Class MappingSetExtensionExtractor
java.lang.Object
org.incenp.obofoundry.sssom.extract.MappingSetExtensionExtractor
- All Implemented Interfaces:
IValueExtractor
Extracts the value of an extension slot from a mapping set object.
This is the extractor used by an expression of the form
set.extension(PROPERTY)
.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract
(MappingSet ms) Extracts the desired value from the given mapping set.Class
<?> getType()
Gets the type of the value that would be returned byIValueExtractor.extract(MappingSet)
.
-
Field Details
-
property
-
-
Constructor Details
-
MappingSetExtensionExtractor
Creates a new instance.- Parameters:
property
- The name of the property representing the extension slot to extract.
-
-
Method Details
-
extract
Description copied from interface:IValueExtractor
Extracts the desired value from the given mapping set.- Specified by:
extract
in interfaceIValueExtractor
- Parameters:
ms
- The mapping set from which to extract the value.- Returns:
- The desired value, or
null
if the set does not contain a value at the specified location.
-
getType
Description copied from interface:IValueExtractor
Gets the type of the value that would be returned byIValueExtractor.extract(MappingSet)
.- Specified by:
getType
in interfaceIValueExtractor
- Returns:
- The actual Java class of the object representing the extracted value.
-