Interface StructFlattener.Namer

All Known Implementing Classes:
StructFlattener.DotSeparatedNamer, StructFlattener.LastMemberNamer
Enclosing class:
StructFlattener

public static interface StructFlattener.Namer

A Namer can provide a name for the given segments.

Namers should take care of shortening the produced name if this is necessary. StructFlattener.shortenIfNecessary(java.util.List, int) is only retained for backwards compatibility.

  • Method Summary

    Modifier and Type
    Method
    Description
    name(List<nz.org.riskscape.engine.types.Struct.StructMember> segments)
    Get a name for the the given segments.
  • Method Details

    • name

      String name(List<nz.org.riskscape.engine.types.Struct.StructMember> segments)

      Get a name for the the given segments.

      Parameters:
      segments - segments to provide a name for
      Returns:
      name to be used for the given segments