ilog.rules.util

Class IlrPackageUtilities

  • java.lang.Object
    • ilog.rules.util.IlrPackageUtilities


  • public class IlrPackageUtilities
    extends java.lang.Object
    Utilities to manipulate fully qualified names to get the package name and short name.
    Since:
    JRules 6.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String computeFQName(java.lang.String shortName, java.lang.String pkgName)
      Computes the fully qualified name from the given package name and artifact name.
      static java.lang.String findPackageName(java.lang.String name)
      Provides the package name from the given name.
      static java.lang.String findShortName(java.lang.String name)
      Provides the short name from the given name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrPackageUtilities

        public IlrPackageUtilities()
    • Method Detail

      • findPackageName

        public static java.lang.String findPackageName(java.lang.String name)
        Provides the package name from the given name. For a given input name such as a.b.r1 the returned package name is a.b.
        Parameters:
        name - The fully qualified name from which the package name is extracted. it doesn't need to be reallocated (that is it doesn't keep a reference to name).
        Returns:
        The package name.
      • findShortName

        public static java.lang.String findShortName(java.lang.String name)
        Provides the short name from the given name. For a given input name such as a.b.r1 the returned short name is r1.
        Parameters:
        name - The fully qualified name from which the package name is extracted. it doesn't need to be reallocated (that is it doesn't keep a reference to name).
        Returns:
        The short name.
      • computeFQName

        public static java.lang.String computeFQName(java.lang.String shortName,
                                     java.lang.String pkgName)
        Computes the fully qualified name from the given package name and artifact name. The result is of the form package-name.artifact-name.
        Parameters:
        shortName - The artifact name.
        pkgName - The package name.
        Returns:
        The fully qualified name.

© Copyright IBM Corp. 1987, 2020