Interface NameMapper

All Known Implementing Classes:
CamelCaseToSnakeLowerCase, CamelCaseToSnakeUpperCase, CamelCaseToWordCase, SnakeCaseToCamelCase, SnakeCaseToWordCase, WordCaseToCamelCase, WordCaseToSnakeLowerCase, WordCaseToSnakeUpperCase
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface NameMapper
Generic name mapping interface. Name mappers can optionally be used to map the names used in a Klojang template to the names used in the data access layer, thus allowing for an extra level of indirection between the view layer and the data layer. The org.klojang.templates.name package contains various prefab name mappers, for example to map snake case names to camel case names.
Author:
Ayco Holleman
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NameMapper
    The no-op name mapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    map(String name)
    Maps the specified name to another name.
  • Field Details

    • AS_IS

      static final NameMapper AS_IS
      The no-op name mapper. Returns the input string as-is.
  • Method Details

    • map

      String map(String name)
      Maps the specified name to another name.
      Parameters:
      name - the name used in the source system
      Returns:
      the name used in the target system