Package org.kie.efesto.common.utils
Class PackageClassNameUtils
- java.lang.Object
-
- org.kie.efesto.common.utils.PackageClassNameUtils
-
public class PackageClassNameUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]getFactoryClassNamePackageName(String sourcePath)Returns an array where the first item is the factory class name and the second item is the package name, built starting from the given sourcePathStringstatic StringgetSanitizedClassName(String input)Convert the givenStringin a valid class name (i.e. no dots, no spaces, first letter upper case)static StringgetSanitizedPackageName(String modelName)Method to be used by every KiePMML implementation to retrieve the package name out of the model name
-
-
-
Method Detail
-
getSanitizedPackageName
public static String getSanitizedPackageName(String modelName)
Method to be used by every KiePMML implementation to retrieve the package name out of the model name- Parameters:
modelName-- Returns:
-
getSanitizedClassName
public static String getSanitizedClassName(String input)
Convert the givenStringin a valid class name (i.e. no dots, no spaces, first letter upper case)- Parameters:
input-- Returns:
-
-