Package com.atlassian.jira.workflow
Class SkippableValidator
java.lang.Object
com.atlassian.jira.workflow.SkippableValidator
- All Implemented Interfaces:
com.opensymphony.workflow.Validator
A Validator that is Skippable
-
Method Summary
Modifier and TypeMethodDescriptioncom.opensymphony.workflow.Validator
static SkippableValidator
of
(com.opensymphony.workflow.Validator validator) Generate a new SkippableValidator for a given condition.void
-
Method Details
-
of
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 interfacecom.opensymphony.workflow.Validator
- Throws:
com.opensymphony.workflow.InvalidInputException
com.opensymphony.workflow.WorkflowException
-
getValidator
public com.opensymphony.workflow.Validator getValidator()
-