hudson.plugins.pmd.parser
Class File

java.lang.Object
  extended by hudson.plugins.pmd.parser.File

public class File
extends java.lang.Object

Java Bean class for a file of the PMD format.

Author:
Ulli Hafner

Constructor Summary
File()
           
 
Method Summary
 void addViolation(Violation violation)
          Adds a new violation to this file.
 java.lang.String getName()
          Returns the name of this file.
 java.util.Collection<Violation> getViolations()
          Returns all violations of this file.
 void setName(java.lang.String name)
          Sets the name of this file to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File

public File()
Method Detail

addViolation

public void addViolation(Violation violation)
Adds a new violation to this file.

Parameters:
violation - the new violation

getViolations

public java.util.Collection<Violation> getViolations()
Returns all violations of this file. The returned collection is read-only.

Returns:
all violations in this file

getName

public java.lang.String getName()
Returns the name of this file.

Returns:
the name of this file

setName

public void setName(java.lang.String name)
Sets the name of this file to the specified value.

Parameters:
name - the value to set


Copyright © 2010. All Rights Reserved.