public class DefaultAccessorNamingStrategy extends Object implements AccessorNamingStrategy
AccessorNamingStrategy service provider interface.| Constructor and Description | 
|---|
| DefaultAccessorNamingStrategy() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCollectionGetterName(String property)Returns the getter name of the given collection property. | 
| String | getElementName(ExecutableElement adderMethod)Returns the element name of the given adder method. | 
| MethodType | getMethodType(ExecutableElement method)Returns the type of the given method. | 
| String | getPropertyName(ExecutableElement getterOrSetterMethod)Returns the name of the property represented by the given getter or setter method. | 
| boolean | isAdderMethod(ExecutableElement method) | 
| boolean | isSetterMethod(ExecutableElement method) | 
public MethodType getMethodType(ExecutableElement method)
AccessorNamingStrategygetMethodType in interface AccessorNamingStrategypublic boolean isSetterMethod(ExecutableElement method)
public boolean isAdderMethod(ExecutableElement method)
public String getPropertyName(ExecutableElement getterOrSetterMethod)
AccessorNamingStrategy
 The default implementation will e.g. return "name" for public String getName() or public void
 setName(String name).
getPropertyName in interface AccessorNamingStrategypublic String getElementName(ExecutableElement adderMethod)
AccessorNamingStrategy
 The default implementation will e.g. return "item" for public void addItem(String item).
getElementName in interface AccessorNamingStrategypublic String getCollectionGetterName(String property)
AccessorNamingStrategyThe default implementation will e.g. return "getItems" for "items".
getCollectionGetterName in interface AccessorNamingStrategyCopyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.