public class NameHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ILLEGAL_CHARACTER_REGEX |
| Constructor and Description |
|---|
NameHelper(GenerationConfig generationConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
capitalizeTrailingWords(String name) |
String |
getGetterName(String propertyName,
com.sun.codemodel.JType type)
Generate getter method name for property.
|
String |
getPropertyName(String jsonFieldName)
Convert jsonFieldName into the equivalent Java fieldname by replacing
illegal characters and normalizing it.
|
String |
getSetterName(String propertyName)
Generate setter method name for property.
|
String |
normalizeName(String name) |
String |
replaceIllegalCharacters(String name) |
public static final String ILLEGAL_CHARACTER_REGEX
public NameHelper(GenerationConfig generationConfig)
public String getPropertyName(String jsonFieldName)
jsonFieldName - public String getSetterName(String propertyName)
propertyName - Copyright © 2015. All rights reserved.