Class LevelFilter
java.lang.Object
de.hsh.graja.comment.applicability.ApplicabilityFilter
de.hsh.graja.comment.applicability.LevelFilter
- All Implemented Interfaces:
IncludeInfo,Serializable
This class can filter artifacts depending on the level. If you want to construct more
complex filters, have a look at ApplicabilityFilterChain.
- See Also:
-
Field Summary
Fields inherited from class de.hsh.graja.comment.applicability.ApplicabilityFilter
PASS_ALL -
Constructor Summary
ConstructorsConstructorDescriptionLevelFilter(Level level) Create a filter, that lets pass all artifacts, whose level is equal to or more severe (higher) than the givenlevel. -
Method Summary
Modifier and TypeMethodDescriptionbooleanpassesThrough(Applicability applicability) This method checks, whether a artifact with givenapplicabilitywould pass the filter.toString()
-
Constructor Details
-
LevelFilter
Create a filter, that lets pass all artifacts, whose level is equal to or more severe (higher) than the givenlevel.- Parameters:
level- specifies the passing artifacts.
-
-
Method Details
-
passesThrough
Description copied from class:ApplicabilityFilterThis method checks, whether a artifact with givenapplicabilitywould pass the filter.- Specified by:
passesThroughin classApplicabilityFilter- Parameters:
applicability- the query applicability- Returns:
- true, if the parameter
applicabilityis more severe than or equal to the level represented by this filter.
-
toString
-