Class 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 sourcePath String
      static java.lang.String getSanitizedClassName​(java.lang.String input)
      Convert the given String in a valid class name (i.e. no dots, no spaces, first letter upper case)
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 given String in 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 sourcePath String
        Parameters:
        sourcePath -
        Returns: