Interface GetterPropertySelectionStrategy
Used to define the strategy to detect the getters of a bean.
A getter is considered as being a property of the bean and thus validated when validating the bean.
- Since:
- 6.1.0
- Author:
- Marko Bekhta
-
Method Summary
Modifier and TypeMethodDescriptiongetGetterMethodNameCandidates(String propertyName) Gives a set of possible method names based on a property name.getProperty(ConstrainableExecutable executable) Returns the property corresponding to the getter if the method is considered a getter.
-
Method Details
-
getProperty
Returns the property corresponding to the getter if the method is considered a getter.- Parameters:
executable- aConstrainableExecutable- Returns:
- an optional containing the property corresponding to the given executable if it is considered a getter, or an empty optional otherwise
- Throws:
IllegalArgumentException- if a property name cannot be constructed
-
getGetterMethodNameCandidates
-