Naming.Adapter| Modifier and Type | Field and Description |
|---|---|
protected NamingType |
namingType |
DEFAULT, LENIENT_SNAKE_LOWER_CASE, LENIENT_SNAKE_UPPER_CASE, LOWER_CASE, NONE, SNAKE_LOWER_CASE, SNAKE_UPPER_CASE, UPPER_CASE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(NamingType namingType,
java.lang.String text)
Applies the naming convention.
|
java.lang.String |
revert(NamingType namingType,
java.lang.String text)
Reverts the text to the original as much as possible.
|
protected final NamingType namingType
public java.lang.String apply(NamingType namingType, java.lang.String text)
Namingapply in interface NamingnamingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.text - the textpublic java.lang.String revert(NamingType namingType, java.lang.String text)
Namingrevert in interface NamingnamingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.text - the text that is converted by this convention