public class FormatAllLower extends FormatWordsString
| Constructor and Description |
|---|
FormatAllLower()
No separator between the words
|
FormatAllLower(String separator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatFirstWord(StringBuilder result,
String word,
boolean nextWordExists)
Concatenate the formatted word into the result builder
|
protected void |
formatNextWord(StringBuilder result,
String word,
boolean nextWordExists)
Concatenate the formatted word into the result builder
|
protected String |
prepare(String source)
Implement any pre-processing of the source string, before parsing it into words
|
execute, formatFirstCapitalAllLowerpublic FormatAllLower()
public FormatAllLower(String separator)
separator - non-null separator of the identified wordsprotected final String prepare(String source)
FormatWordsStringprepare in class FormatWordsStringsource - the not-null string to formatFormatWordsString.prepare(java.lang.String)protected final void formatFirstWord(StringBuilder result, String word, boolean nextWordExists)
FormatWordsStringformatFirstWord in class FormatWordsStringresult - non null store of the produced word, result.lenght() = 0word - not null, not empty word of letters and digits, which is NOT the first word identified in the source stringnextWordExists - true, if there are more words to be formatted, false when this is the only word to formatFormatWordsString.formatFirstWord(java.lang.StringBuilder, java.lang.String, boolean)protected final void formatNextWord(StringBuilder result, String word, boolean nextWordExists)
FormatWordsStringformatNextWord in class FormatWordsStringresult - non null store of the produced word, result.lenght() != 0word - not null, not empty word of letters and digits, which is the first word identified in the source stringnextWordExists - true, if there are more words to be formatted, false when this is the last word to formatFormatWordsString.formatNextWord(java.lang.StringBuilder, java.lang.String, boolean)Copyright © 2001–2018 MDA Tools. All rights reserved.