Interface IValueExtractor
-
- All Known Implementing Classes:
HashExtractor,MappingExtensionExtractor,MappingSetExtensionExtractor,MappingSetSlotExtractor,MappingSlotExtractor,MappingValueExtractor,SExpressionExtractor
public interface IValueExtractorExtracts 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectextract(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 Detail
-
extract
Object extract(MappingSet ms)
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
nullif 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.
-
-