Class AnnotationTypeFilter

java.lang.Object
net.sf.basedb.core.snapshot.AnnotationTypeFilter
All Implemented Interfaces:
Filter<AnnotationSnapshot>

public class AnnotationTypeFilter extends Object implements 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 Details

    • annotationTypeId

      private int annotationTypeId
  • Constructor Details

    • AnnotationTypeFilter

      public AnnotationTypeFilter()
      Create a filter that matches all annotation types.
    • AnnotationTypeFilter

      public AnnotationTypeFilter(AnnotationType at)
      Create a filter that matches a specfic annotation type.
  • Method Details

    • evaluate

      public boolean evaluate(AnnotationSnapshot snapshot)
      Description copied from interface: Filter
      Evaluate if the given object should pass the filter or not.
      Specified by:
      evaluate in interface Filter<AnnotationSnapshot>
      Parameters:
      snapshot - The object to evaluate
      Returns:
      TRUE if the object passes the filter, FALSE otherwise
    • setAnnotationType

      public void setAnnotationType(AnnotationType at)
      Set the annotation type this filter should match.
      Parameters:
      at - A specific annotation type, or null to match any annotation type