Class NoopEdmxFlavourMapper

java.lang.Object
com.sap.cds.adapter.odata.v4.utils.mapper.NoopEdmxFlavourMapper
All Implemented Interfaces:
EdmxFlavourMapper

public class NoopEdmxFlavourMapper extends Object implements EdmxFlavourMapper
  • Constructor Details

    • NoopEdmxFlavourMapper

      public NoopEdmxFlavourMapper()
  • Method Details

    • remap

      public String remap(String element, com.sap.cds.reflect.CdsStructuredType type)
      Description copied from interface: EdmxFlavourMapper
      Remaps a simple element name of a given structured type
      Specified by:
      remap in interface EdmxFlavourMapper
      Parameters:
      element - the element name
      type - the structured type
      Returns:
      the mapped element name
    • remap

      public <T extends Iterable<? extends Map<String, Object>>> T remap(T entry, com.sap.cds.reflect.CdsStructuredType entryType, Function<String,Boolean> isExpanded)
      Description copied from interface: EdmxFlavourMapper
      Remaps an Iterable of data maps of a given structured type
      Specified by:
      remap in interface EdmxFlavourMapper
      Type Parameters:
      T - the Iterable type
      Parameters:
      entry - an Iterable of data maps
      entryType - the structured type of the entries
      isExpanded - a function to determine if the given path is expanded
      Returns:
      the mapped Iterable of data maps
    • createMappings

      public Stream<? extends EdmxFlavourMapper.Mapping> createMappings(com.sap.cds.reflect.CdsStructuredType type)
      Description copied from interface: EdmxFlavourMapper
      A stream of EdmxFlavourMapper.Mapping instances for each element of a CdsStructuredType.
      Specified by:
      createMappings in interface EdmxFlavourMapper
      Parameters:
      type - the CdsStructuredType
      Returns:
      the stream of all EdmxFlavourMapper.Mapping instances