com.atlassian.jira.jql.context
Class MultiClauseDecoratorContextFactory.Factory

java.lang.Object
  extended by com.atlassian.jira.jql.context.MultiClauseDecoratorContextFactory.Factory
Enclosing class:
MultiClauseDecoratorContextFactory

public static class MultiClauseDecoratorContextFactory.Factory
extends java.lang.Object

Factory to create a MultiClauseDecoratorContextFactory given a ClauseContextFactory to wrap.

Since:
4.0

Constructor Summary
MultiClauseDecoratorContextFactory.Factory(OperatorUsageValidator validator, JqlOperandResolver resolver, ContextSetUtil contextSetUtil)
           
 
Method Summary
 ClauseContextFactory create(ClauseContextFactory delegate)
          Same as calling create(delegate, true).
 ClauseContextFactory create(ClauseContextFactory delegate, boolean validating)
          Wrap the passed ClauseContextFactory in a MultiClauseDecoratorContextFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiClauseDecoratorContextFactory.Factory

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

create

@NotNull
public ClauseContextFactory create(@NotNull
                                           ClauseContextFactory delegate)
Same as calling create(delegate, true).

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

create

@NotNull
public ClauseContextFactory create(@NotNull
                                           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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.