|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.jape.constraint.AbstractConstraintPredicate
public abstract class AbstractConstraintPredicate
Base class for most ConstraintPredicates. Contains standard
getters/setters and other routines.
| Field Summary | |
|---|---|
protected AnnotationAccessor |
accessor
|
protected Object |
value
|
| Fields inherited from interface gate.jape.constraint.ConstraintPredicate |
|---|
EQUAL, GREATER, GREATER_OR_EQUAL, LESSER, LESSER_OR_EQUAL, NOT_EQUAL, NOT_REGEXP_FIND, NOT_REGEXP_MATCH, REGEXP_FIND, REGEXP_MATCH |
| Constructor Summary | |
|---|---|
AbstractConstraintPredicate()
|
|
AbstractConstraintPredicate(AnnotationAccessor accessor,
Object value)
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
doMatch(Object value,
AnnotationSet context)
|
boolean |
equals(Object obj)
|
AnnotationAccessor |
getAccessor()
The accessor associated with this predicate. |
Object |
getValue()
The value used in comparisons against passed in data in #matches(Annotation). |
int |
hashCode()
|
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). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gate.jape.constraint.ConstraintPredicate |
|---|
getOperator |
| Field Detail |
|---|
protected AnnotationAccessor accessor
protected Object value
| Constructor Detail |
|---|
public AbstractConstraintPredicate()
public AbstractConstraintPredicate(AnnotationAccessor accessor,
Object value)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public boolean matches(Annotation annot,
AnnotationSet context)
throws JapeException
ConstraintPredicate
matches in interface ConstraintPredicateJapeException
protected abstract boolean doMatch(Object value,
AnnotationSet context)
throws JapeException
JapeExceptionpublic void setAccessor(AnnotationAccessor accessor)
ConstraintPredicate
setAccessor in interface ConstraintPredicatepublic AnnotationAccessor getAccessor()
ConstraintPredicate
getAccessor in interface ConstraintPredicatepublic void setValue(Object value)
ConstraintPredicate#matches(Annotation).
setValue in interface ConstraintPredicatepublic Object getValue()
ConstraintPredicate#matches(Annotation).
getValue in interface ConstraintPredicate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||