public class RenamingPropertyNameResolver extends Object implements PropertyNameResolver
PropertyNameResolver.AnnotationPropertyNameResolver, PropertyNameResolver.CompositePropertyNameResolver, PropertyNameResolver.ConventionalBeanPropertyNameResolver
Constructor and Description |
---|
RenamingPropertyNameResolver(String field,
Class<?> fromClass,
Class<?> ofType,
String toName) |
Modifier and Type | Method and Description |
---|---|
String |
resolve(Field fromField)
Resolve the property name from this field.
|
String |
resolve(int parameterIdx,
Constructor<?> fromConstructor)
Resolve the parameter name on position parameterIdx in the constructor fromConstructor.
|
String |
resolve(int parameterIdx,
Method fromMethod)
Resolve the name of the parameter with parameterIdx as index in fromMethod method.
|
String |
resolve(Method fromMethod)
Resolve the property name from this method.
|
public String resolve(int parameterIdx, Constructor<?> fromConstructor)
PropertyNameResolver
resolve
in interface PropertyNameResolver
public String resolve(int parameterIdx, Method fromMethod)
PropertyNameResolver
resolve
in interface PropertyNameResolver
public String resolve(Field fromField)
PropertyNameResolver
resolve
in interface PropertyNameResolver
fromField
- - the field to use for name resolution.public String resolve(Method fromMethod)
PropertyNameResolver
resolve
in interface PropertyNameResolver
fromMethod
- - the method to be used for name resolution.Copyright © 2019. All rights reserved.