Class StructFlattener.DotSeparatedNamer

java.lang.Object
nz.org.riskscape.engine.output.StructFlattener.DotSeparatedNamer
All Implemented Interfaces:
StructFlattener.Namer
Enclosing class:
StructFlattener

public static class StructFlattener.DotSeparatedNamer extends Object implements StructFlattener.Namer

Namer that produces a name that is taken from Struct.StructMember.getKey() for each segment and separated by a '.'.

  • Constructor Details

    • DotSeparatedNamer

      public DotSeparatedNamer()
  • Method Details

    • name

      public String name(List<nz.org.riskscape.engine.types.Struct.StructMember> segments)
      Description copied from interface: StructFlattener.Namer

      Get a name for the the given segments.

      Specified by:
      name in interface StructFlattener.Namer
      Parameters:
      segments - segments to provide a name for
      Returns:
      name to be used for the given segments