|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.jape.constraint.AbstractConstraintPredicate
public abstract class AbstractConstraintPredicate
Base class for most ConstraintPredicate
s. 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 ConstraintPredicate.matches(Annotation, AnnotationSet) . |
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 ConstraintPredicate.matches(Annotation, AnnotationSet) . |
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 String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean matches(Annotation annot, AnnotationSet context) throws JapeException
ConstraintPredicate
matches
in interface ConstraintPredicate
JapeException
protected abstract boolean doMatch(Object value, AnnotationSet context) throws JapeException
JapeException
public void setAccessor(AnnotationAccessor accessor)
ConstraintPredicate
setAccessor
in interface ConstraintPredicate
public AnnotationAccessor getAccessor()
ConstraintPredicate
getAccessor
in interface ConstraintPredicate
public void setValue(Object value)
ConstraintPredicate
ConstraintPredicate.matches(Annotation, AnnotationSet)
.
setValue
in interface ConstraintPredicate
public Object getValue()
ConstraintPredicate
ConstraintPredicate.matches(Annotation, AnnotationSet)
.
getValue
in interface ConstraintPredicate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |