Package com.sap.cds

Interface CdsDataProcessor.Converter

  • Enclosing interface:
    CdsDataProcessor
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Beta
    @FunctionalInterface
    public static interface CdsDataProcessor.Converter
    Function to convert or remove a value for a CdsElement.

    This is a functional interface whose functional method is convert(Path, CdsElement, Object).

    • Field Detail

      • REMOVE

        static final Object REMOVE
        Indicates to remove the value from the data map.
    • Method Detail

      • convert

        Object convert​(Path path,
                       CdsElement element,
                       Object value)
        Converts the value for the given element.
        Parameters:
        path - the path to the element
        element - the CDS element
        value - the value, can be null
        Returns:
        the converted value, or Converter.REMOVE to remove the value