class PackageTypeValidator implements NodePathValidator, FilterValidator, PropertiesValidator, MetaInfPathValidator, DocumentViewXmlValidator {

    boolean isOsgiBundleOrConfiguration(String nodePath, boolean onlyFile) {
        if (jcrInstallerNodePathRegex.matcher(nodePath).matches()) {
            if (onlyFile) {
                return additionalJcrInstallerFileNodePathRegex.matcher(nodePath).matches();
            } else {
                return true;
            }
        }
        return false;
    }

    public  PackageTypeValidator(@NotNull WorkspaceFilter workspaceFilter, @NotNull ValidationMessageSeverity severity,
            @NotNull ValidationMessageSeverity severityForNoPackageType, @NotNull ValidationMessageSeverity severityForLegacyType,
            boolean prohibitMutableContent, boolean prohibitImmutableContent, boolean allowComplexFilterRulesInApplicationPackages,
            @NotNull PackageType type, @NotNull Pattern jcrInstallerNodePathRegex, @NotNull Pattern additionalJcrInstallerFileNodePathRegex,
            @Nullable ValidationContext containerValidationContext);

}