Package org.mapstruct.ap.internal.util
Class Nouns
- java.lang.Object
-
- org.mapstruct.ap.internal.util.Nouns
-
public class Nouns extends java.lang.ObjectClass taking care of Noun manipulation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classNouns.ReplaceRule
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<Nouns.ReplaceRule>SINGULAR_DALI_RULESReplacement rules based on the routine applied by the Dali project.private static java.util.List<Nouns.ReplaceRule>SINGULAR_RULES
-
Constructor Summary
Constructors Modifier Constructor Description privateNouns()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringsingularize(java.lang.String plural)Converts given pluralized noun into the singular form.
-
-
-
Field Detail
-
SINGULAR_RULES
private static final java.util.List<Nouns.ReplaceRule> SINGULAR_RULES
-
SINGULAR_DALI_RULES
private static final java.util.List<Nouns.ReplaceRule> SINGULAR_DALI_RULES
Replacement rules based on the routine applied by the Dali project. Applied as a fallback if the other rules didn't yield a match.
-
-