Package nz.org.riskscape.engine.output
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
-
Method Details
-
name
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
-