Class MappingFunctionRegistry

java.lang.Object
org.openehealth.ipf.commons.map.MappingFunctionRegistry
All Implemented Interfaces:
MappingFunctions

public class MappingFunctionRegistry extends Object implements MappingFunctions
Named functions that an Unmatched.Computed fallback can refer to.

A mapping file names a function; the function itself is written, and unit-tested, in Java. That is the whole of what the Groovy DSL's arbitrary (ELSE) closures are needed for in practice — across all mapping files shipped with IPF exactly one fallback computes anything.

Functions get here either explicitly, through Mappings.Builder.function(String, Function), or from a MappingFunctionProvider that a module ships alongside a mapping file of its own.

Since:
6.0
  • Constructor Details

    • MappingFunctionRegistry

      public MappingFunctionRegistry()
  • Method Details