Class PackageValidator


  • public class PackageValidator
    extends Object
    The PackageValidator class is used by the xmi1.2ToObjectModel.xsl stylesheet and Xalan-Java to extend the stylesheet functionnalities. Allows to include external classes and interfaces to the generated ObjectModel. Created: 21 avr. 2005
    Author:
    Arnaud Thimel (Code Lutin)
    • Constructor Detail

      • PackageValidator

        public PackageValidator()
    • Method Detail

      • toContinue

        public static boolean toContinue​(String fullPackagePath,
                                         String localPackageNameDot,
                                         String extraPackages)
        The toContinue method indicates if the package localPackageNameDot has to be iterated by the stylesheet.
        Parameters:
        fullPackagePath - the full package path
        localPackageNameDot - the current package to evaluate
        extraPackages - the list of extra packages
        Returns:
        true if there is to iterate on localPackageNameDot
      • isValid

        public static boolean isValid​(String fullPackagePath,
                                      String localPackageName,
                                      String extraPackages)
        isValid indicates if the current package (localPackageNameDot) is valid according to the extra packages list (extraPackages).
        Parameters:
        fullPackagePath - the full package path
        localPackageName - the current package to evaluate
        extraPackages - the list of extra packages
        Returns:
        true is the current package is valid