private static ParamType typeConverter ( String typeName ) { if ( typeName == null || typeName . isEmpty ( ) ) { return null ; } if ( "Number" . equals ( typeName ) || "Long" . equalsIgnoreCase ( typeName ) || "Integer" . equals ( typeName ) || "int" . equals ( typeName ) ) { return ParamType . NUMBER ; } if ( "Boolean" . equalsIgnoreCase ( typeName ) ) { return ParamType . BOOLEAN ; } if ( "String" . equals ( typeName ) ) { return ParamType . STRING ; } if ( "Date" . equals ( typeName ) ) { return ParamType . DATE ; } if ( "File" . equals ( typeName ) ) { return ParamType . FILE ; } return null ; }
Convert a string version of the type name into a ParamType enum or null if nothing correspond .