ilog.rules.util
Class IlrPackageUtilities
- java.lang.Object
-
- ilog.rules.util.IlrPackageUtilities
-
public class IlrPackageUtilities extends java.lang.ObjectUtilities to manipulate fully qualified names to get the package name and short name.- Since:
- JRules 6.0
-
-
Constructor Summary
Constructors Constructor and Description IlrPackageUtilities()
-
Method Summary
Methods Modifier and Type Method and Description static java.lang.StringcomputeFQName(java.lang.String shortName, java.lang.String pkgName)Computes the fully qualified name from the given package name and artifact name.static java.lang.StringfindPackageName(java.lang.String name)Provides the package name from the given name.static java.lang.StringfindShortName(java.lang.String name)Provides the short name from the given name.
-
-
-
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 asa.b.r1the returned package name isa.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 asa.b.r1the returned short name isr1.- 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 formpackage-name.artifact-name.- Parameters:
shortName- The artifact name.pkgName- The package name.- Returns:
- The fully qualified name.
-
-