EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>

All Known Implementing Classes:
AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper, AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper
Enclosing class:
AbstractGrammarValidator

protected static interface AbstractGrammarValidator.AbstractEncapsulatedExpressionHelper<T extends AbstractEncapsulatedExpression>

The root helper that validates any AbstractEncapsulatedExpression.

See Also:
AbstractGrammarValidator.AbstractDoubleEncapsulatedExpressionHelper, AbstractGrammarValidator.AbstractSingleEncapsulatedExpressionHelper, AbstractGrammarValidator.AbstractTripleEncapsulatedExpressionHelper

Method Summary
 java.lang.String[] arguments(T expression)
          Returns the arguments that can help to format the localized problem.
 boolean hasLeftParenthesis(T expression)
          Determines whether the given AbstractEncapsulatedExpression has the left parenthesis.
 boolean hasRightParenthesis(T expression)
          Determines whether the given AbstractEncapsulatedExpression has the right parenthesis.
 java.lang.String identifier(T expression)
          Returns the JPQL identifier of the given AbstractEncapsulatedExpression.
 java.lang.String leftParenthesisMissingKey(T expression)
          Returns the message key for the problem describing that the left parenthesis is missing.
 java.lang.String rightParenthesisMissingKey(T expression)
          Returns the message key for the problem describing that the right parenthesis is missing.
 

Method Detail

arguments

java.lang.String[] arguments(T expression)
Returns the arguments that can help to format the localized problem.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
The list of arguments used to complete the localized problem

hasLeftParenthesis

boolean hasLeftParenthesis(T expression)
Determines whether the given AbstractEncapsulatedExpression has the left parenthesis.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
true if the left parenthesis was parsed

hasRightParenthesis

boolean hasRightParenthesis(T expression)
Determines whether the given AbstractEncapsulatedExpression has the right parenthesis.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
true if the right parenthesis was parsed

identifier

java.lang.String identifier(T expression)
Returns the JPQL identifier of the given AbstractEncapsulatedExpression.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
The JPQL identifier of the given AbstractEncapsulatedExpression

leftParenthesisMissingKey

java.lang.String leftParenthesisMissingKey(T expression)
Returns the message key for the problem describing that the left parenthesis is missing.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
The key used to retrieve the localized message

rightParenthesisMissingKey

java.lang.String rightParenthesisMissingKey(T expression)
Returns the message key for the problem describing that the right parenthesis is missing.

Parameters:
expression - The AbstractEncapsulatedExpression being validated
Returns:
The key used to retrieve the localized message

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference