public class AnnotationExpressionValidator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GENERAL_ISSUE_CODE |
static java.lang.String |
UNDEFINED_NAME_CODE |
static java.lang.String |
UNKNOWN_ATTRIBUTE_CODE |
static java.lang.String |
UNKNOWN_VARIABLE_CODE |
Constructor and Description |
---|
AnnotationExpressionValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validateModelExpression(java.lang.String expression,
Pattern pattern,
ValueReference ref,
IIssueCallback validator)
Validates a path expression starting with a parameter of the pattern.
|
void |
validateParameterString(java.lang.String expression,
Pattern pattern,
ValueReference ref,
IIssueCallback validator)
Validates a path expression referring to a simple pattern parameter
|
void |
validateStringExpression(java.lang.String expression,
Pattern pattern,
ValueReference ref,
IIssueCallback validator)
Validates a string expression that may contain model references escaped inside '$' symbols.
|
public static final java.lang.String GENERAL_ISSUE_CODE
public static final java.lang.String UNKNOWN_VARIABLE_CODE
public static final java.lang.String UNKNOWN_ATTRIBUTE_CODE
public static final java.lang.String UNDEFINED_NAME_CODE
public void validateParameterString(java.lang.String expression, Pattern pattern, ValueReference ref, IIssueCallback validator)
expression
- the string representation of the path expression. Not inside '$' symbols.pattern
- the containing patternref
- a reference for the annotation parameter for error localizationvalidator
- the validator to report the found issuespublic void validateModelExpression(java.lang.String expression, Pattern pattern, ValueReference ref, IIssueCallback validator)
expression
- the string representation of the path expression. Not inside '$' symbols.pattern
- the containing patternref
- a reference for the annotation parameter for error localizationvalidator
- the validator to report the found issuespublic void validateStringExpression(java.lang.String expression, Pattern pattern, ValueReference ref, IIssueCallback validator)
expression
- pattern
- the containing patternref
- a reference for the annotation parameter for error localizationvalidator
- the validator to report the found issues