Package dk.mada.jaxrs.model.naming
Class EnumNamer
java.lang.Object
dk.mada.jaxrs.model.naming.EnumNamer
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
An enumeration name-to-value assignment. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the assigned names-to-values.
-
Constructor Details
-
EnumNamer
Constructs a new enumeration namer instance.- Parameters:
naming
- the naming policiesenumValueType
- the enumeration typevalues
- the values of the enumeration
-
-
Method Details
-
getEntries
Returns the assigned names-to-values.- Returns:
- the assigned names-to-values
-