Class RulesetsFactoryUtils


  • public final class RulesetsFactoryUtils
    extends java.lang.Object
    • Method Detail

      • getRuleSets

        public static RuleSets getRuleSets​(java.lang.String rulesets,
                                           RuleSetFactory factory)
        Creates a new rulesets with the given string. The resulting rulesets will contain all referenced rulesets.
        Parameters:
        rulesets - the string with the rulesets to load
        factory - the ruleset factory
        Returns:
        the rulesets
        Throws:
        java.lang.IllegalArgumentException - if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.
      • getRuleSetsWithBenchmark

        public static RuleSets getRuleSetsWithBenchmark​(java.lang.String rulesets,
                                                        RuleSetFactory factory)
        See getRuleSets(String, RuleSetFactory). In addition, the loading of the rules is benchmarked.
        Parameters:
        rulesets - the string with the rulesets to load
        factory - the ruleset factory
        Returns:
        the rulesets
        Throws:
        java.lang.IllegalArgumentException - if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.