Package org.kie.efesto.common.utils
Class PackageClassNameUtils
- java.lang.Object
-
- org.kie.efesto.common.utils.PackageClassNameUtils
-
public class PackageClassNameUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]getFactoryClassNamePackageName(java.lang.String suffix, java.lang.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 java.lang.StringgetSanitizedClassName(java.lang.String input)Convert the givenStringin a valid class name (i.e. no dots, no spaces, first letter upper case)static java.lang.StringgetSanitizedPackageName(java.lang.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 java.lang.String getSanitizedPackageName(java.lang.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 java.lang.String getSanitizedClassName(java.lang.String input)
Convert the givenStringin a valid class name (i.e. no dots, no spaces, first letter upper case)- Parameters:
input-- Returns:
-
getFactoryClassNamePackageName
public static java.lang.String[] getFactoryClassNamePackageName(java.lang.String suffix, java.lang.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 sourcePathString- Parameters:
sourcePath-- Returns:
-
-