Interface IValueExtractor
- All Known Implementing Classes:
HashExtractor
,MappingExtensionExtractor
,MappingSetExtensionExtractor
,MappingSetSlotExtractor
,MappingSlotExtractor
,MappingValueExtractor
,SExpressionExtractor
public interface IValueExtractor
Extracts an arbitrary piece of content from a mapping set object.
This interface is the visible face of the logic behind the “extractor expression” feature.
-
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 byextract(MappingSet)
.
-
Method Details
-
extract
Extracts the desired value from the given mapping set.- 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
Class<?> getType()Gets the type of the value that would be returned byextract(MappingSet)
.- Returns:
- The actual Java class of the object representing the extracted value.
-