Class SkippableValidator

java.lang.Object
com.atlassian.jira.workflow.SkippableValidator
All Implemented Interfaces:
com.opensymphony.workflow.Validator

public class SkippableValidator extends Object implements com.opensymphony.workflow.Validator
A Validator that is Skippable
  • Method Details

    • of

      public static SkippableValidator of(com.opensymphony.workflow.Validator validator)
      Generate a new SkippableValidator for a given condition.

      This is done to preserve existing behaviour around returning nulls.

      Parameters:
      validator -
      Returns:
      condition == null ? null : new SkippableValidator(condition);
    • validate

      public void validate(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.InvalidInputException, com.opensymphony.workflow.WorkflowException
      Specified by:
      validate in interface com.opensymphony.workflow.Validator
      Throws:
      com.opensymphony.workflow.InvalidInputException
      com.opensymphony.workflow.WorkflowException
    • getValidator

      public com.opensymphony.workflow.Validator getValidator()