Class EnumNamer

java.lang.Object
dk.mada.jaxrs.model.naming.EnumNamer

public final class EnumNamer extends Object
Uses default naming, but provides alternatives in case of naming conflicts. First tries to append the non-upper-cased value to the default naming. This allows the client to make (some) sense of the enumeration values If this fails, falls back to numbering of conflicting names.
  • Constructor Details

    • EnumNamer

      public EnumNamer(Naming naming, Type enumValueType, List<String> values)
      Constructs a new enumeration namer instance.
      Parameters:
      naming - the naming policies
      enumValueType - the enumeration type
      values - the values of the enumeration
  • Method Details

    • getEntries

      public List<EnumNamer.EnumNameValue> getEntries()
      Returns the assigned names-to-values.
      Returns:
      the assigned names-to-values