public static class NamingConventions.LowerCamelCase extends NamingConventions.CamelCase
E.g. "myXmlParser" and "myXMLParser". Note that both examples are valid lower camel case forms. The first one takes abbreviations as any other words where the first letter is upper case, and the rest are lower case (hence - "Xml"), while the latter upper cases all letters of an abbreviation (hence - "XML").
Additionally, many different Java naming conventions introduce prefixes for field naming, some examples:
Those prefixes can be supported. For example, if this convention is configured withignorablePrefixes
set to "_" then a field named "_myXmlParser" will be split in 3 words only:
"my", "Xml", "Parser".Constructor and Description |
---|
LowerCamelCase(boolean upperCaseAbbreviations) |
LowerCamelCase(boolean upperCaseAbbreviations,
String... ignorablePrefixes) |
LowerCamelCase(String... ignorablePrefixes) |
Modifier and Type | Method and Description |
---|---|
String |
join(List<Word> input)
Receive an ordered list of Word objects and returns a result property name.
|
split
public LowerCamelCase(boolean upperCaseAbbreviations, String... ignorablePrefixes)
upperCaseAbbreviations
- true
to uppercase all abbreviations, false
to
treat abbreviations as any other wordignorablePrefixes
- string prefixes to trim if constant field name prefixes are usedpublic LowerCamelCase(String... ignorablePrefixes)
ignorablePrefixes
- string prefixes to trim if constant field name prefixes are usedpublic LowerCamelCase(boolean upperCaseAbbreviations)
upperCaseAbbreviations
- true
to uppercase all abbreviations, false
to
treat abbreviations as any other wordpublic String join(List<Word> input)
NamingConvention
input
- list to translateCopyright © 2012–2023. All rights reserved.