Package org.apache.maven.plugins.pmd
Interface ExcludeFromFile<D>
- Type Parameters:
- D- type of violation to exclude, e.g.- Violationor- Duplication.
- All Known Implementing Classes:
- ExcludeDuplicationsFromFile,- ExcludeViolationsFromFile
public interface ExcludeFromFile<D>
- Author:
- Andreas Dangel
- 
Method SummaryModifier and TypeMethodDescriptionintDetermines how many exclusions are considered.booleanisExcludedFromFailure(D errorDetail) Checks whether the given violation is excluded.voidloadExcludeFromFailuresData(String excludeFromFailureFile) Loads the exclude definitions from the given file.
- 
Method Details- 
loadExcludeFromFailuresDatavoid loadExcludeFromFailuresData(String excludeFromFailureFile) throws org.apache.maven.plugin.MojoExecutionException Loads the exclude definitions from the given file.- Parameters:
- excludeFromFailureFile- the path to the properties file
- Throws:
- org.apache.maven.plugin.MojoExecutionException- if the properties file couldn't be loaded
 
- 
countExclusionsint countExclusions()Determines how many exclusions are considered.- Returns:
- the number of active exclusions
 
- 
isExcludedFromFailureChecks whether the given violation is excluded. Note: the exclusions must have been loaded before vialoadExcludeFromFailuresData(String).- Parameters:
- errorDetail- the violation to check
- Returns:
- trueif the violation should be excluded,- falseotherwise.
 
 
-