com.atlassian.jira.workflow
Class SkippableValidator

java.lang.Object
  extended by 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 Summary
static SkippableValidator of(com.opensymphony.workflow.Validator validator)
          Generate a new SkippableValidator for a given condition.
 void validate(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.