public static class

MultiClauseDecoratorContextFactory.Factory

extends Object
java.lang.Object
   ↳ com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.Factory

Class Overview

Factory to create a MultiClauseDecoratorContextFactory given a ClauseContextFactory to wrap.

Summary

Public Constructors
MultiClauseDecoratorContextFactory.Factory(OperatorUsageValidator validator, JqlOperandResolver resolver, ContextSetUtil contextSetUtil)
Public Methods
@Nonnull ClauseContextFactory create(ClauseContextFactory delegate, boolean validating)
@Nonnull ClauseContextFactory create(ClauseContextFactory delegate)
Same as calling create(delegate, true).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MultiClauseDecoratorContextFactory.Factory (OperatorUsageValidator validator, JqlOperandResolver resolver, ContextSetUtil contextSetUtil)

Public Methods

@Nonnull public ClauseContextFactory create (ClauseContextFactory delegate, boolean validating)

Wrap the passed ClauseContextFactory in a MultiClauseDecoratorContextFactory. When validating is set to true, the returned ClauseContextFactory will also perform a validation step on the passed clause when generating the clause context.

Parameters
delegate the factory to wrap. Cannot be null.
validating true if the returned factory should perform a validation step, or false otherwise.
Returns
  • the wrapped clause context factory.

@Nonnull public ClauseContextFactory create (ClauseContextFactory delegate)

Same as calling create(delegate, true).

Parameters
delegate the ClauseContextFactory to wrap.
Returns
  • the wrapped clause context factory.