Class NamedMappingProcessorCallback
- java.lang.Object
-
- org.incenp.obofoundry.sssom.transform.NamedMappingProcessorCallback
-
- All Implemented Interfaces:
IMappingProcessorCallback
public class NamedMappingProcessorCallback extends Object implements IMappingProcessorCallback
A processor callback that has a string representation. This class merely wraps an existing callback and is mostly intended for debugging, so that filters created using lambda functions can still be displayed in a readable form.
-
-
Constructor Summary
Constructors Constructor Description NamedMappingProcessorCallback(String name, IMappingProcessorCallback callback)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(IMappingFilter filter, List<Mapping> mappings)Applies a custom process to a set of mappings.StringtoString()
-
-
-
Constructor Detail
-
NamedMappingProcessorCallback
public NamedMappingProcessorCallback(String name, IMappingProcessorCallback callback)
Creates a new instance.- Parameters:
name- A string representation of the callback.callback- The actual callback.
-
-
Method Detail
-
process
public void process(IMappingFilter filter, List<Mapping> mappings)
Description copied from interface:IMappingProcessorCallbackApplies a custom process to a set of mappings. This method is called byMappingProcessor.process(List)before applying the preprocessor and/or the generator of the current rule.- Specified by:
processin interfaceIMappingProcessorCallback- Parameters:
filter- The filter of the rule currently being applied. May benull.mappings- The current set of mappings.
-
-