java.lang.Object
edu.hm.hafner.analysis.parser.pmd.File

public class File extends Object
Java Bean class for a file of the PMD format.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • File

      public File()
  • Methodendetails

    • addViolation

      public void addViolation(Violation violation)
      Adds a new violation to this file.
      Parameter:
      violation - the new violation
    • getViolations

      public Collection<Violation> getViolations()
      Returns all violations of this file. The returned collection is read-only.
      Gibt zurück:
      all violations in this file
    • getName

      @CheckForNull public String getName()
      Returns the name of this file.
      Gibt zurück:
      the name of this file
    • setName

      public void setName(@CheckForNull String name)
      Sets the name of this file to the specified value.
      Parameter:
      name - the value to set