public interface Naming
| Modifier and Type | Interface and Description |
|---|---|
static class |
Naming.Adapter |
| Modifier and Type | Field and Description |
|---|---|
static Naming |
DEFAULT
the default convention
|
static Naming |
LENIENT_SNAKE_LOWER_CASE
Deprecated.
|
static Naming |
LENIENT_SNAKE_UPPER_CASE
Deprecated.
|
static Naming |
LOWER_CASE
the adapter for
NamingType.LOWER_CASE |
static Naming |
NONE
the adapter for
NamingType.NONE |
static Naming |
SNAKE_LOWER_CASE
the adapter for
NamingType.SNAKE_LOWER_CASE |
static Naming |
SNAKE_UPPER_CASE
the adapter for
NamingType.SNAKE_UPPER_CASE |
static Naming |
UPPER_CASE
the adapter for
NamingType.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.
|
static final Naming NONE
NamingType.NONEstatic final Naming LOWER_CASE
NamingType.LOWER_CASEstatic final Naming UPPER_CASE
NamingType.UPPER_CASEstatic final Naming SNAKE_LOWER_CASE
NamingType.SNAKE_LOWER_CASEstatic final Naming SNAKE_UPPER_CASE
NamingType.SNAKE_UPPER_CASE@Deprecated static final Naming LENIENT_SNAKE_LOWER_CASE
NamingType.LENIENT_SNAKE_LOWER_CASE@Deprecated static final Naming LENIENT_SNAKE_UPPER_CASE
NamingType.LENIENT_SNAKE_UPPER_CASEstatic final Naming DEFAULT
java.lang.String apply(NamingType namingType, java.lang.String text)
namingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.text - the textDomaNullPointerException - if text is nulljava.lang.String revert(NamingType namingType, java.lang.String text)
namingType - the naming convention. If this parameter is null, Entity.naming() does not have explicit value.text - the text that is converted by this conventionDomaNullPointerException - if text is null