Class CompositeProcessTemplateCheck

java.lang.Object
de.aristaflow.adept2.core.checks.processmodel.CompositeProcessTemplateCheck
All Implemented Interfaces:
ProcessTemplateCheck

public class CompositeProcessTemplateCheck extends Object implements ProcessTemplateCheck
A composite check consisting of other checks.
Author:
Patrick Schmidt
  • Constructor Details

    • CompositeProcessTemplateCheck

      public CompositeProcessTemplateCheck(ProcessTemplateCheck... checks)
      Constructs a new CompositeTemplateCheck.
      Parameters:
      checks -
  • Method Details

    • performCheck

      public boolean performCheck(Template template, NodeRelations relations, CheckReport checkReport)
      Description copied from interface: ProcessTemplateCheck
      Performs the check on the given template.

      Any problems which will be found during the check, will be reported to the checkReport, if the parameter is not null.

      Specified by:
      performCheck in interface ProcessTemplateCheck
      Parameters:
      template - The template to be checked.
      relations - The node relation cache to use.
      checkReport - The check report for found problems (may be null). If this is a LocalisedCheckReport, the check should respect and provide all preferred locale or corresponding fallbacks.
      Returns:
      True, if the check was OK.