Package com.atlassian.jira.jql.context
Class MultiClauseDecoratorContextFactory.Factory
java.lang.Object
com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.Factory
- Enclosing class:
- MultiClauseDecoratorContextFactory
Factory to create a
MultiClauseDecoratorContextFactory given a
ClauseContextFactory to wrap.- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(OperatorUsageValidator validator, JqlOperandResolver resolver, ContextSetUtil contextSetUtil) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ClauseContextFactory delegate) Same as callingcreate(delegate, true).create(ClauseContextFactory delegate, boolean validating) Wrap the passedClauseContextFactoryin aMultiClauseDecoratorContextFactory.
-
Constructor Details
-
Factory
public Factory(OperatorUsageValidator validator, JqlOperandResolver resolver, ContextSetUtil contextSetUtil)
-
-
Method Details
-
create
Same as callingcreate(delegate, true).- Parameters:
delegate- the ClauseContextFactory to wrap.- Returns:
- the wrapped clause context factory.
-
create
@Nonnull public ClauseContextFactory create(@Nonnull ClauseContextFactory delegate, boolean validating) Wrap the passedClauseContextFactoryin aMultiClauseDecoratorContextFactory. 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.
-