public class ValidatorVisitor extends Object implements ClauseVisitor<MessageSet>
Query
. Uses
ClauseValidator
's to validate the individual clauses and
com.atlassian.jira.jql.operand.OperandHandler#validate(User, com.atlassian.query.operand.Operand, com.atlassian.query.clause.TerminalClause)
to validate the operands.Modifier and Type | Class and Description |
---|---|
static class |
ValidatorVisitor.ValidatorVisitorFactory |
Constructor and Description |
---|
ValidatorVisitor(ValidatorRegistry validatorRegistry,
JqlOperandResolver operandResolver,
OperatorUsageValidator operatorUsageValidator,
ApplicationUser searcher,
Long filterId,
Clause parentClause) |
Modifier and Type | Method and Description |
---|---|
MessageSet |
visit(AndClause andClause)
Visit called when accepting a
AndClause . |
MessageSet |
visit(ChangedClause clause)
Visit called when accepting a
ChangedClause . |
MessageSet |
visit(NotClause notClause)
Visit called when accepting a
NotClause . |
MessageSet |
visit(OrClause orClause)
Visit called when accepting a
OrClause . |
MessageSet |
visit(TerminalClause clause)
Visit called when accepting a
TerminalClause . |
MessageSet |
visit(WasClause clause)
Visit called when accepting a
WasClause . |
public ValidatorVisitor(ValidatorRegistry validatorRegistry, JqlOperandResolver operandResolver, OperatorUsageValidator operatorUsageValidator, ApplicationUser searcher, Long filterId, Clause parentClause)
public MessageSet visit(AndClause andClause)
ClauseVisitor
AndClause
.visit
in interface ClauseVisitor<MessageSet>
andClause
- the node being visited.public MessageSet visit(NotClause notClause)
ClauseVisitor
NotClause
.visit
in interface ClauseVisitor<MessageSet>
notClause
- the node being visited.public MessageSet visit(OrClause orClause)
ClauseVisitor
OrClause
.visit
in interface ClauseVisitor<MessageSet>
orClause
- the node being visited.public MessageSet visit(TerminalClause clause)
ClauseVisitor
TerminalClause
.visit
in interface ClauseVisitor<MessageSet>
clause
- the node being visited.public MessageSet visit(WasClause clause)
ClauseVisitor
WasClause
.visit
in interface ClauseVisitor<MessageSet>
clause
- the node being visited.public MessageSet visit(ChangedClause clause)
ClauseVisitor
ChangedClause
.visit
in interface ClauseVisitor<MessageSet>
clause
- the node being visited.Copyright © 2002-2015 Atlassian. All Rights Reserved.