Interface PropertyNodeNameProvider
-
- All Known Implementing Classes:
DefaultPropertyNodeNameProvider
@Incubating public interface PropertyNodeNameProvider
This interface is used to resolve the name of a property node when creating the property path.- Since:
- 6.1.0
- Author:
- Damir Alibegovic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName(Property property)Returns the resolved name of a property.
-
-
-
Method Detail
-
getName
String getName(Property property)
Returns the resolved name of a property.Depending on the subtype of the
Property, a different strategy for name resolution could be applied, defaulting toProperty.getName(). For example:if (property instanceof
JavaBeanProperty) { // for instance, generate a property name based on the annotations of the property } else { return property.getName(); }- Parameters:
property- who's name needs to be resolved- Returns:
- String representing the resolved name
-
-