public interface PropertyNamingStrategy
Allows to define custom property naming strategy. Specifies predefined property naming strategies. Does not override JsonbProperty value.
This strategy can be set via JsonbConfig.
JsonbConfig| Modifier and Type | Field and Description | 
|---|---|
| static String | CASE_INSENSITIVEUsing this strategy, the serialization will be same as identity. | 
| static String | IDENTITYUsing this strategy, the property name is unchanged. | 
| static String | LOWER_CASE_WITH_DASHESUsing this strategy, the property name is transformed to lower case with dashes. | 
| static String | LOWER_CASE_WITH_UNDERSCORESUsing this strategy, the property name is transformed to lower case with underscores. | 
| static String | UPPER_CAMEL_CASEUsing this strategy, the first character will be capitalized. | 
| static String | UPPER_CAMEL_CASE_WITH_SPACESUsing this strategy, the first character will be capitalized and the words
 will be separated by spaces. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | translateName(String propertyName)Translates the property name into its JSON field name representation. | 
static final String IDENTITY
static final String LOWER_CASE_WITH_DASHES
static final String LOWER_CASE_WITH_UNDERSCORES
static final String UPPER_CAMEL_CASE
static final String UPPER_CAMEL_CASE_WITH_SPACES
static final String CASE_INSENSITIVE
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.