public class ProjectSpecificInfoFilter extends java.lang.Object implements Filter<AnnotationSnapshot>
AnnotationLoaderUtil.findAll(net.sf.basedb.core.snapshot.AnnotationSetSnapshot, Filter)
method.
This class will not filter the results, but only set flags
if it finds a project-specific annotation that is overriding
a default value.Modifier and Type | Field and Description |
---|---|
private boolean |
override |
private boolean |
projectSpecific |
Constructor and Description |
---|
ProjectSpecificInfoFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(AnnotationSnapshot snapshot)
Evaluate the annotation snapshot and update the
flags if the snapshot is a project-specific annotation
and overrides a default value.
|
boolean |
hasProjectSpecificAnnotation()
Check if the project-specific flag is set.
|
boolean |
overridesDefaultAnnotation()
Check if the override flag is set.
|
ProjectSpecificInfoFilter |
reset()
Reset the flags to false.
|
public boolean evaluate(AnnotationSnapshot snapshot)
evaluate
in interface Filter<AnnotationSnapshot>
snapshot
- The object to evaluatepublic ProjectSpecificInfoFilter reset()
public boolean hasProjectSpecificAnnotation()
public boolean overridesDefaultAnnotation()