public class DefaultGetterPropertySelectionStrategy extends Object implements GetterPropertySelectionStrategy
Constructor and Description |
---|
DefaultGetterPropertySelectionStrategy() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getGetterMethodNameCandidates(String propertyName)
Gives a set of possible method names based on a property name.
|
Optional<String> |
getProperty(ConstrainableExecutable executable)
Returns the property corresponding to the getter if the method is considered a getter.
|
public DefaultGetterPropertySelectionStrategy()
public Optional<String> getProperty(ConstrainableExecutable executable)
GetterPropertySelectionStrategy
getProperty
in interface GetterPropertySelectionStrategy
executable
- a ConstrainableExecutable
public Set<String> getGetterMethodNameCandidates(String propertyName)
GetterPropertySelectionStrategy
getGetterMethodNameCandidates
in interface GetterPropertySelectionStrategy
propertyName
- a property nameSet
of possible getter namesCopyright © 2007-2021 Red Hat, Inc. All Rights Reserved