|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConstraintPredicate
A predicate defines a single boolean operation on an
Annotation or some property of an annotation. These are
also referred to as attributes of a constraint.
Implementors will determine if a provided annotation matches the predicate based on the intent of the operator (equals, not equals, greater than, etc).
| Field Summary | |
|---|---|
static String |
EQUAL
|
static String |
GREATER
|
static String |
GREATER_OR_EQUAL
|
static String |
LESSER
|
static String |
LESSER_OR_EQUAL
|
static String |
NOT_EQUAL
|
static String |
NOT_REGEXP_FIND
|
static String |
NOT_REGEXP_MATCH
|
static String |
REGEXP_FIND
|
static String |
REGEXP_MATCH
|
| Method Summary | |
|---|---|
AnnotationAccessor |
getAccessor()
The accessor associated with this predicate. |
String |
getOperator()
String representation of the logic operator that the predicate implements. |
Object |
getValue()
The value used in comparisons against passed in data in #matches(Annotation). |
boolean |
matches(Annotation annot,
AnnotationSet context)
Evaluates if the provided annotation meets the requirements of the predicate. |
void |
setAccessor(AnnotationAccessor accessor)
Set the accessor associated with this predicate. |
void |
setValue(Object value)
Set the value used in comparisons against passed in data in #matches(Annotation). |
| Field Detail |
|---|
static final String EQUAL
static final String NOT_EQUAL
static final String GREATER
static final String LESSER
static final String GREATER_OR_EQUAL
static final String LESSER_OR_EQUAL
static final String REGEXP_FIND
static final String NOT_REGEXP_FIND
static final String REGEXP_MATCH
static final String NOT_REGEXP_MATCH
| Method Detail |
|---|
AnnotationAccessor getAccessor()
void setAccessor(AnnotationAccessor accessor)
Object getValue()
#matches(Annotation).
void setValue(Object value)
#matches(Annotation).
value - String getOperator()
boolean matches(Annotation annot,
AnnotationSet context)
throws JapeException
annot - context -
JapeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||