Package net.sf.basedb.core.snapshot
Class AnnotationTypeFilter
java.lang.Object
net.sf.basedb.core.snapshot.AnnotationTypeFilter
- All Implemented Interfaces:
Filter<AnnotationSnapshot>
Filter implementation that finds all annotation snapshots
for a given annotation type.
- Version:
- 2.14
- Author:
- Nicklas
- Last modified
- $Date: 2009-10-14 09:44:14 +0200 (on, 14 okt 2009) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a filter that matches all annotation types.Create a filter that matches a specfic annotation type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(AnnotationSnapshot snapshot) Evaluate if the given object should pass the filter or not.void
Set the annotation type this filter should match.
-
Field Details
-
annotationTypeId
private int annotationTypeId
-
-
Constructor Details
-
AnnotationTypeFilter
public AnnotationTypeFilter()Create a filter that matches all annotation types. -
AnnotationTypeFilter
Create a filter that matches a specfic annotation type.
-
-
Method Details
-
evaluate
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<AnnotationSnapshot>
- Parameters:
snapshot
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-
setAnnotationType
Set the annotation type this filter should match.- Parameters:
at
- A specific annotation type, or null to match any annotation type
-