Class PackageClassNameUtils


  • public class PackageClassNameUtils
    extends Object
    • 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 given String in a valid class name (i.e. no dots, no spaces, first letter upper case)
        Parameters:
        input -
        Returns:
      • getFactoryClassNamePackageName

        public 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 sourcePath String
        Parameters:
        sourcePath -
        Returns: