Interface RuleValidationAgent


@Experimental public interface RuleValidationAgent
This agent allows for validating rules of a Template.
Since:
5.2.240307
  • Field Details

  • Method Details

    • validateRules

      @NotNull @NotNull Collection<RuleValidationFailure> validateRules(@NotNull @NotNull String ruleSetDefinition, @NotNull @NotNull GomEditorProvider gomEditorProvider)
      Validates the given rule definition by parsing the XML content and evaluating all detected rules. This method is intended to by used for validating rules during the editing process, i.e. without persisting the rules to the corresponding template yet.
      Parameters:
      ruleSetDefinition - The rule set in XML format, containing RULES as its surrounding tag.
      gomEditorProvider - Used to detect unknown editors.
      Returns:
      All detected validation failures or an empty collection if there are none, but never null.
      Since:
      5.2.240307
    • validateRules

      @NotNull @NotNull Collection<RuleValidationFailure> validateRules(@NotNull @NotNull Template template)
      Validates the given rule definition by parsing the rule definition of the given template. This method is intended to by used for validating rules after the template has been saved.
      Parameters:
      template - The template to check the rules for, never null.
      Returns:
      All detected validation failures or an empty collection if there are none, but never null.
      Since:
      5.2.240307