java.lang.Object
edu.hm.hafner.analysis.parser.pmd.File
Java Bean class for a file of the PMD format.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViolation(Violation violation) Adds a new violation to this file.getName()Returns the name of this file.Returns all violations of this file.voidSets the name of this file to the specified value.
-
Constructor Details
-
File
public File()
-
-
Method Details
-
addViolation
Adds a new violation to this file.- Parameters:
violation- the new violation
-
getViolations
Returns all violations of this file. The returned collection is read-only.- Returns:
- all violations in this file
-
getName
Returns the name of this file.- Returns:
- the name of this file
-
setName
Sets the name of this file to the specified value.- Parameters:
name- the value to set
-