|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.snapshot.AnnotationFilter
public class AnnotationFilter
Filter implementation that finds the annotation snapshot for a given annotation.
| Field Summary | |
|---|---|
private int |
annotationId
|
| Constructor Summary | |
|---|---|
AnnotationFilter()
Create a filter that matches all annotations. |
|
AnnotationFilter(Annotation a)
Create a filter that matches a specfic annotation. |
|
| Method Summary | |
|---|---|
boolean |
evaluate(AnnotationSnapshot snapshot)
Evaluate if the given object should pass the filter or not. |
void |
setAnnotation(Annotation a)
Set the annotation this filter should match. |
void |
setAnnotationId(int annotationId)
Set the annotation this filter should match. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int annotationId
| Constructor Detail |
|---|
public AnnotationFilter()
public AnnotationFilter(Annotation a)
| Method Detail |
|---|
public boolean evaluate(AnnotationSnapshot snapshot)
Filter
evaluate in interface Filter<AnnotationSnapshot>snapshot - The object to evaluate
public void setAnnotation(Annotation a)
a - A specific annotation, or null to match any annotationpublic void setAnnotationId(int annotationId)
annotationId - A specific annotation, or 0 to match any annotation
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||