Package io.avaje.http.generator.core
Class Util
- java.lang.Object
-
- io.avaje.http.generator.core.Util
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>findRoles(Element element)Find and return the list of roles on the given element.static StringinitcapSnake(String input)static StringpropertyName(String setterMethod)Return the bean property name given the setter method.static StringshortName(String fullType)static StringsnakeCase(String name)static StringtypeDef(TypeMirror typeMirror)Return the type removing validation annotations etc.
-
-
-
Constructor Detail
-
Util
public Util()
-
-
Method Detail
-
typeDef
public static String typeDef(TypeMirror typeMirror)
Return the type removing validation annotations etc.
-
initcapSnake
public static String initcapSnake(String input)
-
findRoles
public static List<String> findRoles(Element element)
Find and return the list of roles on the given element.This assumes the application uses either
@Roleannotation or@PermittedRolesannotation.- Parameters:
element- The bean or method
-
propertyName
public static String propertyName(String setterMethod)
Return the bean property name given the setter method.
-
-