public abstract class

EntityPropertyClauseValidator

extends Object
implements ClauseValidator
java.lang.Object
   ↳ com.atlassian.jira.jql.validator.EntityPropertyClauseValidator
Known Direct Subclasses

Class Overview

Base class for ClauseValidators applied to property clauses.

Summary

Public Constructors
EntityPropertyClauseValidator(String propertyType)
Public Methods
static boolean isSupportedOperator(Operator operator)
static Collection<Operator> supportedOperators()
@Nonnull MessageSet validate(User searcher, TerminalClause terminalClause)
Validates a clause and adds human readable i18n'ed messages if there is a problem.
Protected Methods
I18nHelper getI18n(User user)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.validator.ClauseValidator

Public Constructors

public EntityPropertyClauseValidator (String propertyType)

Public Methods

public static boolean isSupportedOperator (Operator operator)

public static Collection<Operator> supportedOperators ()

@Nonnull public MessageSet validate (User searcher, TerminalClause terminalClause)

Validates a clause and adds human readable i18n'ed messages if there is a problem.

Parameters
searcher the user who is executing the search.
terminalClause the clause to validate.
Returns
  • an MessageSet that will contain any messages relating to failed validation. An empty message set must be returned to indicate there were no errors. null can never be returned.

Protected Methods

protected I18nHelper getI18n (User user)