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 |
getFieldName(String propertyName,
com.fasterxml.jackson.databind.JsonNode node)
Get name of the field generated from property.
|
String |
getGetterName(String propertyName,
com.sun.codemodel.JType type,
com.fasterxml.jackson.databind.JsonNode node)
Generate getter method name for property.
|
String |
getPropertyName(String jsonFieldName,
com.fasterxml.jackson.databind.JsonNode node)
Convert jsonFieldName into the equivalent Java fieldname by replacing
illegal characters and normalizing it.
|
String |
getSetterName(String propertyName,
com.fasterxml.jackson.databind.JsonNode node)
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, com.fasterxml.jackson.databind.JsonNode node)
jsonFieldName - node - public String getSetterName(String propertyName, com.fasterxml.jackson.databind.JsonNode node)
propertyName - node - public String getFieldName(String propertyName, com.fasterxml.jackson.databind.JsonNode node)
propertyName - node - Copyright © 2017. All rights reserved.